/* ========================================
   RESILIENT HUMAN - Fisioterapia & Readaptación
   Color Palette: #2D3436 (charcoal), #5BBEB5 (teal), #FFFFFF
   ======================================== */

:root {
    --charcoal: #2D3436;
    --teal: #5BBEB5;
    --teal-dark: #4AA89F;
    --teal-light: #E8F6F4;
    --teal-glow: rgba(91, 190, 181, 0.15);
    --bg: #FAFCFB;
    --bg-alt: #F3F8F7;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
    --shadow-md: 0 8px 30px rgba(45, 52, 54, 0.08);
    --shadow-lg: 0 20px 60px rgba(45, 52, 54, 0.1);
    --shadow-teal: 0 8px 30px rgba(91, 190, 181, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.highlight {
    color: var(--teal);
}

/* ========== NAVBAR ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid rgba(45, 52, 54, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.nav-logo-img {
    height: 56px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--teal);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a.active-link {
    color: var(--teal);
}

.mobile-only {
    display: none;
}

.nav-cta {
    background: var(--teal);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 12px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 76px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 60px 24px;
    max-width: 900px;
}

.hero-text { width: 100%; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-stats { justify-content: center; }

.hero-badge {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(91, 190, 181, 0.3);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 190, 181, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid rgba(45, 52, 54, 0.15);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--charcoal);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(45, 52, 54, 0.1);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    display: block;
    padding: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.hero-scroll a:hover {
    color: var(--teal);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SECTIONS COMMON ========== */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== SERVICIOS ========== */

.servicios {
    padding: 120px 0;
    background: var(--white);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(91, 190, 181, 0.2);
}

.servicio-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
}

.servicio-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.servicio-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== SOBRE NOSOTROS ========== */

.sobre {
    padding: 120px 0;
    background: var(--bg-alt);
}

.sobre-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 72px;
    align-items: center;
}

.sobre-visual {
    position: relative;
}

.sobre-img-container {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.sobre-img {
    width: 100%;
    height: auto;
    display: block;
}

.sobre-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--teal);
    border-radius: 20px;
    opacity: 0.1;
    z-index: -1;
}

.sobre-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.sobre-text p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.sobre-text p strong {
    color: var(--charcoal);
}

.sobre-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--teal) !important;
    margin-top: -8px !important;
    margin-bottom: 24px !important;
    letter-spacing: 0.5px;
}

.sobre-edu-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 36px;
    margin-bottom: 20px;
}

.edu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--teal);
    align-items: start;
}

.edu-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-light);
    padding: 6px 10px;
    border-radius: 50px;
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.edu-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edu-info strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.4;
}

.edu-info span {
    font-size: 13px;
    color: var(--text-light);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0A66C2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    background: rgba(10, 102, 194, 0.08);
    border-radius: 50px;
    transition: var(--transition);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .edu-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .edu-year {
        align-self: start;
        width: fit-content;
    }
}

/* ========== MÉTODO ========== */

.metodo {
    padding: 120px 0;
    background: var(--white);
}

.metodo-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--teal);
    opacity: 0.2;
    margin-bottom: 16px;
    line-height: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-light), var(--teal), var(--teal-light));
    margin-top: 32px;
    flex-shrink: 0;
}

/* ========== INSTAGRAM CTA ========== */

.instagram-cta {
    padding: 80px 0;
    background: var(--bg-alt);
}

.insta-card {
    background: linear-gradient(135deg, var(--charcoal) 0%, #3d4648 100%);
    border-radius: 24px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}

.insta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.insta-text h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.insta-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.btn-insta {
    white-space: nowrap;
    font-size: 16px;
    padding: 18px 36px;
}

/* ========== CONTACTO ========== */

.contacto {
    padding: 120px 0;
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacto-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacto-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.contacto-card:hover {
    border-color: rgba(91, 190, 181, 0.2);
    box-shadow: var(--shadow-sm);
}

.whatsapp-card {
    background: linear-gradient(135deg, #dcf8c6 0%, #e8f5e9 100%);
    border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.15);
}

.contacto-card-icon {
    color: var(--teal);
    margin-bottom: 4px;
}

.whatsapp-card .contacto-card-icon {
    color: #25D366;
}

.contacto-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.contacto-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.card-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    margin-top: 4px;
}

.whatsapp-card .card-action {
    color: #128C7E;
}

.contacto-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

/* ========== FOOTER ========== */

.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.6);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 16px;
    margin: 0 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

