:root {
    --bg: #f4f4f2;
    --surface: #ffffff;
    --surface-strong: #eaeaea;
    --ink: #111111;
    --text: #242424;
    --muted: #666663;
    --soft: #888885;
    --line: #e2e2df;
    --dark: #111111;
    --dark-soft: #242424;
    --white: #f4f4f2;
    --radius: 6px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(244, 244, 242, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --accent: #1a1a1a;
    /* Colores de marca extraídos (valores exactos, no modificar tonos) */
    --star: #f59f00;
    --whatsapp: #25D366;
    --whatsapp-dark: #20BD5A;
    --footer-text: #d7d7d1;
    --footer-soft: #a7a7a2;
    --footer-label: #8f8f8b;
    /* Tipografías */
    --font-base: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    /* Curvas de movimiento profesionales */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-soft) var(--bg);
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-base);
    overflow-x: hidden;
}

/* Reset de imágenes: respetan proporciones nativas por defecto */
img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Utilidades de encuadre reutilizables segun el contenedor */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

a {
    color: inherit;
}

::selection {
    background: var(--dark-soft);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-soft);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dark) 0%, var(--muted) 100%);
    backdrop-filter: blur(2px);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
}

.navbar {
    position: relative;
    width: 100%;
    min-height: 108px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    height: 108px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
}

.nav-logo:hover {
    transform: scale(1.03);
}

.nav-logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dark-soft);
    transition: width var(--transition-smooth), left var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.nav-links a:hover, .nav-links a:focus-visible {
    color: var(--ink);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 260px;
    padding: 14px 0;
    list-style: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px) scale(1);
}

.dropdown-menu a {
    width: 100%;
    min-height: auto;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    transition: background var(--transition-fast), padding var(--transition-fast);
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 28px;
}

.btn-appointment, .btn-primary, .btn-secondary, .contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 24px;
    border: 1px solid var(--dark-soft);
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-appointment::before, .btn-primary::before, .contact-form button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-appointment:hover::before, .btn-primary:hover::before, .contact-form button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-appointment, .btn-primary, .contact-form button {
    background: var(--dark-soft);
    color: var(--white) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--dark-soft);
}

.btn-appointment:hover, .btn-primary:hover, .contact-form button:hover {
    background: transparent;
    color: var(--dark-soft) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: var(--dark-soft);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-appointment:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .contact-form button:focus-visible,
.footer-col a:focus-visible, .footer-legal a:focus-visible, .whatsapp-float:focus-visible,
.service-card:focus-visible, .why-card:focus-visible, .review-card:focus-visible, .treatment-card:focus-visible, .page-card:focus-visible,
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
    outline: 2px solid var(--dark-soft);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    position: relative;
    flex: 0 0 auto;
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}

.nav-toggle:hover {
    border-color: var(--dark-soft);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--dark);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    padding-top: 108px;
}

section {
    padding: 110px 8%;
    border-bottom: 1px solid var(--line);
}

.hero-section, .team-section, .contact-section, .page-hero {
    min-height: calc(100vh - 108px);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 40px;
}

.hero-content, .team-content, .contact-copy {
    flex: 1 1 400px;
    max-width: 600px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-media {
    flex: 1 1 400px;
    position: relative;
    height: 500px;
    min-height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--dark-soft);
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-media.active::before {
    transform: scaleY(0);
}

.team-media::before {
    display: none;
}

.real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    display: block;
}

.hero-content h1 {
    opacity: 0;
    transform: translateX(-46px) translateY(10px);
    animation: floatTitleIn 1.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 3vw, 3.4rem);
}

h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-content p, .section-heading p, .team-content > p, .contact-copy p {
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.clinic-video-section {
    position: relative;
    min-height: 440px;
    padding-top: 72px;
    padding-bottom: 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.clinic-video-section .section-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.clinic-video-section h2 {
    max-width: 820px;
    color: var(--white);
}

.eyebrow {
    display: inline-block;
    color: var(--dark-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.clinic-video-section .eyebrow {
    color: #c8c8c2;
}

.clinic-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        url("../img/poster-clinica-panoramica.jpg") center / cover no-repeat,
        var(--dark);
}

.clinic-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0.28) 48%, rgba(17, 17, 17, 0.12) 100%);
    z-index: 1;
}

