:root {
    --azul-corp: #6f6f6f;
    --naranja: #f6b15b;
    --glass: rgba(255, 255, 255, 0.88);
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
    --azul-profundo: #6f6f6f;
    --azul-vivo: #8a8a8a;
    --celeste: #e8f3ff;
    --fondo: #f5f9fd;
    --texto: #6f6f6f;
    --muted: #8a8a8a;
    --btn-gray: #7a7a7a;
    --btn-gray-dark: #646464;
    --btn-orange: #f6b15b;
    --btn-orange-dark: #e79a35;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7.5rem;
}

body {
    background:
        radial-gradient(circle at 85% 0%, rgba(135, 136, 138, 0.16), transparent 28rem),
        linear-gradient(180deg, #f7fbff 0%, #edf6ff 52%, #ffffff 100%);
    color: var(--texto);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(122, 122, 122, 0.12);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    left: 0;
    min-height: 6.9rem;
    padding: 0.65rem clamp(1.25rem, 5vw, 6rem);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.site-logo {
    display: block;
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.8rem;
    flex-shrink: 0;
}



.main-nav {
    align-items: center;
    display: flex;
    gap: clamp(0.5rem, 1.6vw, 2rem);
    font-size: 0.95rem;
    font-weight: 600;
    flex-shrink: 0;
}

.main-nav a {
    color: var(--texto);
    padding: 0.45rem 0;
    position: relative;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--texto);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    gap: 0.35rem;
    padding: 0.45rem 0;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::marker {
    content: "";
}

.nav-dropdown summary i {
    color: var(--naranja);
    font-size: 0.72rem;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown[open] summary i {
    transform: rotate(180deg);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(246, 177, 91, 0.15);
    border-radius: 1.1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(246, 177, 91, 0.05);
    display: grid;
    gap: 0.25rem;
    left: 50%;
    min-width: 16rem;
    opacity: 0;
    visibility: hidden;
    padding: 0.8rem;
    position: absolute;
    top: calc(100% + 0.8rem);
    transform: translate(-50%, 12px) scale(0.96);
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 300ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 80;
    pointer-events: none;
}

.dropdown-menu a {
    border-radius: 0.65rem;
    color: var(--texto);
    padding: 0.7rem 0.85rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(246, 177, 91, 0.08);
    color: var(--naranja);
}

.nav-dropdown[open] .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.main-nav a::after {
    background: var(--naranja);
    border-radius: 99rem;
    bottom: -2px;
    content: "";
    height: 3px;
    left: 50%;
    opacity: 0;
    position: absolute;
    width: 0;
    transform: translateX(-50%);
    transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav .active,
.nav-dropdown[open] summary {
    color: var(--naranja);
}

.main-nav a:hover::after,
.main-nav .active::after {
    opacity: 1;
    width: 100%;
}

.header-cta,
.btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    gap: 0.65rem;
    justify-content: center;
    line-height: 1;
    min-height: 3.2rem;
    padding: 0 1.6rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta,
.btn-primary {
    background: linear-gradient(135deg, var(--btn-gray) 0%, var(--btn-orange) 50%, var(--btn-gray) 100%);
    background-size: 200% auto;
    box-shadow: 0 16px 30px rgba(120, 120, 120, 0.22);
    color: #fff;
}

.header-admin {
    align-items: center;
    background: linear-gradient(135deg, var(--btn-gray) 0%, var(--btn-orange) 50%, var(--btn-gray) 100%);
    background-size: 200% auto;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(120, 120, 120, 0.22);
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    gap: 0.55rem;

/* Typewriter effect styles */
.typewrite-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}

.typewrite-text::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 6px;
    background: var(--btn-gray);
    vertical-align: middle;
    animation: td-blink 1s steps(1) infinite;
}

@keyframes td-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
    justify-content: center;
    line-height: 1;
    min-height: 3.2rem;
    padding: 0 1.3rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-admin:hover {
    background-position: right center;
    box-shadow: 0 20px 35px rgba(246, 177, 91, 0.3);
    transform: translateY(-3px);
}

.header-admin:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary:hover,
.header-cta:hover {
    background-position: right center;
    box-shadow: 0 20px 35px rgba(246, 177, 91, 0.3);
    transform: translateY(-3px);
}

.btn-primary:active,
.header-cta:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-light {
    background: #fff;
    border: 1px solid rgba(122, 122, 122, 0.15);
    box-shadow: 0 4px 12px rgba(122, 122, 122, 0.05);
    color: var(--texto);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease;
}

.btn-light:hover {
    border-color: rgba(246, 177, 91, 0.4);
    box-shadow: 0 8px 20px rgba(122, 122, 122, 0.1);
    transform: translateY(-2px);
}

.btn-light:active {
    transform: translateY(0) scale(0.98);
}

.hero {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    grid-template-columns: minmax(0, 0.9fr) 1fr;
    min-height: 43rem;
    overflow: visible;
    padding: clamp(2rem, 4.5vw, 4rem) 0 2rem clamp(1.25rem, 5vw, 6rem);
    position: relative;
}

.hero::before {
    background: rgba(255, 255, 255, 0.78);
    border-bottom-right-radius: 8rem;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 68%;
    z-index: -1;
}

.hero-copy {
    align-self: center;
    max-width: 43rem;
    position: relative;
    z-index: 2;
}

.hero,
.section,
.clinics {
    scroll-margin-top: 7.5rem;
}

.eyebrow,
.section-kicker {
    background: #dceeff;
    border-radius: 999px;
    color: var(--azul-vivo);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
    max-width: 100%;
    padding: 0.45rem 1rem;
    text-transform: uppercase;
    white-space: normal;
}

.hero h1 {
    color: var(--azul-corp);
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    letter-spacing: 0;
    line-height: 0.98;
    margin: 1.2rem 0 1.25rem;
}

.hero h1 strong,
.phone-preview strong {
    color: var(--azul-vivo);
}

.hero p {
    color: var(--texto);
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.9rem;
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.4rem;
}

.hero-perks span {
    align-items: center;
    color: var(--texto);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.55rem;
}

.hero-perks i {
    align-items: center;
    background: #e1f1ff;
    border-radius: 50%;
    color: var(--azul-vivo);
    display: inline-flex;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.hero-visual {
    align-self: stretch;
    min-height: 35rem;
    position: relative;
    margin-right: clamp(1.25rem, -5vw, -6rem);
}

.hero-visual > img {
    border-bottom-left-radius: 5rem;
    height: 100%;
    object-fit: cover;
    object-position: 88% 20%;
    width: 100%;
    transform: scaleX(-1);
}

.hero-visual::after {
    background: transparent;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.rating-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.2rem;
    position: fixed;
    right: 6.5rem;
    bottom: 1.5rem;
    width: 12rem;
    z-index: 99;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rating-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(28, 63, 115, 0.16);
    border-color: rgba(246, 177, 91, 0.4);
    background: #ffffff;
}

.rating-card .stars {
    transition: transform 0.25s ease;
}

.rating-card:hover .stars {
    animation: starsPulse 0.8s ease infinite alternate;
}

@keyframes starsPulse {
    from { transform: scale(1); filter: drop-shadow(0 0 1px #f5c542); }
    to { transform: scale(1.08); filter: drop-shadow(0 0 4px #f5c542); }
}

.rating-card span {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.rating-card span .fa-google {
    color: var(--azul-corp);
    font-size: 0.95rem;
}

.rating-card strong {
    color: var(--azul-corp);
    font-size: 2.3rem;
    line-height: 1;
}

.stars {
    color: var(--naranja);
    letter-spacing: 0.06em;
}

.rating-card small {
    color: #294266;
}


.phone-preview {
    background: #fff;
    border: 0.55rem solid #0b1320;
    border-radius: 2.3rem;
    box-shadow: 0 24px 55px rgba(5, 23, 55, 0.28);
    min-height: 27rem;
    padding: 2.4rem 1.1rem 1.1rem;
    position: absolute;
    right: clamp(0.4rem, 2vw, 1.5rem);
    top: -1rem;
    transform: rotate(-4deg);
    width: 15.5rem;
    z-index: 4;
}

.phone-speaker {
    background: #0b1320;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    height: 1.3rem;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 5.2rem;
}

.phone-mockup-container {
    position: absolute;
    right: clamp(0.4rem, 2vw, 1.5rem);
    top: -1rem;
    transform: rotate(4deg);
    z-index: 4;
    width: 14rem;
    height: 28rem;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 2.5rem;
    border: 0.5rem solid #1a1a1a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(5, 23, 55, 0.28);
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 1.5rem;
    background: #000;
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: 10;
}

.phone-screen-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2.5rem;
    z-index: 1;
}

.screen-content {
    flex: 1;
    padding: 2.5rem 1.2rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #fff;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55));
}

.screen-content .status-bar {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    text-align: center;
}

#mobile-time {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.screen-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.6rem 0;
    color: #fff;
}

.screen-content h3 strong {
    color: var(--naranja);
}

.screen-content p {
    font-size: 0.65rem;
    opacity: 1;
    color: #fff;
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.phone-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.screen-content .phone-cta {
    background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
    color: #fff;
    padding: 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    transition: all 200ms ease;
    border: 0;
    cursor: pointer;
}

.screen-content .phone-cta:hover {
    background: linear-gradient(135deg, var(--btn-orange), var(--btn-gray));
    transform: scale(1.05);
}

.screen-content .phone-cta-secondary {
    background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
    color: #fff;
    padding: 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    transition: all 200ms ease;
    border: 0;
    cursor: pointer;
}

.screen-content .phone-cta-secondary:hover {
    background: linear-gradient(135deg, var(--btn-orange), var(--btn-gray));
    transform: scale(1.05);
}

.phone-social {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1rem;
}

.phone-social-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 200ms ease;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.phone-social-btn:hover {
    transform: scale(1.1);
}

.phone-social-btn.wa:hover {
    background: #25d366;
    border-color: #25d366;
}

.phone-social-btn.fb:hover {
    background: #1877F2; /* Facebook blue */
    border-color: #1877F2;
    color: #ffffff;
    transform: translateY(-2px);
}

.phone-social-btn.ig:hover {
    background: linear-gradient(135deg, #f77737, #feda75, #d52e7f, #702eea);
    border-color: transparent;
}

.phone-content {
    position: absolute;
    top: 4.2%;
    left: 4.5%;
    right: 4.5%;
    bottom: 4.2%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
}

.phone-content .phone-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.phone-content .phone-header img {
    border-radius: 0.25rem;
    height: 2rem;
    object-fit: cover;
    width: 2rem;
}

.phone-content .phone-header i {
    font-size: 1rem;
    color: var(--azul-corp);
}

.phone-content .mini-pill {
    background: #dceeff;
    border-radius: 99px;
    color: var(--azul-vivo);
    display: inline-flex;
    font-size: 0.52rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.phone-content h2 {
    font-size: 1.25rem;
    line-height: 1.1;
    margin: 0.4rem 0;
    color: var(--azul-corp);
}

.phone-content h2 strong {
    color: var(--azul-vivo);
}

.phone-content p {
    color: var(--muted);
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.phone-content .phone-button {
    align-items: center;
    background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 0.7rem;
    font-weight: 800;
    justify-content: center;
    margin: 0.7rem 0;
    padding: 0.65rem;
    width: 100%;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease;
}

.phone-content .phone-button:hover {
    background: linear-gradient(135deg, var(--btn-orange), var(--btn-gray));
    transform: scale(1.02);
}

.phone-content .mini-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0.6rem;
}

.phone-content .mini-grid span {
    align-items: center;
    background: #f4f8fd;
    border-radius: 0.6rem;
    color: var(--azul-corp);
    display: grid;
    font-size: 0.55rem;
    gap: 0.25rem;
    justify-items: center;
    min-height: 3.2rem;
    padding: 0.4rem 0.2rem;
    text-align: center;
    font-weight: 700;
}

.phone-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.phone-header img {
    border-radius: 0.35rem;
    height: 2.8rem;
    object-fit: cover;
    width: 2.8rem;
}

.mini-pill {
    background: #dceeff;
    border-radius: 99px;
    color: var(--azul-vivo);
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.35rem 0.55rem;
    text-transform: uppercase;
}

.phone-preview h2 {
    font-size: 1.45rem;
    line-height: 1.05;
    margin: 0.8rem 0;
}

.phone-preview p {
    color: var(--muted);
    font-size: 0.78rem;
}

.phone-button {
    align-items: center;
    background: linear-gradient(135deg, var(--naranja), #ff9a2f);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: center;
    margin: 1rem 0;
    min-height: 2.6rem;
    width: 100%;
}

.mini-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, 1fr);
}

.mini-grid span {
    align-items: center;
    background: #f4f8fd;
    border-radius: 0.7rem;
    color: var(--azul-corp);
    display: grid;
    font-size: 0.58rem;
    gap: 0.3rem;
    justify-items: center;
    min-height: 4.1rem;
    padding: 0.45rem;
    text-align: center;
}

.stats-bar {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -2.3rem 0 0 0;
    max-width: 75rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.stats-bar article {
    align-items: center;
    display: grid;
    gap: 0.1rem 1rem;
    grid-template-columns: 3.3rem 1fr;
    padding: 1.3rem 1.6rem;
}

.stats-bar article + article {
    border-left: 1px solid rgba(28, 63, 115, 0.08);
}

.stats-bar i {
    align-items: center;
    background: #dceeff;
    border-radius: 50%;
    color: var(--azul-vivo);
    display: inline-flex;
    font-size: 1.25rem;
    grid-row: span 2;
    height: 3.3rem;
    justify-content: center;
    width: 3.3rem;
}

.stats-bar strong {
    color: var(--azul-corp);
    font-size: 1.55rem;
    line-height: 1;
}

.stats-bar span {
    color: #415575;
    font-size: 0.82rem;
}

/* ==========================================================================
   Premium Stats Interactive Modal (Misión y Valores)
   ========================================================================== */
.stats-interactive {
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.stats-interactive:hover {
    transform: translateY(-2px);
    background-color: #f5f9ff !important;
}

/* Interactive Hero Perks */
.perk-interactive {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(28, 63, 115, 0.04);
    border: 1px solid rgba(28, 63, 115, 0.08);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--texto) !important;
}

.perk-interactive:hover {
    transform: translateY(-2px);
    background: rgba(28, 63, 115, 0.08);
    border-color: rgba(28, 63, 115, 0.25);
    color: var(--azul-corp) !important;
    box-shadow: 0 4px 15px rgba(28, 63, 115, 0.08);
}

.perk-interactive i {
    color: var(--naranja) !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease;
}

.perk-interactive:hover i {
    transform: scale(1.2);
}

/* Modal Overlay */
.stats-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stats-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Card container */
.stats-modal-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 38rem;
    width: 90%;
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Wide Modal for Clinics Meet Us */
.stats-modal-card-wide {
    max-width: 60rem !important;
    width: 95% !important;
}

.clinics-tab-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.clinics-tab-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(28, 63, 115, 0.08);
}

.clinic-tab-btn {
    background: rgba(28, 63, 115, 0.04);
    color: #4b5563;
    border: 1px solid rgba(28, 63, 115, 0.08);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-tab-btn:hover {
    background: rgba(28, 63, 115, 0.08);
    color: var(--azul-corp);
}

.clinic-tab-btn.active {
    background: var(--azul-corp);
    color: #ffffff;
    border-color: var(--azul-corp);
    box-shadow: 0 4px 12px rgba(28, 63, 115, 0.2);
}

.clinic-panel {
    display: none;
    opacity: 0;
}

.clinic-panel.active {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 1.8rem;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

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

@media (max-width: 768px) {
    .clinic-panel.active {
        grid-template-columns: 1fr;
    }
}

.clinic-panel-info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.clinic-panel-info h4 {
    color: var(--azul-corp);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
}

.clinic-panel-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.clinic-panel-info-item i {
    color: var(--naranja);
    margin-top: 0.25rem;
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
}

.clinic-panel-map {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(28, 63, 115, 0.1);
    height: 18rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(28, 63, 115, 0.04);
}

.clinic-panel-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.stats-modal-overlay.active .stats-modal-card {
    transform: scale(1) translateY(0);
}

/* Watermark Transparency background logo */
.stats-modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/logo_custom.png');
    background-size: 70% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05; /* faint transparency watermark logo */
    pointer-events: none;
    z-index: 1;
}

/* Close Button */
.stats-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.95rem;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
}

.stats-modal-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

/* Modal Content formatting */
.stats-modal-content {
    position: relative;
    z-index: 2; /* above the watermark */
}

.stats-modal-content h3 {
    color: var(--azul-corp);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 2px solid rgba(28, 63, 115, 0.08);
    padding-bottom: 0.75rem;
    margin-top: 0;
}

.stats-modal-content h3 i {
    color: var(--naranja);
}

.stats-modal-content p {
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    text-align: left;
}

.stats-modal-content p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--azul-corp);
}

.section,
.clinics {
    padding: clamp(4rem, 7vw, 6.8rem) clamp(1.25rem, 5vw, 6rem);
}

.section h2,
.clinics h2,
.why-card h2,
.final-cta h2 {
    color: var(--azul-corp);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
    line-height: 1.08;
}

.treatments {
    text-align: left;
}

.treatments h2 {
    margin: 0.7rem 0 2.2rem 0;
    max-width: 42rem;
}

.treatment-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: center;
    max-width: 1400px;
    margin: 0;
}

.treatment-card {
    background: #fff;
    border: 1px solid rgba(122, 122, 122, 0.1);
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(122, 122, 122, 0.04);
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 14rem;
    padding: 1.8rem 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-card:hover {
    border-color: rgba(246, 177, 91, 0.4);
    box-shadow: 0 20px 40px rgba(122, 122, 122, 0.12), 0 1px 2px rgba(246, 177, 91, 0.05);
    transform: translateY(-8px) scale(1.02);
}

.treatment-icon {
    align-items: center;
    background: transparent;
    border-radius: 0;
    color: var(--azul-corp);
    display: flex;
    font-size: 1.1rem;
    height: auto;
    justify-content: center;
    margin: 0 0 1rem 0;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-card:hover .treatment-icon {
    transform: scale(1.08) translateY(-2px);
}

.treatment-icon i {
    display: inline-block;
}

.treatment-icon.image-icon {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 4.6rem;
    height: 4.6rem;
    margin: 0 0 0.95rem 0;
}

.treatment-icon.image-icon img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.treatment-icon.image-icon.treatment-icon--large {
    width: 5.7rem;
    height: 5.7rem;
}

.treatment-icon.image-icon.treatment-icon--large img {
    width: 100%;
    height: 100%;
}

.treatment-icon--lift {
    transform: translateY(-3mm);
}

.cookie-consent {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(28, 63, 115, 0.12);
    border-radius: 1.1rem;
    bottom: 1.2rem;
    box-shadow: 0 24px 55px rgba(5, 23, 55, 0.2);
    display: grid;
    gap: 0.9rem;
    left: 1.2rem;
    max-width: 33rem;
    padding: 1.1rem;
    position: fixed;
    z-index: 100;
}

.cookie-consent h2 {
    color: var(--azul-corp);
    font-size: 1.1rem;
    line-height: 1.2;
}

.cookie-consent p {
    color: var(--muted);
    font-size: 0.86rem;
}

.cookie-consent details {
    border-top: 1px solid rgba(28, 63, 115, 0.1);
    padding-top: 0.8rem;
}

.cookie-consent summary {
    color: var(--azul-corp);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
}

.cookie-options {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.cookie-options label {
    align-items: center;
    color: var(--texto);
    display: flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.55rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cookie-actions button,
.cookie-actions label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    border: 0;
    font: inherit;
    min-height: 2.8rem;
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: all 180ms ease;
}

.cookie-actions .btn-light {
    box-shadow: none;
}

.cookie-consent:has(#accept-cookies:checked),
.cookie-consent:has(#reject-cookies:checked) {
    display: none;
}

.treatment-grid h3 {
    color: var(--azul-corp);
    font-size: 1rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.treatment-grid p {
    color: #344c70;
    font-size: 0.78rem;
}

.split-section {
    align-items: stretch;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.8fr);
    padding: 0 clamp(1.25rem, 5vw, 6rem) clamp(4rem, 7vw, 6rem);
}

.image-panel {
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    min-height: 28rem;
    overflow: hidden;
}

.image-panel img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.why-card {
    align-self: center;
    background: linear-gradient(145deg, var(--azul-profundo), var(--azul-corp));
    border-radius: 1.5rem;
    box-shadow: 0 22px 44px rgba(5, 23, 55, 0.24);
    color: #fff;
    padding: clamp(1.6rem, 3vw, 2.4rem);
}

.why-card h2 {
    color: #fff;
    margin-bottom: 1.4rem;
}

.why-card ul {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.why-card li {
    align-items: flex-start;
    display: flex;
    font-weight: 700;
    gap: 0.8rem;
}

.why-card i {
    color: #fff;
    margin-top: 0.2rem;
}

.team {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
}

.team p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 1rem 0 1.5rem;
    max-width: 42rem;
}

.team img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    height: 30rem;
    object-fit: cover;
    width: 100%;
}

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.62);
    gap: 2rem;
    max-width: 87.5rem;
    margin: 0 0 5rem 0;
    padding: 0 1rem;
    width: 100%;
}

.testimonial-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

.testimonial-grid article,
.clinic-card {
    background: #fff;
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.testimonial-grid article {
    display: grid;
    justify-items: start;
}

.testimonial-card-interactive {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

.testimonial-card-interactive:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(28, 63, 115, 0.08);
    border-color: rgba(246, 177, 91, 0.3) !important;
}

.testimonial-name-trigger {
    cursor: pointer;
    font-weight: 700;
    color: var(--azul-corp);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.testimonial-name-trigger:hover {
    color: var(--naranja);
}

.testimonial-socials {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.testimonial-socials a,
.testimonial-socials span {
    align-items: center;
    background: #fff3e8;
    border-radius: 50%;
    color: var(--naranja);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.testimonial-socials .fa-google {
    color: var(--azul-corp);
}

.testimonial-avatar {
    border: 3px solid #fff3e8;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(28, 63, 115, 0.12);
    height: 4.2rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
    width: 4.2rem;
    transition: transform 0.3s ease;
}

.testimonial-avatar-link {
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-avatar-link:hover {
    transform: translateY(-3px) scale(1.05);
}

.testimonial-avatar-link:hover .testimonial-avatar {
    border-color: var(--naranja);
    box-shadow: 0 12px 28px rgba(242, 110, 35, 0.25);
}

.testimonial-grid p {
    color: var(--texto);
    font-size: 0.9rem;
    margin: 0.6rem 0 1rem;
}

.testimonial-grid span {
    color: #536783;
    font-size: 0.85rem;
    font-weight: 700;
}

.testimonial-grid span a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px dashed transparent;
    cursor: pointer;
}

.testimonial-grid span a:hover {
    color: var(--naranja);
    border-bottom: 1px dashed var(--naranja);
}

.clinics {
    background: linear-gradient(180deg, #f5f9fd, #e7f3ff);
}

.section-heading {
    margin: 0 0 2rem 0;
    max-width: 72rem;
    text-align: left;
}

.section-heading h2 {
    margin-top: 0.7rem;
}

.clinic-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    max-width: 87.5rem;
    width: 100%;
}

.clinic-card {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 1.2rem;
    border: 1px solid rgba(122, 122, 122, 0.1);
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinic-card:hover {
    border-color: rgba(246, 177, 91, 0.3);
    box-shadow: 0 24px 48px rgba(122, 122, 122, 0.15);
    transform: translateY(-8px) scale(1.01);
}

.clinic-grid img {
    height: 10rem;
    object-fit: cover;
    object-position: center bottom;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.clinic-grid img.clinic-card-fit-contain {
    object-fit: cover;
    object-position: center bottom;
}

.clinic-grid h3,
.clinic-grid p,
.clinic-grid strong {
    margin-left: 1rem;
    margin-right: 1rem;
}

.clinic-grid h3 {
    color: var(--azul-corp);
    margin-top: 1rem;
}

.clinic-grid p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    min-height: 3.3rem;
}

.clinic-grid strong {
    color: var(--azul-corp);
    display: block;
    margin-bottom: 1rem;
    margin-top: auto;
}

.final-cta {
    align-items: center;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: auto 1fr auto;
    margin: 0 0 5rem 0;
    max-width: 75rem;
    padding: 1.6rem;
}

.final-cta > i {
    color: var(--azul-vivo);
    font-size: 3.4rem;
}

.final-cta p {
    color: var(--texto);
    font-size: 1.05rem;
}

.wa-float {
    align-items: center;
    background: #25D366;
    border-radius: 50%;
    bottom: 1.5rem;
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
    color: #fff;
    display: flex;
    font-size: 2rem;
    height: 4rem;
    justify-content: center;
    position: fixed;
    right: 1.5rem;
    transition: transform 180ms ease;
    width: 4rem;
    z-index: 70;
}

.wa-float:hover {
    transform: scale(1.06);
}

.mobile-conversion-bar {
    display: none;
}

/* Google rating badge positioned near the phone CTA on mobile.
   Keeps distance from the floating chatbot icon and the WhatsApp button. */
.google-rating-badge {
    position: fixed;
    right: 1.5rem;
    bottom: auto; /* positioned dynamically by JS to avoid overlaps */
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.98);
    color: var(--btn-gray-dark);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 75;
}

.google-rating-badge .gr-stars {
    color: #f5c542; /* gold stars */
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.google-rating-badge .gr-score {
    background: var(--azul-corp);
    color: #fff;
    padding: 0.12rem 0.45rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
}

/* show only on small screens and keep clear of chatbot (which is often bottom-right) */
@media (max-width: 900px) {
    .google-rating-badge { display: inline-flex; }
}

@media (min-width: 901px) {
    .google-rating-badge { display: none; }
}

footer {
    align-items: center;
    background: linear-gradient(180deg, #3a4048 0%, #2a3038 100%);
    border-top: 4px solid var(--naranja);
    color: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 1rem;
    justify-items: center;
    padding: 3.2rem 1.25rem;
    text-align: center;
}

.footer-cta {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    display: grid;
    gap: 0.65rem;
    max-width: 42rem;
    padding: 1.1rem 1rem 1.2rem;
    width: min(100%, 42rem);
}

.footer-cta-kicker {
    color: #ffd69c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-cta h3 {
    color: #fff;
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    line-height: 1.2;
    margin: 0;
}

.footer-main-cta {
    align-items: center;
    background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
    border-radius: 999px;
    color: #1a1208;
    display: inline-flex;
    font-weight: 900;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.25rem auto 0;
    min-height: 2.9rem;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.footer-main-cta:hover {
    background: linear-gradient(135deg, var(--btn-orange), var(--btn-gray));
    box-shadow: 0 10px 22px rgba(120, 120, 120, 0.22);
    transform: translateY(-2px);
}

footer img {
    border-radius: 0;
    height: 54px;
    object-fit: contain;
    width: auto;
}

.footer-logo-link {
    display: inline-flex;
    background: transparent !important;
    border-radius: 0.9rem;
    transition: transform 180ms ease, opacity 180ms ease;
}

.footer-logo-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: none !important;
    opacity: 0.9;
}

.footer-logo-link img {
    cursor: pointer;
    background: transparent !important;
    filter: brightness(0) invert(1);
    transition: filter 180ms ease;
}

.footer-logo-link:hover img {
    filter: brightness(0) invert(1) opacity(0.8);
}

footer span {
    color: #fff;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0.82;
}

.footer-links a:hover {
    color: var(--naranja);
    opacity: 1;
}

.social-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.35rem;
}

.social-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1.15rem;
    height: 2.85rem;
    justify-content: center;
    transition: all 200ms ease;
    width: 2.85rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-btn.facebook:hover {
    background: #1877F2; /* Facebook blue */
    border-color: #1877F2;
    color: #ffffff;
    transform: translateY(-2px);
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #f77737, #feda75, #d52e7f, #702eea);
    border-color: transparent;
}

@media (max-width: 640px) {
    .footer-cta {
        padding: 0.95rem 0.85rem 1rem;
    }

    .footer-main-cta {
        width: 100%;
    }
}

.legal-page {
    margin: 0;
    max-width: 78rem;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 6rem);
}

.legal-shell {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 19rem;
}

.legal-page h1 {
    color: var(--azul-corp);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 1.2rem;
}

.legal-side {
    background: linear-gradient(145deg, #4b5563, #1f2937);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    color: #fff;
    padding: 1.4rem;
    position: sticky;
    top: 8.2rem;
}

.legal-side h2 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.legal-side p,
.legal-side li {
    color: rgba(255, 255, 255, 0.96);
}

.legal-side a {
    color: #ffffff;
    text-decoration: underline;
}

.legal-side ul {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 1rem 0 0;
}

.legal-side li {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    padding: 0.85rem 0.9rem;
}

.legal-side .btn {
    margin-top: 1rem;
    width: 100%;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 800 !important;
    border: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.legal-side .btn:hover {
    transform: translateY(-2px);
    background: #f3f4f6 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.appointment-hero,
.clinic-hero {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr);
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 6rem);
}

.appointment-hero h1,
.clinic-hero h1 {
    color: var(--azul-corp);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: 0;
    line-height: 1;
    margin: 1rem 0;
}

.appointment-hero h1 strong,
.clinic-hero h1 strong {
    color: var(--azul-vivo);
}

.appointment-hero p,
.clinic-hero p {
    color: var(--texto);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    max-width: 43rem;
}

.appointment-hero img,
.clinic-hero img {
    border-radius: 1.6rem;
    box-shadow: var(--shadow);
    height: 31rem;
    object-fit: cover;
    width: 100%;
}

.grateful-team-image {
    object-fit: contain;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.96));
    padding: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grateful-team-image:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.appointment-layout,
.clinic-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
    padding: 0 clamp(1.25rem, 5vw, 6rem) clamp(4rem, 7vw, 6rem);
}

.appointment-form,
.map-card,
.clinic-info-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.appointment-form h2,
.map-card h2,
.clinic-info-card h2 {
    color: var(--azul-corp);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--texto);
    font-size: 0.9rem;
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    background: #f7fbff;
    border: 1px solid rgba(28, 63, 115, 0.16);
    border-radius: 0.8rem;
    color: var(--texto);
    font: inherit;
    min-height: 3.1rem;
    padding: 0.8rem 0.95rem;
    width: 100%;
}

.form-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-note {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 1rem;
}

.appointment-form .btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    margin-top: 1rem;
}

.clientify-wrapper {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.clientify-embed-shell {
    display: grid;
    gap: 1rem;
    min-height: 18rem;
}

.clientify-embed-shell > script {
    display: none;
}

.clientify-wrapper :is(form, .clientify-form, .superform, .superforms-form) {
    display: grid;
    gap: 1rem;
    max-width: 100%;
}

.clientify-wrapper :is(label, .label, .superform-label) {
    color: var(--texto);
    font-size: 0.9rem;
    font-weight: 800;
}

.clientify-wrapper :is(input, select, textarea) {
    background: #f7fbff;
    border: 1px solid rgba(28, 63, 115, 0.16);
    border-radius: 0.8rem;
    color: var(--texto);
    font: inherit;
    min-height: 3.1rem;
    padding: 0.8rem 0.95rem;
    width: 100%;
}

.clientify-wrapper :is(input[type="checkbox"], input[type="radio"], input[type="hidden"]) {
    min-height: 0;
    width: auto;
}

.clientify-wrapper textarea {
    min-height: 8rem;
    resize: vertical;
}

.clientify-wrapper :is(button, input[type="submit"], .btn, .superform-submit) {
    align-items: center;
    background: linear-gradient(135deg, var(--btn-gray) 0%, var(--btn-orange) 50%, var(--btn-gray) 100%);
    background-size: 200% auto;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(120, 120, 120, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 0.65rem;
    justify-content: center;
    line-height: 1;
    min-height: 3.2rem;
    padding: 0 1.6rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.clientify-wrapper :is(button, input[type="submit"], .btn, .superform-submit):hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
}

.clientify-wrapper :is(button, input[type="submit"], .btn, .superform-submit):focus-visible,
.clientify-wrapper :is(input, select, textarea):focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(246, 177, 91, 0.18);
}

.clientify-wrapper iframe {
    border: 0;
    border-radius: 1rem;
    min-height: 48rem;
    width: 100%;
}

.clientify-wrapper :is(p, small, .help-text, .message, .superform-message) {
    color: var(--muted);
}

.form-steps {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1rem;
}

.form-step {
    background: #e9f4ff;
    border-radius: 999px;
    color: var(--azul-corp);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.5rem 0.85rem;
    text-align: center;
}

.form-step.is-active {
    background: var(--naranja);
    color: #1a1208;
}

.form-step-panel[hidden] {
    display: none;
}

.form-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.map-card {
    align-self: start;
    overflow: hidden;
}

.map-card iframe {
    border: 0;
    border-radius: 1rem;
    height: 18rem;
    margin: 1rem 0;
    width: 100%;
}

.map-card p,
.clinic-info-card p {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.map-card strong,
.clinic-info-card strong {
    color: var(--azul-corp);
}

.map-link {
    width: 100%;
}

.clinic-info-card {
    align-self: start;
    background: linear-gradient(145deg, var(--azul-profundo), var(--azul-corp));
    color: #fff;
}

.clinic-info-card h2,
.clinic-info-card p,
.clinic-info-card strong {
    color: #fff;
}

.clinic-info-card .btn-primary {
    background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
    color: #fff;
}

.clinic-info-card .btn-primary:hover,
.side-cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--btn-orange), var(--btn-gray));
}

.treatment-hero {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr);
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 6rem);
}

.treatment-hero h1 {
    color: var(--azul-corp);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: 0;
    line-height: 1;
    margin: 1rem 0;
}

.treatment-hero h1 strong {
    color: var(--azul-vivo);
}

.treatment-hero p {
    color: var(--texto);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    max-width: 43rem;
}

.treatment-hero img {
    border-radius: 1.6rem;
    box-shadow: var(--shadow);
    height: auto;
    max-height: 31rem;
    object-fit: cover;
    width: 100%;
}

.estetica-hero-image {
    object-position: 20% 20%;
}


.treatment-detail {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 22rem;
    padding: 0 clamp(1.25rem, 5vw, 6rem) clamp(4rem, 7vw, 6rem);
}

.detail-card,
.side-cta {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.detail-card h2,
.side-cta h2 {
    color: var(--azul-corp);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.detail-card p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.detail-list {
    display: grid;
    gap: 0.85rem;
    list-style: none;
    margin-top: 1.2rem;
}

.detail-list li {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.detail-list i {
    color: var(--naranja);
    margin-top: 0.25rem;
}

.side-cta {
    align-self: start;
    background: linear-gradient(145deg, var(--azul-profundo), var(--azul-corp));
    color: #fff;
    position: sticky;
    top: 8rem;
}

.side-cta h2,
.side-cta p {
    color: #fff;
}

.side-cta p {
    margin-bottom: 1.4rem;
    opacity: 0.86;
}

.side-cta .btn-primary {
    background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
    color: #fff;
    width: 100%;
}

.related-treatments {
    padding: 0 clamp(1.25rem, 5vw, 6rem) 5rem;
}

.related-treatments h2 {
    color: var(--azul-corp);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1.2rem;
    text-align: left;
}

.related-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    max-width: 75rem;
}

.related-grid a {
    background: #fff;
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 0.9rem;
    box-shadow: 0 16px 30px rgba(28, 63, 115, 0.06);
    color: var(--texto);
    font-weight: 800;
    padding: 1.2rem;
    text-align: center;
}

/* FAQ Accordion Styles */
.faq-section {
    padding: 0 clamp(1.25rem, 5vw, 6rem) 5rem;
    margin-top: 3rem;
}

.faq-header {
    margin: 0 0 2.5rem 0;
    max-width: 75rem;
    text-align: left;
}

.faq-header .eyebrow {
    display: block;
    color: var(--azul-corp);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.faq-header h2 {
    color: var(--azul-corp);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

.faq-header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 58rem;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    max-width: 75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 0.95rem;
    box-shadow: 0 10px 25px rgba(28, 63, 115, 0.04);
    overflow: hidden;
    transition: all 220ms ease;
}

.faq-item:hover {
    box-shadow: 0 16px 35px rgba(28, 63, 115, 0.08);
    border-color: rgba(28, 63, 115, 0.16);
}

.faq-item[open] {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
    box-shadow: 0 16px 35px rgba(28, 63, 115, 0.12);
}

.faq-item summary {
    align-items: center;
    background: transparent;
    color: var(--azul-corp);
    cursor: pointer;
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.6rem;
    user-select: none;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    transition: all 220ms ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
}

.faq-item summary::before {
    background: linear-gradient(135deg, var(--azul-vivo), var(--azul-corp));
    border-radius: 50%;
    color: #fff;
    content: "+";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 300;
    height: 2rem;
    line-height: 1;
    transition: transform 220ms ease, background 220ms ease;
    width: 2rem;
}

.faq-item[open] summary::before {
    background: linear-gradient(135deg, var(--naranja), #f0a544);
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--azul-vivo);
}

.faq-item[open] summary {
    background: rgba(246, 177, 91, 0.04);
    border-bottom: 1px solid rgba(246, 177, 91, 0.15);
    color: var(--azul-vivo);
}

.faq-answer {
    color: var(--texto);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1.6rem 1.5rem 4.2rem;
    animation: slideDown 220ms ease;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1rem 0 1rem;
    padding-left: 0;
}

.faq-answer ul li {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.faq-answer ul li i {
    color: var(--naranja);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.faq-answer strong {
    color: var(--azul-corp);
    font-weight: 800;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 1320px) {
    .site-header {
        padding: 0.65rem 1.5rem;
        gap: 1rem;
    }
}

@media (max-width: 1180px) {
    .main-nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .hero-visual {
        min-height: 31rem;
    }

    .rating-card {
        right: 6.5rem;
    }

    .treatment-grid,
    .testimonial-grid,
    .clinic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }

    .stats-bar article:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(28, 63, 115, 0.08);
    }

    .stats-bar article:nth-child(4) {
        border-top: 1px solid rgba(28, 63, 115, 0.08);
    }
}

@media (max-width: 820px) {
    .site-header {
        gap: 1rem;
        padding: 0.8rem 1rem;
    }

    .brand img {
        height: 36px;
        width: auto;
    }

    .brand::after {
        font-size: 0.76rem;
    }

    .header-cta {
        font-size: 0.78rem;
        min-height: 2.7rem;
        padding: 0 0.95rem;
    }

    .header-admin {
        font-size: 0.78rem;
        min-height: 2.7rem;
        padding: 0 0.95rem;
    }

    .eyebrow,
    .section-kicker {
        font-size: 0.68rem;
    }

    .hero {
        min-height: 0;
        padding: 2rem 1rem 1rem;
    }

    .hero::before {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 25rem;
    }

    .hero-visual > img {
        border-radius: 1.5rem;
        object-position: right 20%;
    }

    .rating-card {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: auto;
        top: auto;
        width: 11rem;
    }

    .phone-preview,
    .phone-mockup-container {
        display: none;
    }

    .stats-bar,
    .treatment-grid,
    .split-section,
    .team,
    .testimonials,
    .testimonial-grid,
    .clinic-grid,
    .final-cta,
    .treatment-hero,
    .treatment-detail,
    .related-grid,
    .faq-list,
    .appointment-hero,
    .clinic-hero,
    .appointment-layout,
    .clinic-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .treatment-hero,
    .appointment-hero,
    .clinic-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .legal-shell {
        grid-template-columns: 1fr;
    }

    .legal-side {
        position: static;
    }

    .treatment-hero img,
    .appointment-hero img,
    .clinic-hero img {
        height: 22rem;
    }

    .side-cta {
        position: static;
    }

    .stats-bar article + article,
    .stats-bar article:nth-child(3),
    .stats-bar article:nth-child(4) {
        border-left: 0;
        border-top: 1px solid rgba(28, 63, 115, 0.08);
    }

    .split-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .faq-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .image-panel,
    .team img {
        min-height: 19rem;
        height: 19rem;
    }

    .testimonials {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .final-cta {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .cookie-consent {
        bottom: 0.8rem;
        left: 0.8rem;
        max-width: calc(100% - 1.6rem);
    }

    /* FIX scroll con header fijo */
[id] {
  scroll-margin-top: 100px;
}
}

@media (max-width: 640px) {
    .mobile-conversion-bar {
        align-items: center;
        background: rgba(4, 18, 42, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        bottom: 0;
        display: grid;
        gap: 0.45rem;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        left: 0;
        padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 95;
    }

    .mobile-conversion-btn {
        align-items: center;
        border-radius: 999px;
        box-shadow: 0 16px 30px rgba(120, 120, 120, 0.22);
        color: #fff;
        display: inline-flex;
        font-size: 0.86rem;
        font-weight: 800;
        gap: 0.45rem;
        justify-content: center;
        min-height: 2.55rem;
        padding: 0.45rem 0.7rem;
        text-decoration: none;
        transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    }

    .mobile-conversion-btn.call {
        background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
        color: #fff;
    }

    .mobile-conversion-btn.whatsapp {
        background: linear-gradient(135deg, var(--btn-gray), var(--btn-orange));
        color: #fff;
    }

    .mobile-conversion-btn:hover {
        background: linear-gradient(135deg, var(--btn-orange), var(--btn-gray));
        box-shadow: 0 10px 22px rgba(120, 120, 120, 0.22);
        transform: translateY(-2px);
    }

    .wa-float {
        display: none;
    }

    .cookie-consent {
        bottom: 5.8rem;
    }

    .form-step-actions .btn {
        width: 100%;
    }

    .faq-item summary {
        font-size: 0.95rem;
        padding: 1rem 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1.2rem 3.5rem;
    }
}

/* ==========================================================================
   SISTEMA DE ANIMACIONES PREMIUM Y MICROINTERACCIONES (Intersection Observer)
   ========================================================================== */

/* Clases de Revelación al Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos de Retraso Escalonado (Staggered Delays) */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* Entrada Elegante del Hero */
.hero-reveal-text {
    animation: elegantFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-reveal-visual {
    animation: elegantFadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Keyframes */
@keyframes elegantFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Efecto de Pulso Elegante en Botones Principales */
.btn-primary-pulse {
    animation: pulseCta 2.5s infinite;
}

@keyframes pulseCta {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 177, 91, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(246, 177, 91, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(246, 177, 91, 0);
    }
}

/* Microinteracciones Hover */
.treatment-card,
.clinic-card {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.treatment-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 22px 45px rgba(28, 63, 115, 0.12) !important;
}

.clinic-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 24px 48px rgba(28, 63, 115, 0.15) !important;
}

/* Hover Zoom en Imágenes de Clínicas */
.clinic-card img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.clinic-card:hover img {
    transform: scale(1.06);
}

/* Hover de Iconos en Tarjetas de Tratamiento */
.treatment-icon i,
.treatment-icon img {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.treatment-card:hover .treatment-icon i,
.treatment-card:hover .treatment-icon img {
    transform: scale(1.18) rotate(5deg);
    color: var(--naranja) !important;
}

/* ==========================================================================
   Ajustes de Contraste para el Logo SVG del Footer
   ========================================================================== */
.footer-logo-link svg {
    height: 52px !important;
    width: auto !important;
    transition: transform 180ms ease;
}

/* Cambiar texto del logo en el footer a blanco */
.footer-logo-link svg text {
    fill: #ffffff !important;
}

/* Cambiar tspan del logo en el footer a gris claro */
.footer-logo-link svg tspan {
    fill: rgba(255, 255, 255, 0.75) !important;
}

/* Cambiar base y dentista del logo en el footer a blanco */
.footer-logo-link svg path[fill="var(--btn-gray)"],
.footer-logo-link svg circle[fill="var(--btn-gray)"] {
    fill: #ffffff !important;
}

/* ==========================================================================
   Premium Infinite Carousel Styling Overrides
   ========================================================================== */

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    cursor: grab;
    padding: 1.5rem 0;
    margin: 0;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.carousel-viewport:active {
    cursor: grabbing;
}

/* Override treatment grid for horizontal carousel */
.treatment-grid.carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    grid-template-columns: none !important;
    width: max-content;
    will-change: transform;
    padding: 0.5rem;
}

.treatment-grid.carousel-track .treatment-card {
    width: 18.5rem !important;
    height: 16.5rem !important;
    flex-shrink: 0 !important;
}

/* Override testimonial grid for horizontal carousel */
.testimonial-grid.carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    grid-template-columns: none !important;
    width: max-content;
    will-change: transform;
    padding: 0.5rem;
}

.testimonial-grid.carousel-track article {
    width: 22.5rem !important;
    height: 18.5rem !important;
    flex-shrink: 0 !important;
}

/* Override clinic grid for horizontal carousel */
.clinic-grid.carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    grid-template-columns: none !important;
    width: max-content;
    will-change: transform;
    padding: 0.5rem;
}

.clinic-grid.carousel-track .clinic-card {
    width: 23.5rem !important;
    height: 29.5rem !important;
    flex-shrink: 0 !important;
}

/* Clinic Cards Premium Actions & Enhancements */
.clinic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    overflow: hidden;
}

.clinic-card-img-link {
    display: block;
    overflow: hidden;
    height: 12rem;
    width: 100%;
}

.clinic-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.clinic-card h3 {
    margin: 1.25rem 1.25rem 0.5rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--azul-corp) !important;
}

.clinic-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.clinic-card h3 a:hover {
    color: var(--naranja);
}

.clinic-card p {
    margin: 0 1.25rem 1.25rem !important;
    font-size: 0.88rem !important;
    color: var(--muted) !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
}

.clinic-card strong {
    margin: auto 1.25rem 1rem !important;
    color: var(--naranja) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    display: block !important;
}

.clinic-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem 1.5rem !important;
    margin-top: auto !important;
}

.clinic-card-actions .btn {
    flex: 1;
    min-height: 2.8rem;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

/* Team Carousel / Slideshow Styling */
.team-carousel {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    height: 30rem;
    width: 30rem;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
}

.team-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.team-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 0.5rem;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    pointer-events: none;
}

.team-carousel-img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.team-carousel-indicators {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0.6rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.team-carousel-indicators .indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.team-carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.team-carousel-indicators .indicator.active {
    background: var(--naranja);
    transform: scale(1.25);
    box-shadow: 0 0 6px rgba(246, 177, 91, 0.6);
}

@media (max-width: 64rem) {
    .team-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 30rem;
    }
}

/* Center and style the brand logo inside the phone mockup */
.phone-logo-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.phone-logo {
    max-height: 1.8rem;
    width: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.phone-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ==========================================================================
   Full-Width Horizontal Infinite Team Carousel Styling
   ========================================================================== */
.team-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4.8rem clamp(1.25rem, 5vw, 6rem);
}

.team-header {
    max-width: 87.5rem;
    margin: 0 0 1.5rem 0;
    text-align: left;
    width: 100%;
}

.team-header p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 1rem 0 0;
    max-width: 45rem;
}

/* Base horizontal grid layout */
.team-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(10, 1fr);
}

/* Horizontal scrolling track override just like testimonials */
.team-grid.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.team-card-wrapper {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    background: #ffffff;
    overflow: hidden;
    width: 24rem; /* identical scale to testimonials */
    height: 24rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-card-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* displays 100% of the team photo without cropping! */
    box-sizing: border-box;
    padding: 0.50rem;
    background: #ffffff;
    transition: transform 0.5s ease;
}

.team-card-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.team-card-wrapper:hover img {
    transform: scale(1.02);
}

@media (max-width: 64rem) {
    .team-section {
        padding: 3rem 1.25rem;
    }
    .team-card-wrapper {
        width: 18rem;
        height: 18rem;
    }
}

/* Google Reviews Modal Styles */
.reviews-breakdown {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(28, 63, 115, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(28, 63, 115, 0.06);
    margin-bottom: 1.5rem;
    align-items: center;
}

@media (max-width: 576px) {
    .reviews-breakdown {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.reviews-score-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(28, 63, 115, 0.1);
    padding-right: 1rem;
}

@media (max-width: 576px) {
    .reviews-score-big {
        border-right: 0;
        padding-right: 0;
        border-bottom: 1px solid rgba(28, 63, 115, 0.1);
        padding-bottom: 1rem;
    }
}

.reviews-score-big h4 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--azul-corp);
    margin: 0;
    line-height: 1;
}

.reviews-score-big .stars {
    color: #f5c542;
    font-size: 1.15rem;
    margin: 0.4rem 0;
}

.reviews-score-big span {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 700;
}

.reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #4b5563;
    font-weight: 700;
}

.reviews-bar-bg {
    flex: 1;
    background: rgba(28, 63, 115, 0.08);
    height: 0.5rem;
    border-radius: 999px;
    overflow: hidden;
}

.reviews-bar-fill {
    background: #f5c542;
    height: 100%;
    border-radius: 999px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-item {
    background: #ffffff;
    border: 1px solid rgba(28, 63, 115, 0.06);
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #e1f1ff;
    color: var(--azul-corp);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(28, 63, 115, 0.1);
}

.review-user-info {
    display: flex;
    flex-direction: column;
}

.review-user-name {
    font-weight: 800;
    color: var(--azul-corp);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.review-user-name i {
    color: #10b981; /* verified check */
    font-size: 0.8rem;
}

.review-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.review-stars {
    color: #f5c542;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Clinics Header and Search/Filter UI */
.clinics-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 87.5rem;
    width: 100%;
    margin: 0 0 2.5rem 0;
    padding: 0 1rem;
    gap: 1.5rem;
}

.clinics-header-left {
    flex: 0 0 18rem;
    text-align: left;
}

.clinics-header-left h2 {
    margin-top: 0.5rem;
    font-size: 2.2rem;
    color: var(--azul-corp);
    line-height: 1.25;
}

/* AI Smart Advice & FAQ Banner styling */
.clinics-ai-banner {
    flex: 1 1 15rem;
    min-width: 15rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(243, 244, 246, 0.85));
    border: 1px solid rgba(28, 63, 115, 0.08);
    border-radius: 1rem;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(28, 63, 115, 0.04);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    min-height: 5.5rem;
    max-width: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-end;
}

.clinics-ai-banner:hover {
    border-color: rgba(242, 110, 35, 0.25);
    box-shadow: 0 12px 28px rgba(242, 110, 35, 0.06);
}

.ai-banner-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(242, 110, 35, 0.08);
    color: var(--naranja);
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ai-glowing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--naranja);
    border-radius: 50%;
    display: inline-block;
    animation: aiPulse 1.8s infinite ease-in-out;
}

@keyframes aiPulse {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(242, 110, 35, 0.6);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(242, 110, 35, 0);
    }
    100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(242, 110, 35, 0);
    }
}

.ai-banner-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-grow: 1;
}