/* ========== WHATSAPP FLOAT ========== */

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ========== ANIMATIONS ========== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .hero-sub {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sobre-visual {
        max-width: 400px;
        margin: 0 auto;
        order: 2;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        height: 80px;
        justify-content: center;
        position: relative;
    }

    .nav-logo {
        margin: 0 auto;
    }

    .nav-logo-img {
        height: 60px;
    }

    .nav-toggle {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle.active {
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 32px 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 0;
    }

    .nav-cta {
        text-align: center;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-sub {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 36px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 340px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 0;
        width: 100%;
        max-width: 360px;
        justify-content: space-between;
        padding: 20px;
        background: var(--white);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    .hero-stats .stat {
        flex: 1;
        align-items: center;
        text-align: center;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-divider {
        width: 1px;
        height: 32px;
    }

    .servicios,
    .sobre,
    .metodo,
    .contacto {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 20px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .metodo-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .step {
        text-align: left;
        display: flex;
        gap: 20px;
        padding: 0;
    }

    .step-number {
        font-size: 36px;
        min-width: 60px;
    }

    .step-connector {
        width: 2px;
        height: 24px;
        margin: 0 0 0 28px;
    }

    .insta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sobre-text h2 {
        font-size: 1.7rem;
    }

    .servicio-card h3 {
        font-size: 18px;
    }

    .insta-card {
        gap: 28px;
    }

    .insta-text h2 {
        font-size: 1.5rem;
    }

    .btn-insta {
        font-size: 14px;
        padding: 14px 24px;
    }

    .contacto-map {
        min-height: 260px;
    }

    .footer-logo-img {
        height: 90px;
    }

    .footer-bottom {
        padding: 20px 16px;
        margin: 0;
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.6rem;
    }

    .servicio-card {
        padding: 28px 24px;
    }

    .contacto-card {
        padding: 24px;
    }
}

/* ========== HERO VIDEO ========== */

.hero-video {
    background: var(--charcoal);
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 28, 29, 0.68) 0%, rgba(24, 28, 29, 0.5) 50%, rgba(24, 28, 29, 0.74) 100%);
    z-index: 0;
}

.hero-video .hero-content {
    position: relative;
    z-index: 1;
}

.hero-video h1 {
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-video .hero-sub {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-video .hero-badge {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-video .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.hero-video .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: var(--white);
}

.hero-video .stat-number {
    color: var(--white);
}

.hero-video .stat-label {
    color: rgba(255, 255, 255, 0.75);
}

.hero-video .stat-divider {
    background: rgba(255, 255, 255, 0.25);
}

.hero-video .hero-scroll a {
    color: rgba(255, 255, 255, 0.8);
}

.hero-video .hero-scroll a:hover {
    color: var(--teal);
}

/* ========== QUÉ ES RESILIENT HUMAN ========== */

.quees {
    padding: 120px 0;
    background: var(--white);
}

.quees-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.quees-row + .quees-row {
    margin-top: 88px;
}

.quees-row.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.quees-text h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.quees-text p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.quees-text p strong {
    color: var(--charcoal);
}

.quees-img {
    position: relative;
}

.quees-img img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    box-shadow: var(--shadow-md);
}

/* ========== SERVICIOS CON FOTO ========== */

.servicio-card.has-photo {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.servicio-photo {
    overflow: hidden;
}

.servicio-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-card:hover .servicio-photo img {
    transform: scale(1.05);
}

.servicio-head {
    padding: 28px 28px 0;
}

.servicio-head .servicio-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
}

.servicio-body {
    padding: 0 28px 32px;
    flex: 1;
}

@media (min-width: 769px) {
    /* En escritorio la foto va arriba, como siempre */
    .servicio-card.has-photo .servicio-photo {
        order: -1;
        aspect-ratio: 3/2;
    }

    .servicio-card.has-photo .servicio-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ========== SOBRE - FOTO GIMNASTA ========== */

.sobre-gimnasta {
    margin-top: 24px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sobre-gimnasta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.sobre-gimnasta img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.sobre-gimnasta-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    text-align: center;
    line-height: 1.5;
    padding: 12px 8px 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sobre-gimnasta-caption strong {
    color: var(--teal-dark);
    font-weight: 800;
}

.txt-teal {
    color: var(--teal-dark);
}

/* ========== INSTALACIONES ========== */

.instalaciones {
    padding: 120px 0;
    background: var(--bg-alt);
}

.instalaciones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.instal-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.instal-photo img {
    height: 280px;
    width: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.instal-photo:hover img {
    transform: scale(1.04);
}

/* ========== UBICACIÓN NOTE ========== */

.ubicacion-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-dark);
}

/* ========== COLABORADORES ========== */

.colaboradores {
    padding: 64px 0 80px;
    background: var(--bg-alt);
}

.colab-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.colab-logos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 28px;
    flex-wrap: wrap;
}

.colab-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    transition: var(--transition);
}

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

.colab-card img {
    max-height: 90px;
    max-width: 200px;
    width: auto;
    display: block;
}

.colab-card.colab-terra {
    background: #000000;
}

.colab-card.colab-terra img {
    border-radius: 8px;
}

/* ========== SERVICIOS 3+2 (SIN HUECO) ========== */

.servicios-grid {
    grid-template-columns: repeat(6, 1fr);
}

.servicio-card {
    grid-column: span 2;
}

.servicio-card:nth-child(4) {
    grid-column: 2 / span 2;
}

/* ========== RESPONSIVE (NUEVAS SECCIONES) ========== */

@media (max-width: 1024px) {
    .quees-row,
    .quees-row.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .quees-row.reverse .quees-img {
        order: 2;
    }

    .servicios-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .servicio-card:nth-child(4) {
        grid-column: auto / span 2;
    }

    .servicio-card:nth-child(5) {
        grid-column: 2 / span 2;
    }

    .instal-photo img {
        height: 210px;
    }

    .sobre-gimnasta {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========== MÓVIL PULIDO ========== */

@media (max-width: 768px) {
    /* Navbar más compacto */
    .nav-content {
        height: 68px;
    }

    .nav-logo-img {
        height: 46px;
    }

    .nav-links {
        top: 68px;
        max-height: calc(100svh - 68px);
        overflow-y: auto;
    }

    /* Hero */
    .hero.hero-video {
        min-height: 100svh;
        padding-top: 84px;
        padding-bottom: 44px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 7px 16px;
        margin-bottom: 14px;
        letter-spacing: 0.4px;
    }

    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .hero-sub {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }

    .hero-actions {
        gap: 12px;
        margin-bottom: 22px;
    }

    .hero-stats {
        margin: 0 auto;
        max-width: 340px;
        padding: 14px 16px;
    }

    .stat-label {
        font-size: 12px;
    }

    .hero-video .stat-label {
        color: rgba(255, 255, 255, 0.85);
    }

    .hero-video .hero-stats {
        background: rgba(0, 0, 0, 0.38);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-scroll {
        display: none;
    }

    /* Ritmo vertical uniforme */
    .quees,
    .instalaciones,
    .servicios,
    .sobre,
    .metodo,
    .contacto {
        padding: 64px 0;
    }

    .instagram-cta {
        padding: 56px 0;
    }

    .quees-row + .quees-row {
        margin-top: 48px;
    }

    .quees-text h3 {
        font-size: 1.4rem;
    }

    .quees-text p {
        font-size: 14.5px;
    }

    /* Servicios: 1 columna, tarjetas más compactas */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .servicio-card,
    .servicio-card:nth-child(4),
    .servicio-card:nth-child(5) {
        grid-column: auto;
    }

    /* Móvil: título arriba, foto debajo, texto al final */
    .servicio-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 18px 20px 14px;
    }

    .servicio-head .servicio-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .servicio-head h3 {
        margin-bottom: 0;
    }

    .servicio-body {
        padding: 16px 20px 22px;
    }

    /* Gimnasta */
    .sobre-gimnasta {
        margin-top: 20px;
        padding: 10px;
        max-width: none;
    }

    .sobre-gimnasta-caption {
        font-size: 13px;
        padding: 10px 6px 4px;
    }

    /* Instalaciones: fotos completas a lo ancho */
    .instalaciones-grid {
        gap: 16px;
    }

    .instal-photo {
        width: 100%;
    }

    .instal-photo img {
        width: 100%;
        height: auto;
    }

    /* Contacto y colaboradores */
    .contacto-card {
        padding: 22px 20px;
    }

    .colaboradores {
        padding: 48px 0 60px;
    }

    .colab-title {
        margin-bottom: 24px;
    }

    .colab-card {
        padding: 14px 24px;
        min-width: 140px;
    }

    .colab-card img {
        max-height: 64px;
    }

    /* Footer */
    .footer {
        padding-top: 56px;
    }

    .footer-logo-img {
        height: 72px;
    }

    .footer-links a {
        padding: 10px 0;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .mobile-only {
        display: inline;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 14px;
    }

    .stat-number {
        font-size: 20px;
    }
}

/* Móviles con pantalla corta: comprimir el hero para que quepa entero */
@media (max-width: 768px) and (max-height: 640px) {
    .hero.hero-video {
        padding-top: 76px;
        padding-bottom: 26px;
    }

    .hero-badge {
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 1.9rem;
        margin-bottom: 10px;
    }

    .hero-sub {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .hero-actions {
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-stats {
        padding: 10px 14px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* ============================================================
   EXCELENCIA MÓVIL (todo scoped a <=768px o invisible en desktop)
   ============================================================ */

/* ---------- Fallbacks tipográficos con métricas ajustadas ---------- */

@font-face {
    font-family: 'Montserrat Fallback';
    src: local('Arial');
    size-adjust: 112.9%;
    ascent-override: 85.8%;
    descent-override: 22.3%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107.6%;
    ascent-override: 90.2%;
    descent-override: 22.5%;
    line-gap-override: 0%;
}

/* Android no tiene Arial: familias equivalentes con métricas para Roboto */
@font-face {
    font-family: 'Montserrat Fallback Android';
    src: local('Roboto');
    size-adjust: 110.4%;
    ascent-override: 87.8%;
    descent-override: 22.8%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Inter Fallback Android';
    src: local('Roboto');
    size-adjust: 100.4%;
    ascent-override: 96.6%;
    descent-override: 24%;
    line-gap-override: 0%;
}

/* ---------- Barra de acciones fija (Llamar + WhatsApp) ---------- */

.mobile-action-bar { display: none; }
.nav-call { display: none; }
.video-toggle { display: none; }

@media (max-width: 768px) {
    body {
        font-family: 'Inter', 'Inter Fallback', 'Inter Fallback Android', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    h1, h2, h3, h4,
    .btn,
    .section-tag,
    .stat-number,
    .step-number,
    .edu-year,
    .sobre-role,
    .sobre-gimnasta-caption,
    .colab-title {
        font-family: 'Montserrat', 'Montserrat Fallback', 'Montserrat Fallback Android', sans-serif;
    }

    .mobile-action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        display: flex;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(45, 52, 54, 0.08);
        box-shadow: 0 -4px 20px rgba(45, 52, 54, 0.08);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
    }

    .mobile-action-bar.visible {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mab-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        border-radius: 50px;
        font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .mab-call {
        background: var(--white);
        color: var(--teal-dark);
        border: 2px solid var(--teal);
    }

    .mab-call:active { background: var(--teal-light); }

    .mab-wa {
        background: #25D366;
        color: var(--white);
    }

    .mab-wa:active { background: #1eb855; }

    .mobile-action-bar.visible ~ .whatsapp-float {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .footer-bottom {
        padding-bottom: calc(20px + 68px + env(safe-area-inset-bottom, 0px));
    }

    /* ---------- Botón de llamada en la cabecera ---------- */

    .nav-call {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--teal-light);
        color: var(--teal-dark);
    }

    .nav-call:active { background: rgba(91, 190, 181, 0.35); }

    /* ---------- Control de pausa del vídeo (WCAG 2.2.2) ---------- */

    .video-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 14px;
        left: 16px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(0, 0, 0, 0.35);
        color: rgba(255, 255, 255, 0.9);
        z-index: 2;
        cursor: pointer;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .video-toggle:active { background: rgba(0, 0, 0, 0.55); }

    /* ---------- Overlay más profundo: legibilidad sobre frames claros ---------- */

    .hero-overlay {
        background: linear-gradient(180deg, rgba(24, 28, 29, 0.74) 0%, rgba(24, 28, 29, 0.64) 50%, rgba(24, 28, 29, 0.8) 100%);
    }

    .hero-video .hero-sub {
        color: rgba(255, 255, 255, 0.95);
    }

    /* ---------- La siguiente sección asoma bajo el hero (scroll cue) ---------- */

    .hero.hero-video {
        min-height: calc(100svh - 56px);
    }

    /* ---------- Texto de lectura a 16px ---------- */

    .quees-text p,
    .sobre-text p,
    .servicio-body p,
    .step-content p,
    .contacto-card p {
        font-size: 16px;
    }

    /* ---------- Contraste AA en etiquetas pequeñas ---------- */

    .section-tag,
    .card-action,
    .ubicacion-note,
    .edu-year,
    .txt-teal,
    .sobre-gimnasta-caption strong {
        color: #2E7A72;
    }

    .sobre-role {
        color: #2E7A72 !important;
    }

    .whatsapp-card .card-action {
        color: #0F7265;
    }

    .colab-title {
        color: var(--text-light);
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.65);
    }

    /* ---------- Feedback táctil inmediato ---------- */

    a, button { touch-action: manipulation; }

    /* 1º: neutralizar hovers de escritorio que se quedan pegados tras el tap */
    .servicio-card:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    .servicio-card:hover .servicio-photo img { transform: none; }
    .instal-photo:hover img { transform: none; }
    .sobre-gimnasta:hover { transform: none; box-shadow: var(--shadow-md); }
    .colab-card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .nav-cta:hover { transform: none; box-shadow: none; }
    .btn-primary:hover {
        transform: none;
        background: var(--teal);
        box-shadow: 0 4px 15px rgba(91, 190, 181, 0.3);
    }
    .linkedin-link:hover {
        transform: none;
        background: rgba(10, 102, 194, 0.08);
    }
    .contacto-card:hover {
        border-color: transparent;
        box-shadow: none;
    }
    .whatsapp-card:hover {
        border-color: rgba(37, 211, 102, 0.2);
        box-shadow: none;
    }

    /* 2º: estados :active — después de los resets para ganar en cascada */
    .btn-primary:active {
        background: var(--teal-dark);
        transform: scale(0.97);
    }
    .hero-video .btn-outline:active {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--white);
    }
    .nav-cta:active { background: var(--teal-dark); }
    .nav-links a:active { color: var(--teal); }
    .whatsapp-float:active { transform: scale(0.92); }
    .contacto-card:active {
        border-color: rgba(91, 190, 181, 0.35);
        box-shadow: var(--shadow-sm);
    }
    .whatsapp-card:active { border-color: rgba(37, 211, 102, 0.4); }
    .footer-links a:active { color: var(--teal); }
    .linkedin-link:active { background: rgba(10, 102, 194, 0.15); }
    .btn-insta:active { transform: scale(0.97); }
}

/* ---------- Respetar prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .whatsapp-float,
    .hero-scroll { animation: none; }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .servicio-photo img,
    .instal-photo img,
    .servicio-card,
    .sobre-gimnasta,
    .colab-card,
    .btn,
    .nav-cta,
    .contacto-card,
    .whatsapp-float,
    .mobile-action-bar { transition: none; }
}

/* Móvil: foto del fisio bajo la bio, tarjeta de gimnasta debajo */
@media (max-width: 768px) {
    .sobre-gimnasta {
        margin-top: 16px;
    }
}
