* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #fff;
    background: #0f1c2e;
}

/* NAVEGACIÓN */
nav {
    background: #0f1c2e;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #5eb3f6;
}

section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* INICIO */
#inicio {
    display: flex;
    align-items: center;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .highlight {
    color: #5eb3f6;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #fff;
    color: #0f1c2e;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* NOSOTROS */
#nosotros {
    background: linear-gradient(180deg, #0f1c2e 0%, #1a2942 100%);
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #5eb3f6;
}

.about-header p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-text-block {
    background: rgba(94, 179, 246, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid #5eb3f6;
    transition: transform 0.3s;
}

.about-text-block:hover {
    transform: translateX(10px);
}

.about-text-block h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 1rem;
    color: #5eb3f6;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-text-block h3 i {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-text-block p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(94, 179, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(94, 179, 246, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(94, 179, 246, 0.1);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: #5eb3f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    opacity: 0.8;
}

.values-section {
    margin-top: 5rem;
}

.values-header {
    text-align: center;
    margin-bottom: 3rem;
}

.values-header h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #5eb3f6;
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: rgba(94, 179, 246, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(94, 179, 246, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(94, 179, 246, 0.2);
}

.value-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: #5eb3f6;
}

.value-card h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #5eb3f6;
    margin-bottom: 1rem;
}

.value-card p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
    opacity: 0.8;
}

/* SISTEMA */
#sistema {
    background: linear-gradient(180deg, #1a2942 0%, #0f1c2e 100%);
}

.system-header {
    text-align: center;
    margin-bottom: 4rem;
}

.system-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #5eb3f6;
}

.system-header p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: rgba(94, 179, 246, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(94, 179, 246, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(94, 179, 246, 0.1);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(94, 179, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-box i {
    font-size: 2rem;
    color: #5eb3f6;
}

.feature-box h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: #5eb3f6;
}

.feature-box p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
    opacity: 0.8;
}

/* CONTACTO */
#contacto {
    background: linear-gradient(180deg, #0f1c2e 0%, #1a2942 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #5eb3f6;
}

.contact-header p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(94, 179, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(94, 179, 246, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(94, 179, 246, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(94, 179, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #5eb3f6;
}

.contact-text h4 {
    color: #5eb3f6;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    opacity: 0.8;
}

.contact-form {
    background: rgba(94, 179, 246, 0.05);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(94, 179, 246, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #5eb3f6;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(94, 179, 246, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5eb3f6;
    background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #5eb3f6;
    color: #0f1c2e;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94, 179, 246, 0.3);
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, #1a2942 0%, #0a1420 100%);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(94, 179, 246, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #5eb3f6;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(94, 179, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(94, 179, 246, 0.2);
}

.social-icon i {
    color: #5eb3f6;
    font-size: 1.2rem;
}

.footer-column h4 {
    color: #5eb3f6;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s, padding-left 0.3s;
    display: inline-block;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(94, 179, 246, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-badges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(94, 179, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.badge i {
    color: #5eb3f6;
}

/* MEDIA QUERIES OPTIMIZADAS */

/* Tablets grandes y laptops pequeñas */
@media (max-width: 1024px) {
    .nav-links {
        gap: 2rem;
    }
    
    section {
        padding: 7rem 4% 3rem;
    }
    
    .hero {
        gap: 3rem;
    }
    
    .about-text-block,
    .value-card,
    .feature-box {
        padding: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    nav {
        padding: 1rem 4%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 6rem 4% 3rem;
        min-height: auto;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-grid {
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .about-text-block:hover,
    .contact-item:hover {
        transform: translateX(5px);
    }
}

/* Móviles grandes */
@media (max-width: 600px) {
    nav {
        padding: 1rem 3%;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    section {
        padding: 5rem 3% 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    .about-content-grid,
    .stats-grid,
    .values-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-text-block,
    .stat-card,
    .value-card,
    .feature-box,
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .about-text-block:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
}

/* Móviles pequeños */
@media (max-width: 400px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .about-text-block h3,
    .value-card h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1600px) {
    section {
        padding: 10rem 5% 5rem;
    }
    
    .hero {
        gap: 5rem;
    }
}

/* Optimización para orientación landscape en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    section {
        min-height: auto;
        padding: 5rem 5% 3rem;
    }
    
    .hero {
        min-height: auto;
    }
}