.ai-banner-icon {
    font-size: 1.3rem;
    color: var(--naranja);
    background: rgba(242, 110, 35, 0.08);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.clinics-ai-banner:hover .ai-banner-icon {
    transform: rotate(12deg) scale(1.05);
}

.ai-banner-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: calc(100% - 3.2rem);
}

.ai-banner-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--azul-corp);
    opacity: 0.75;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

.ai-banner-message {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
    font-weight: 500;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ai-banner-controls {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
}

.ai-ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--azul-corp);
    opacity: 0.35;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
    padding: 0.15rem;
}

.ai-ctrl-btn:hover {
    opacity: 1;
    color: var(--naranja);
    transform: scale(1.15);
}

.clinics-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    flex-shrink: 0;
}

.clinics-search-wrapper {
    position: relative;
    width: 24rem;
}

.clinics-search-wrapper .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.clinics-search-wrapper input {
    width: 100%;
    padding: 0.85rem 1.1rem 0.85rem 2.8rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 63, 115, 0.12);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(28, 63, 115, 0.04);
    font-size: 0.92rem;
    color: var(--azul-corp);
    outline: none;
    transition: all 0.3s ease;
}

.clinics-search-wrapper input:focus {
    border-color: var(--naranja);
    background: #fff;
    box-shadow: 0 4px 25px rgba(242, 110, 35, 0.1);
}