.clinic-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.clinic-video-bg.is-video-ready video {
    opacity: 1;
}

.trust-section {
    padding: 60px 8%;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #2c2c2c;
    position: relative;
    z-index: 1;
}

.trust-item {
    min-height: 130px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-smooth), transform var(--transition-smooth);
}

.trust-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.trust-item:hover {
    background: var(--dark-soft);
    transform: scale(1.02);
}

.trust-item:hover::before {
    opacity: 1;
}

.trust-icon {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    position: relative;
}

.trust-icon::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--muted);
    margin-top: 8px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.trust-item:hover .trust-icon::after {
    transform: scaleX(1);
}

.trust-item strong {
    color: #bdbdb8;
    font-size: 13px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-heading {
    width: min(780px, 100%);
    margin-bottom: 48px;
    position: relative;
}

.services-section, .featured-section, .why-section, .reviews-section {
    display: block;
}

.service-grid, .featured-grid, .why-grid, .review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-card, .why-card, .review-card, .page-card, .treatment-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
}

.service-card::before, .why-card::before, .review-card::before, .treatment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dark) 0%, var(--muted) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover::before, .why-card:hover::before, .review-card:hover::before, .treatment-card:hover::before {
    transform: scaleX(1);
}

.service-card, .why-card, .review-card, .page-card {
    padding: 32px;
}

.service-card:hover, .why-card:hover, .review-card:hover, .treatment-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: var(--dark-soft);
    border-color: var(--dark-soft);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.service-card:hover h3, .service-card:hover p, .service-card:hover a,
.why-card:hover h3, .why-card:hover p,
.review-card:hover p, .review-card:hover strong, .review-card:hover span,
.treatment-card:hover h3, .treatment-card:hover p, .treatment-card:hover a {
    color: var(--white);
    transition: color 0.3s ease 0.1s;
}

.service-card h3 { transition: color 0.3s ease 0.05s; }
.service-card p { transition: color 0.3s ease 0.15s; }
.service-card a { transition: color 0.3s ease 0.2s, padding-left 0.3s ease; }

.service-card a, .treatment-card a {
    display: inline-flex;
    margin-top: 24px;
    color: var(--dark-soft);
    font-weight: 800;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.service-card a::after, .treatment-card a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark-soft);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.service-card:hover a::after, .treatment-card:hover a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.card-img-holder {
    height: 250px;
    overflow: hidden;
    background: var(--surface-strong);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-holder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.3) 0%, transparent 50%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.treatment-card:hover .card-img-holder::after {
    opacity: 1;
}

.card-img-holder img:not(.treatment-icon) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.08);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.treatment-card:hover .card-img-holder img:not(.treatment-icon) {
    filter: saturate(1.2) contrast(1.08);
    transform: scale(1.12);
}

.card-body {
    padding: 30px;
}

.team-section {
    background: var(--surface);
}

.doctor-list {
    display: grid;
    gap: 16px;
    margin: 28px 0 30px;
}

.doctor-list article {
    padding: 22px;
    border-left: 2px solid var(--dark-soft);
    background: var(--bg);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.doctor-list article:hover {
    background: var(--dark-soft);
    border-color: var(--muted);
    transform: translateX(8px);
}

.doctor-list article:hover h3, .doctor-list article:hover p {
    color: var(--white);
}

.why-section {
    background: var(--surface-strong);
}

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

.reviews-section {
    background: var(--surface);
}

.review-card {
    position: relative;
}

.review-card::before {
    content: "\201C";
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 6rem;
    color: var(--line);
    line-height: 1;
    transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.review-card:hover::before {
    color: var(--dark-soft);
    transform: scale(1.1);
}

.review-card span {
    display: block;
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 800;
}

.review-card p {
    margin-bottom: 20px;
}

.team-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: calc(100vh - 88px) !important;
    padding: 80px 8% !important;
    gap: 60px;
    background: var(--surface);
    overflow: hidden;
}

.team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px 0 0;
    opacity: 1 !important;
    transform: none !important;
}

.team-media {
    flex: 0 1 420px;
    align-self: center;
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 9 / 16;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 auto;
    background: transparent;
}

