:root {
    --primary: #003366;
    --primary-light: #00457a;
    --accent: #00A8E8;
    --text: #12344d;
    --white: #ffffff;
    
    --shadow-sm: 0 10px 30px rgba(0, 51, 102, 0.1);
    --shadow-md: 0 20px 50px rgba(0, 51, 102, 0.15);
    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #f8fbff;
}

/* ==================== NAVBAR ==================== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 68px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-3px);
}

/* ==================== HERO PRINCIPAL - FINAL ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('imagenes/hero-inicio.png'); /* Cambia esta ruta por tu foto */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 31, 63, 0.88),
        rgba(0, 51, 102, 0.78)
    );
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-content {
    max-width: 620px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 7.5vw, 5.2rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.hero-title span {
    color: #00A8E8;
    display: block;
}

.hero-description {
    font-size: 1.28rem;
    line-height: 1.5;
    margin-bottom: 2.8rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.08rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #00b8ff;
    transform: translateY(-4px);
}

.btn-secondary {
    border: 2px solid rgba(255,255,255,0.9);
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        min-height: 85vh;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}


/* ==================== SECCIONES ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ==================== MOBILE MENU ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-isologo {
        max-width: 300px;
        margin: 2rem auto 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        font-size: 1.6rem;
        transition: 0.5s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .desktop-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 320px;
    }
}

/* WhatsApp */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-label {
    background: white;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-container:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.12);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-logo {
    height: 195px;           /* Tamaño más grande y visible */
    width: auto;
    margin-bottom: 1rem;     /* Reducido para que el texto quede más cerca */
    object-fit: contain;
}

.footer-col:first-child {
    max-width: 380px;
}

.footer-col:first-child p {
    margin-top: 0.8rem;      /* Acercamos el texto descriptivo */
    line-height: 1.6;
    opacity: 0.9;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.8rem 0;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 5%;
}

/* ==================== RESPONSIVE FOOTER ==================== */
/* Ajuste fino en pantallas grandes */
@media (min-width: 993px) {
    .footer-logo {
        height: 125px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .footer-logo {
        height: 125px;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        height: 125px;
        margin-bottom: 1rem;
    }
}

/* ==================== REDES SOCIALES - MEJORADO ==================== */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.8rem 0;
}

.social-links a {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.12);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 168, 232, 0.4);
}

/* Hover específico por red */
.social-links a:hover:nth-child(1) { background: #E1306C; } /* Instagram */
.social-links a:hover:nth-child(2) { background: #1877F2; } /* Facebook */
.social-links a:hover:nth-child(3) { background: #25D366; } /* WhatsApp */

/* ==================== MENÚ MÓVIL ==================== */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        gap: 2.8rem;
        font-size: 1.75rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.45s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 9999;
    }

    .nav-links.active {
        right: 0;
    }

    /* Botón Cerrar - SOLO en móvil */
    .close-menu {
        position: absolute;
        top: 35px;
        right: 35px;
        font-size: 2.8rem;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10000;
        display: block !important;
    }

    .close-menu:hover {
        color: var(--accent);
        transform: rotate(90deg);
    }
}

/* Asegurar que NO se vea en PC */
@media (min-width: 993px) {
    .close-menu {
        display: none !important;
    }
}

/* Ocultar el botón cerrar en escritorio */
.close-menu {
    display: none;
}

/* ==================== NOSOTROS ==================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 6rem 5%;
}

.intro-content h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.8rem;
}

.stat-card {
    background: white;
    padding: 2.2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ==================== SERVICIOS ==================== */
.services-section {
    background: #f8fbff;
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.3rem;
    color: var(--primary);
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.whites{
    color: #f8fbff;
    font-size: medium;
}

/* ==================== CONTACTO ==================== */
.contact-section {
    background: white;
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-info h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
    font-size: 1.05rem;
}

.contact-details p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ==================== FORMULARIO ==================== */
.contact-form {
    background: #f8fbff;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e7f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.1);
}

.full-width {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2.5rem 2rem;
    }
}

/* ==================== BEFORE & AFTER - VERSIÓN FINAL ==================== */
.before-after-section {
    padding: 6rem 0;
    background: #f8fbff;
}

.before-after-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-comparison {
    position: relative;
    height: 520px;
    cursor: ew-resize;
    background: #ddd;
}

.before-img,
.after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-img {
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 10;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(0,168,232,0.5);
    z-index: 11;
}

@media (max-width: 768px) {
    .image-comparison {
        height: 380px;
    }
}

/* ==================== NOSOTROS ==================== */
.nosotros-section {
    padding: 6rem 0;
    background: white;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.nosotros-content h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.nosotros-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.valor-item {
    background: #f8fbff;
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.valor-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.valor-item h4 {
    color: var(--accent);
    margin-bottom: 0.8rem;
}

/* Visual */
.nosotros-visual {
    position: relative;
}

.nosotros-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.nosotros-stats-small {
    position: absolute;
    bottom: -30px;
    left: 50px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 2rem;
}

.nosotros-stats-small div {
    text-align: center;
}

.nosotros-stats-small .counter {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nosotros-stats-small {
        position: static;
        margin-top: 2rem;
        left: 0;
    }
}

/* ==================== HERO NOSOTROS ==================== */
.hero-nosotros {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-nosotros .hero-overlay {
    background: linear-gradient(90deg, rgba(0,31,63,0.85), rgba(0,51,102,0.6));
}

.hero-visual-nosotros {
    position: relative;
}

.hero-main-image {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 12px solid rgba(255,255,255,0.15);
}

.hero-badge-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 220px;
}

.hero-badge-float span {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-badge-float small {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Ajustes generales del hero */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    color: white;
}

.hero-content h1 span {
    color: var(--accent);
    display: block;
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 480px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual-nosotros {
        margin-top: 2rem;
    }
    
    .hero-main-image {
        max-width: 380px;
    }
    
    .hero-badge-float {
        position: static;
        margin: 2rem auto 0;
    }
}

/* ==================== POR QUÉ ELEGIRNOS ==================== */
.porque-section {
    padding: 6rem 0;
    background: #f8fbff;
}

.porque-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.porque-left h2 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.porque-left p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Video Vertical */
.video-vertical-wrapper {
    position: relative;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-vertical {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 168, 232, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Tarjetas */
.porque-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 2rem 1.6rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
}

.benefit-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

@media (max-width: 992px) {
    .porque-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* ==================== NUESTRO EQUIPO ==================== */
.equipo-section {
    padding: 6rem 0;
    background: white;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.equipo-card {
    background: #f8fbff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.equipo-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.equipo-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.equipo-info {
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.equipo-info h3 {
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.especialidad {
    display: block;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.equipo-info p {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .equipo-img img {
        height: 280px;
    }
}