.clinics-search-wrapper input:focus + .search-icon {
    color: var(--naranja);
}

.clinics-filter-pills {
    display: flex;
    gap: 0.5rem;
}

.filter-pill {
    background: #f3f4f6; /* gris */
    border: 1px solid rgba(242, 110, 35, 0.4); /* naranja */
    color: #4b5563; /* gris oscuro */
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(28, 63, 115, 0.02);
}

.filter-pill:hover {
    background: var(--naranja); /* naranja */
    border-color: var(--naranja);
    color: #f3f4f6; /* gris claro */
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--naranja); /* naranja */
    border-color: var(--naranja);
    color: #f3f4f6; /* gris claro */
    box-shadow: 0 4px 12px rgba(242, 110, 35, 0.25);
}

/* Ensure smooth fade transition for search/filtering cards */
.clinic-card {
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

@media (max-width: 992px) {
    .clinics-header {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .clinics-header-left {
        text-align: left;
    }
    .clinics-ai-banner {
        max-width: 100%;
        width: 100%;
        margin: 0.5rem 0;
        min-height: auto;
        align-self: center;
    }
    .clinics-header-right {
        align-items: flex-start;
        width: 100%;
    }
    .clinics-search-wrapper {
        width: 100%;
        max-width: 28rem;
    }
    .clinics-filter-pills {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Clinic Helper Card style */
.clinic-helper-card {
    background: linear-gradient(145deg, #ffffff, #f9fafb) !important;
    border: 1px dashed rgba(242, 110, 35, 0.45) !important;
    box-shadow: 0 10px 25px rgba(28, 63, 115, 0.04) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.4s ease !important;
}

.clinic-helper-card:hover {
    border-color: var(--naranja) !important;
    box-shadow: 0 15px 35px rgba(242, 110, 35, 0.08) !important;
}

/* Clinic Promo Cards style */
.clinic-promo-card {
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.4s ease !important;
    box-shadow: 0 10px 25px rgba(28, 63, 115, 0.04) !important;
    overflow: hidden;
}

.clinic-promo-card:hover {
    box-shadow: 0 15px 35px rgba(28, 63, 115, 0.08) !important;
    transform: translateY(-4px) scale(1.01) !important;
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 5rem 1.5rem;
    max-width: 900px;
    margin: 0;
}

.faq-section h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--azul-profundo);
    font-weight: 700;
}

.faq-section h2 strong {
    color: var(--naranja);
}

.faq-section p.faq-intro {
    text-align: left;
    color: var(--muted);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e1ebf5;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.faq-item[open] {
    border-color: var(--naranja);
    box-shadow: 0 10px 30px rgba(246, 177, 91, 0.08);
}

.faq-item summary {
    padding: 1.4rem 1.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4a4a4a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--naranja);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.8rem 1.8rem 1.8rem;
    color: var(--texto);
    line-height: 1.65;
    font-size: 1rem;
    border-top: 1px solid #f5f9fd;
    padding-top: 1.2rem;
}