.team-media::before {
    display: none !important;
}

.team-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    opacity: 1 !important;
    filter: none !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-team-media {
    flex: 0 1 420px;
    width: min(100%, 420px);
    aspect-ratio: 1067 / 1600;
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: center;
    border-radius: 8px;
}

.about-team-media img {
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center 18%;
}

.team-media:hover img {
    transform: none;
    filter: none;
}

.contact-section {
    background: var(--bg);
    padding: 110px 8%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.contact-copy {
    flex: 1 1 400px;
}

.contact-form {
    flex: 1 1 400px;
    display: grid;
    gap: 18px;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    max-width: 600px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--dark-soft);
    box-shadow: 0 0 0 3px rgba(36, 36, 36, 0.1);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
}

.site-footer {
    padding: 78px 8% 36px;
    background: var(--dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 54px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 88px;
    width: auto;
    transition: transform var(--transition-smooth);
    margin-bottom: 24px;
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.footer-brand p {
    color: #a7a7a2;
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-address {
    color: #d7d7d1;
    line-height: 1.7;
    max-width: 260px;
}

.footer-address a {
    color: inherit;
    display: inline-block;
}

.footer-col h2 {
    margin-bottom: 20px;
    color: #8f8f8b;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 14px;
    transition: transform var(--transition-fast);
}

.footer-col li:hover {
    transform: translateX(6px);
}

.footer-col a, .footer-legal a {
    color: #d7d7d1;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-col a:hover, .footer-legal a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid #2a2a2a;
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    min-height: 48px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    color: #ffffff;
    border: 1px solid var(--whatsapp);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-fast);
    overflow: hidden;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.whatsapp-float:hover::before {
    opacity: 1;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
}

.page-hero {
    min-height: 62vh;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.page-hero .hero-media {
    height: 430px;
}

.page-content {
    display: block;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.reveal-left, .reveal-right, .reveal-up, .reveal-fade, .reveal-scale {
    opacity: 0;
    transition: opacity 1.15s ease, transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left { transform: translateX(-72px); }
.reveal-right { transform: translateX(72px); }
.reveal-up { transform: translateY(52px); }
.reveal-fade { transform: none; }
.reveal-scale { transform: scale(0.92); }

.active {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

/* ========================================
   EFECTOS DE MOVIMIENTO PREMIUM (SCROLL)
   fade-in / slide-up con curvas profesionales
   ======================================== */

.fade-in,
.slide-up {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.slide-up {
    transform: translateY(48px);
}

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

/* Mejora progresiva: animacion nativa ligada al scroll (sin JS) */
@supports (animation-timeline: view()) {
    .fade-in,
    .slide-up {
        opacity: 1;
        animation: scrollFadeUp linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 42%;
    }

    .fade-in { animation-name: scrollFade; }
}

@keyframes scrollFadeUp {
    from { opacity: 0; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Respeto a usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-left, .reveal-right, .reveal-up, .reveal-fade, .reveal-scale,
    .fade-in, .slide-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

@keyframes floatTitleIn {
    0% {
        opacity: 0;
        transform: translateX(-56px) translateY(16px);
    }
    65% { opacity: 1; }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .navbar {
        min-height: 96px;
        gap: 16px;
    }

    .nav-logo {
        height: 88px;
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 64px);
    }

    .nav-logo img {
        width: 100%;
        height: 100%;
    }

    .nav-toggle { 
        display: block;
        flex: 0 0 auto;
    }

    main {
        padding-top: 96px;
    }

    .nav-links {
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        width: 100vw;
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        padding: 16px 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: rgba(244, 244, 242, 0.98);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
        z-index: 999;
    }

    .nav-links.is-open {
        display: flex;
        animation: fadeInUp 0.4s ease-out;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        margin: 0 0 10px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        border-color: transparent;
        background: rgba(255, 255, 255, 0.98);
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        min-height: 40px;
        color: var(--ink);
        font-weight: 600;
        font-size: 13px;
        padding: 8px 16px;
    }

    .nav-links a {
        font-size: 14px;
        min-height: 44px;
        padding: 10px 0;
    }

    .hero-section, .team-section, .contact-section, .page-hero {
        flex-direction: column;
        min-height: auto;
        padding: 40px 5%;
    }

    .hero-content, .team-content, .contact-copy {
        flex: none;
        max-width: 100%;
        padding: 0;
    }

    .hero-media, .team-media {
        flex: none;
        width: 100%;
        height: 350px;
        min-height: 350px;
        max-height: 500px;
    }

    .hero-media img, .team-media img {
        min-height: 350px;
        max-height: 500px;
        object-position: center 10%;
    }

    .team-media, .team-media img {
        max-height: none;
    }

    .team-section .team-media {
        width: min(100%, 420px);
        height: auto;
        aspect-ratio: 1067 / 1600;
        margin: 0 auto;
        min-height: 0;
    }

    .team-section .team-media img {
        min-height: 0;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .trust-grid, .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-grid, .featured-grid, .review-grid, .page-grid, .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .team-section {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .team-media {
        flex: none !important;
        width: min(100%, 420px) !important;
        aspect-ratio: 1067 / 1600 !important;
        height: auto !important;
        margin: 0 auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .team-media img {
        min-height: 0 !important;
        height: 100% !important;
        max-height: none !important;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .page-hero .hero-media {
        height: 350px;
    }

    .page-hero .about-team-media {
        width: min(100%, 420px);
        height: auto;
        aspect-ratio: 1067 / 1600;
        min-height: 0;
        margin: 0 auto;
    }

    .page-hero .about-team-media img {
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 98px;
        padding: 0 4%;
        gap: 12px;
    }

    .nav-logo {
        height: 88px;
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 56px);
    }

    .nav-logo img {
        width: 100%;
        height: 100%;
    }

    .nav-links {
        top: 98px;
        max-height: calc(100vh - 98px);
        max-height: calc(100dvh - 98px);
    }

    main { padding-top: 98px; }

    .nav-toggle {
        width: 44px !important;
        height: 44px !important;
        display: block !important;
        border-width: 1px;
        flex: 0 0 auto;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        margin: 5px auto;
    }

    section { padding: 60px 5%; }

    .dropdown-menu {
        gap: 0 !important;
    }

    .dropdown-menu a {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 13px;
    }

    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 16px;
    }

    h3 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-media, .team-media, .page-hero .hero-media {
        height: 300px;
        min-height: 280px;
    }

    .hero-media img, .team-media img {
        min-height: 280px;
        max-height: 400px;
    }

    .team-media, .team-media img {
        max-height: none;
    }

    .page-hero .about-team-media {
        width: min(100%, 380px);
        height: auto;
        min-height: 0;
        aspect-ratio: 1067 / 1600;
    }

    .page-hero .about-team-media img {
        height: 100%;
        min-height: 0;
    }

    .clinic-video-section {
        min-height: 280px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .trust-grid, .service-grid, .featured-grid, .why-grid, .review-grid, .page-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom, .footer-legal, .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-form {
        padding: 24px;
        gap: 16px;
    }

    .contact-form label {
        font-size: 12px;
    }

    .contact-form input, .contact-form textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    .btn-primary, .btn-secondary, .btn-appointment, .contact-form button {
        width: 100%;
        min-height: 50px;
        font-size: 14px;
    }

    .hero-actions {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .service-card, .why-card, .review-card, .page-card {
        padding: 24px;
    }

    .card-body {
        padding: 20px;
    }

    .card-img-holder {
        height: 200px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding: 12px 16px;
        font-size: 11px;
        border-radius: 4px;
    }

    .footer-logo-img {
        height: 70px;
        margin-bottom: 20px;
    }

    .site-footer {
        padding: 60px 5% 30px;
    }

    .footer-grid {
        gap: 32px;
        margin-bottom: 40px;
    }

    .doctor-list article {
        padding: 18px;
    }

    .review-card::before {
        font-size: 4rem;
        right: 16px;
    }

    .trust-item {
        min-height: 100px;
        padding: 20px;
    }

    .trust-icon {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .trust-item strong {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        min-height: 94px;
        padding: 0 3%;
        gap: 8px;
    }

    .nav-logo {
        height: 84px;
        max-width: calc(100% - 52px);
    }

    main {
        padding-top: 94px;
    }

    section {
        padding: 40px 3%;
    }

    .nav-links {
        top: 94px;
        max-height: calc(100vh - 94px);
        max-height: calc(100dvh - 94px);
    }

    h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .hero-media, .team-media, .page-hero .hero-media {
        height: 250px;
        min-height: 220px;
    }

    .hero-media img, .team-media img {
        min-height: 220px;
        max-height: 350px;
    }

    .team-media, .team-media img {
        max-height: none;
    }

    .page-hero .about-team-media {
        width: min(100%, 340px);
        height: auto;
        min-height: 0;
        aspect-ratio: 1067 / 1600;
    }

    .page-hero .about-team-media img {
        height: 100%;
        min-height: 0;
    }

    .service-card, .why-card, .review-card, .page-card {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .btn-primary, .btn-secondary, .btn-appointment, .contact-form button {
        padding: 12px 20px;
        font-size: 13px;
    }

    .whatsapp-float {
        right: 10px;
        bottom: 10px;
        min-height: 46px;
        padding: 10px 14px;
        font-size: 10px;
        border-radius: 3px;
    }

    .site-footer {
        padding: 50px 4% 24px;
    }

    .footer-grid {
        gap: 28px;
        margin-bottom: 32px;
    }

    .clinic-video-section {
        min-height: 240px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .trust-item {
        min-height: 90px;
        padding: 16px;
    }

    .trust-icon {
        font-size: 1.5rem;
    }

    .trust-item strong {
        font-size: 11px;
    }
}

/* Ultra-pequeños: < 380px (iPhone SE, etc.) */
@media (max-width: 380px) {
    .navbar {
        min-height: 88px;
        padding: 0 3%;
        gap: 8px;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        flex-shrink: 0;
    }

    .nav-logo {
        height: 78px;
        max-width: calc(100% - 46px);
    }

    .nav-logo img {
        height: 100%;
        width: 100%;
    }

    main {
        padding-top: 88px;
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
        display: block;
        flex: 0 0 auto;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        margin: 5px auto;
    }

    .nav-links {
        top: 88px;
        max-height: calc(100vh - 88px);
        max-height: calc(100dvh - 88px);
    }

    section {
        padding: 35px 3%;
    }

    h1 {
        font-size: clamp(1.3rem, 5vw, 1.75rem) !important;
    }

    h2 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: 14px;
    }

    h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-media, .team-media, .page-hero .hero-media {
        height: 220px;
        min-height: 200px;
    }

    .hero-media img, .team-media img {
        min-height: 200px;
        max-height: 300px;
    }

    .whatsapp-float {
        right: 8px;
        bottom: 8px;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 9px;
        border-radius: 2px;
    }

    .btn-primary, .btn-secondary, .btn-appointment, .contact-form button {
        padding: 10px 16px;
        font-size: 12px;
        min-height: 44px;
    }

    .contact-form {
        padding: 16px;
        gap: 14px;
    }

    .service-card, .why-card, .review-card, .page-card {
        padding: 16px;
    }

    .card-img-holder {
        height: 180px;
    }

    .site-footer {
        padding: 40px 3% 20px;
    }

    .footer-grid {
        gap: 20px;
        margin-bottom: 24px;
    }

    .footer-logo-img {
        height: 50px;
        margin-bottom: 16px;
    }

    .footer-col h2 {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .footer-col li {
        margin-bottom: 10px;
    }

    .footer-col a, .footer-legal a {
        font-size: 13px;
    }

    .trust-grid, .service-grid, .featured-grid, .why-grid, .review-grid, .page-grid, .footer-grid {
        gap: 14px;
    }

    .trust-item {
        min-height: 80px;
        padding: 12px;
    }

    .trust-icon {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .trust-item strong {
        font-size: 10px;
    }

    .clinic-video-section {
        min-height: 200px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .clinic-video-section h2 {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

    .doctor-list article {
        padding: 14px;
    }

    .review-card::before {
        font-size: 3rem;
        right: 12px;
        top: 12px;
    }

    .contact-form label {
        font-size: 11px;
    }

    .contact-form input, .contact-form textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .hero-actions {
        gap: 10px;
    }
}

@media (min-width: 1400px) {
    .navbar {
        padding: 0 10%;
    }

    section {
        padding: 120px 10%;
    }

    .site-footer {
        padding: 90px 10% 40px;
    }

    .contact-section {
        padding: 120px 10%;
    }

    .team-section {
        padding: 100px 10% !important;
    }
}

@media (min-width: 1800px) {
    .navbar {
        padding: 0 15%;
    }

    section {
        padding: 140px 15%;
    }

    .site-footer {
        padding: 100px 15% 45px;
    }

    .contact-section {
        padding: 140px 15%;
    }

    .team-section {
        padding: 120px 15% !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .service-card:hover, .why-card:hover, .review-card:hover, .treatment-card:hover {
        transform: none;
        background: var(--surface);
        border-color: var(--line);
        box-shadow: none;
    }

    .service-card:hover h3, .service-card:hover p, .service-card:hover a,
    .why-card:hover h3, .why-card:hover p,
    .review-card:hover p, .review-card:hover strong, .review-card:hover span,
    .treatment-card:hover h3, .treatment-card:hover p, .treatment-card:hover a {
        color: inherit;
    }

    .service-card:hover::before, .why-card:hover::before, .review-card:hover::before, .treatment-card:hover::before {
        transform: scaleX(0);
    }

    .service-card:hover a::after, .treatment-card:hover a::after {
        transform: scaleX(0);
    }

    .nav-logo:hover {
        transform: none;
    }

    .footer-logo-img:hover {
        transform: none;
    }

    .doctor-list article:hover {
        background: var(--bg);
        border-color: var(--dark-soft);
        transform: none;
    }

    .doctor-list article:hover h3, .doctor-list article:hover p {
        color: inherit;
    }

    .trust-item:hover {
        background: var(--dark);
        transform: none;
    }

    .trust-item:hover::before {
        opacity: 0;
    }

    .trust-item:hover .trust-icon::after {
        transform: scaleX(0);
    }

    .review-card:hover::before {
        color: var(--line);
        transform: none;
    }

    .treatment-card:hover .card-img-holder::after {
        opacity: 0;
    }

    .treatment-card:hover .card-img-holder img:not(.treatment-icon) {
        filter: saturate(1.06) contrast(1.03);
        transform: scale(1.08);
    }

    .team-media:hover img {
        transform: none;
        filter: none;
    }

    .whatsapp-float:hover::before {
        opacity: 0;
    }

    .whatsapp-float:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        background: #25D366;
        border-color: #25D366;
    }

    .btn-primary:hover, .btn-secondary:hover, .btn-appointment:hover, .contact-form button:hover {
        transform: none;
        box-shadow: none;
    }

    .footer-col li:hover {
        transform: none;
    }
}

/* ========================================
   HERO CON VIDEO DE FONDO (index-v2.html)
   ======================================== */

.hero-video {
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 192px);
    text-align: left;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        url("../img/poster-quirofano.jpg") center / cover no-repeat,
        #111111;
}

.hero-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(17, 17, 17, 0.5);
    pointer-events: none;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(35%) saturate(0.72) contrast(0.95);
    transition: opacity 0.45s ease;
}

.hero-video-bg.is-video-ready video {
    opacity: 1;
}

.hero-video .hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-left: -28px;
    padding: 0 20px;
}

.hero-video .hero-content h1 {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.hero-video .hero-content .hero-brand {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hero-video .hero-content .hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: lowercase;
}

.hero-video .hero-content .hero-description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.5;
    margin-bottom: 15px;
}

.hero-video .hero-content .hero-services {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    text-transform: lowercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.hero-video .hero-content p {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-video .hero-content .eyebrow {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-video .btn-primary {
    background: #ffffff;
    color: var(--ink) !important;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-video .btn-primary:hover {
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-video .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-video .btn-secondary:hover {
    background: #ffffff;
    color: var(--ink);
    text-shadow: none;
}

/* ========================================
   SECCIÓN PROPUESTA DE VALOR
   ======================================== */

.value-proposition-section {
    background: var(--surface);
    padding: 80px 8%;
    border-bottom: 1px solid var(--line);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
}

.value-icon {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.value-card h3 {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para hero con video y sección de valor */

@media (max-width: 1180px) {
    .hero-video {
        min-height: calc(100vh - 168px);
    }
}

@media (max-width: 768px) {
    .hero-video {
        min-height: 600px;
        justify-content: center;
        text-align: center;
    }

    .hero-video .hero-content {
        margin-left: 0;
    }

    .hero-video-bg.is-video-ready video {
        opacity: 1;
    }

    .value-proposition-section {
        padding: 60px 5%;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .value-icon {
        font-size: 3rem;
    }

    .value-card h3 {
        font-size: 1.125rem;
    }

    .value-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-video {
        min-height: 500px;
        justify-content: center;
    }

    .hero-video-bg.is-video-ready video {
        opacity: 1;
    }

    .value-proposition-section {
        padding: 50px 4%;
    }

    .value-card {
        padding: 25px 15px;
    }

    .value-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
}

/* ========================================
   SECCIÓN DE RESEÑAS
   ======================================== */

.reviews-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-platform {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--surface-strong);
    border-radius: 8px;
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
}

.rating-stars {
    font-size: 1.5rem;
    color: var(--star);
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: auto;
}

.review-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.review-card p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.review-card strong {
    color: var(--muted);
    font-size: 0.9rem;
}

.doctoralia-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doctoralia-buttons .btn-secondary {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* ========================================
   SECCIÓN DE MAPA
   ======================================== */

.map-section {
    background: var(--surface);
    padding: 80px 5%;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

.about-location-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}

/* Responsive para reseñas y mapa */

@media (max-width: 768px) {
    .reviews-platforms {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .platform-badge {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rating-number {
        font-size: 2rem;
    }

    .rating-stars {
        font-size: 1.2rem;
    }

    .doctoralia-buttons {
        flex-direction: column;
    }

    .doctoralia-buttons .btn-secondary {
        width: 100%;
    }

    .map-section {
        padding: 60px 4%;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 18px;
    }

    .review-card p {
        font-size: 0.95rem;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* ========================================
   BOTÓN SECUNDARIO PARA FONDOS OSCUROS
   ======================================== */

.btn-secondary-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary-light:hover {
    background: #ffffff;
    color: var(--dark);
    transform: translateY(-2px);
}

/* ========================================
   FORMULARIO DE CONTACTO EN MÓVILES
   ======================================== */

@media (max-width: 768px) {
    .contact-form {
        overflow: visible;
        padding-bottom: 20px;
    }
    
    .contact-form button {
        margin-top: 10px;
        width: 100%;
    }
}

/* ========================================
   IMAGEN EN "SOBRE NOSOTROS"
   ======================================== */

.page-hero .hero-media img {
    object-fit: cover;
    object-position: center center;
}

.page-hero .about-team-media img {
    object-position: center 18%;
}

/* ========================================
   IMAGEN PANORAMICA EN HERO DE PAGINA
   ======================================== */

.page-hero .hero-media-wide {
    aspect-ratio: 2752 / 1369;
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: center;
    background: var(--surface-strong);
}

.page-hero .hero-media-wide img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
}

@media (max-width: 1024px) {
    .page-hero .hero-media-wide {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .page-hero .hero-media-wide img {
        min-height: 0;
        max-height: none;
    }
}

/* ========================================
   IMAGEN EN "NUESTRO EQUIPO" (DESKTOP)
   ======================================== */

.team-media {
    aspect-ratio: 3 / 4;
}

@media (max-width: 768px) {
    .team-media {
        aspect-ratio: 1067 / 1600;
    }
}

/* ========================================
   LISTAS EN MÓVIL (NOSOTROS)
   ======================================== */

@media (max-width: 768px) {
    .page-content .page-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px;
        width: 100%;
        min-width: 0;
    }
    
    .page-content .page-card {
        min-width: 0;
        padding: 22px;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .page-content .page-card *,
    .page-content .section-heading,
    .page-content .section-heading * {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

/* ========================================
   ICONOS EN TARJETAS
   ======================================== */

.service-icon, .treatment-icon {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    position: relative;
    z-index: 2;
    isolation: isolate;
    pointer-events: none;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
}

.treatment-icon {
    width: 120px;
    height: 120px;
    max-width: 52%;
    margin: 0 auto;
}
