/* =========================================================
   1. VARIABLES & RESET
   ========================================================= */
:root {
    /* =====================================================
       PALETA OFICIAL — BRONX PAIN CENTER
       ===================================================== */
    --brand-accent: #22D3EE;       /* Turquesa principal */
    --brand-primary: #00687A;      /* Turquesa intenso */
    --gray-institutional: #757575;
    --gray-secondary: #7B7B7B;
    --black: #000000;
    --white: #FFFFFF;

    /* Alias de compatibilidad con la estructura actual */
    --navy: var(--brand-primary);
    --navy-dark: var(--black);
    --teal: var(--brand-accent);
    --teal-light: var(--brand-accent);
    --cream: var(--white);
    --cream-light: var(--white);
    --gray: var(--gray-institutional);
    --light-gray: var(--gray-secondary);

    /* Fuentes Google Fonts */
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.20);

    --radius: 22px;
    --transition: 0.35s cubic-bezier(.2, .8, .2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream-light);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
}

button {
    cursor: pointer;
    border: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

/* =========================================================
   2. NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: calc(20px - (7px * var(--scroll-progress, 0))) 0;
    background: rgba(255, 255, 255, calc(0.94 * var(--scroll-progress, 0)));
    backdrop-filter: blur(calc(18px * var(--scroll-progress, 0)));
    box-shadow: 0 10px 35px rgba(0, 0, 0, calc(0.10 * var(--scroll-progress, 0)));
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: rgb(calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))));
}

.brand-icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo span {
    color: var(--teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    position: relative;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: rgb(calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))));
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: rgb(calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))));
}

.menu-toggle {
    display: none;
    background: transparent;
    color: rgb(calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))));
    font-size: 28px;
}

/* =========================================================
   3. BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn-primary {
    background: var(--teal);
    color: var(--black);
    box-shadow: 0 12px 25px rgba(0, 104, 122, .25);
}

.btn-primary:hover {
    background: var(--navy);
    box-shadow: 0 18px 35px rgba(0, 104, 122, .25);

    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--navy);
    color: white;
}

.btn-light {
    background: var(--cream);
    color: var(--navy);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.btn-light:hover {
    background: white;
}

/* =========================================================
   4. HERO SECTION
   ========================================================= */
.hero {
    min-height: 760px;
    padding-top: 150px;
    padding-bottom: 90px;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 104, 122, .16), transparent 30%),
        linear-gradient(135deg, var(--cream-light), #FFFFFF);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(0, 104, 122, .08);
    top: -180px;
    right: -100px;
    filter: blur(2px);
}

.hero-content {
    min-height: 580px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero-text {
    position: relative;
    z-index: 2;
    animation: heroText .9s ease both;
}

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

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 700;
}

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

.hero p {
    max-width: 560px;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 35px;
}

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

.hero-visual {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 410px;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, var(--teal), var(--navy));
    box-shadow: 0 35px 80px rgba(0, 104, 122, .25);
    animation: floatPet 5s ease-in-out infinite;
    position: relative;
}

.hero-circle::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.hero-circle::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    top: 30px;
    right: 40px;
    filter: blur(5px);
}

.pet-icon {
    font-size: 190px;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .15));
    position: relative;
    z-index: 2;
}

@keyframes floatPet {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.floating-card {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    box-shadow: var(--shadow);
    font-size: 14px;
    animation: floatingCard 4s ease-in-out infinite;
}

.floating-card strong {
    font-family: var(--font-heading);
    font-weight: 700;
}

.card-one {
    top: 75px;
    left: 0;
    animation-delay: .2s;
}

.card-two {
    right: 0;
    bottom: 75px;
    animation-delay: 1s;
}

@keyframes floatingCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* =========================================================
   INSURANCE MARQUEE
   Home only — between Hero and Our Services
   Uses the exact background treatment from .cta
   ========================================================= */
.insurance-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;

    /* Same background as "Need an Appointment?" */
    background: linear-gradient(135deg, var(--black), var(--navy));

    padding: 30px 0;
}

.insurance-marquee__viewport {
    width: 100%;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 5%,
        #000 95%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 5%,
        #000 95%,
        transparent 100%
    );
}

.insurance-marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: insurance-marquee-scroll 32s linear infinite;
}

.insurance-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: clamp(65px, 7vw, 135px);
    padding-right: clamp(65px, 7vw, 135px);
}

.insurance-logo {
    width: clamp(145px, 12vw, 210px);
    height: 78px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.insurance-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 210px;
    max-height: 68px;
    object-fit: contain;

    /* Logos are already white PNGs with transparent backgrounds. */
    filter: none;
    opacity: .94;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

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

.insurance-marquee:hover .insurance-marquee__track {
    animation-play-state: paused;
}

@keyframes insurance-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .insurance-marquee {
        padding: 26px 0;
    }

    .insurance-marquee__group {
        gap: 65px;
        padding-right: 65px;
    }

    .insurance-logo {
        width: 145px;
        height: 66px;
    }

    .insurance-logo img {
        max-width: 145px;
        max-height: 56px;
    }
}

@media (max-width: 600px) {
    .insurance-marquee {
        padding: 22px 0;
    }

    .insurance-marquee__group {
        gap: 45px;
        padding-right: 45px;
    }

    .insurance-logo {
        width: 115px;
        height: 54px;
    }

    .insurance-logo img {
        max-width: 115px;
        max-height: 46px;
    }

    .insurance-marquee__track {
        animation-duration: 25s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .insurance-marquee__track {
        animation: none;
    }
}

/* =========================================================
   5. STATS
   ========================================================= */
.stats {
    background: var(--navy);
    color: white;
    position: relative;
    z-index: 3;
}

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

.stat {
    padding: 35px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    color: var(--cream);
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat p {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
}

/* =========================================================
   6. SECTIONS GENERAL & HEADING
   ========================================================= */
.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin-bottom: 18px;
    font-weight: 700;
}

.section-heading p {
    color: var(--gray);
    font-size: 17px;
}

/* =========================================================
   7. SERVICES SECTION & FILTERS
   ========================================================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 10px;
    background: white;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 700;
    border: 1px solid var(--light-gray);
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--teal);
    color: var(--black);
    border-color: var(--teal);
    transform: translateY(-2px);
}

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

.service-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .05);
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #EBF3F5;
    top: -50px;
    right: -40px;
    transition: transform .5s ease;
}

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

.service-card:hover::before {
    transform: scale(2);
}

.service-icon {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #17B0C9;
    padding: 6px;
    font-size: 30px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    flex-shrink: 0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    padding: 0;
}


/* Laser Therapy: imagen directa, fuera de .service-icon */
.service-image-laser {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
}


.service-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 22px;
}

.service-link {
    margin-top: auto;
    background: transparent;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    transition: transform var(--transition);
}

.service-link:hover {
    transform: translateX(6px);
}

/* =========================================================
   8. ABOUT SECTION
   ========================================================= */
.about-section {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.about-visual {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nosotros .about-medical-visual {
    width: min(100%, 480px);
    border-radius: 14px;
    overflow: hidden;
}

#nosotros .about-medical-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: linear-gradient(to right, #000 78%, rgba(0, 0, 0, .85) 86%, rgba(0, 0, 0, .4) 93%, transparent 100%);
    mask-image: linear-gradient(to right, #000 78%, rgba(0, 0, 0, .85) 86%, rgba(0, 0, 0, .4) 93%, transparent 100%);
}

#nosotros .about-doctor-name {
    margin-top: 18px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.about-pet {
    font-size: 190px;
    filter: drop-shadow(0 25px 20px rgba(0, 0, 0, .15));
    animation: floatPet 5s ease-in-out infinite;
}

.about-content h2 {
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 16px;
}

.about-features {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.about-features div {
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 13px 16px;
    background: rgba(34, 211, 238, .08);
    border-radius: 12px;
}

/* =========================================================
   9. TESTIMONIALS
   ========================================================= */
.testimonials {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;

    /*
     * Todas las reseñas ocupan la misma celda.
     * Esto permite mantener el carrusel sin position:absolute
     * y evita problemas con textos de diferentes longitudes.
     */
    display: grid;
}

.testimonial {
    grid-area: 1 / 1;

    background: var(--white);
    padding: 42px 48px;

    border-radius: var(--radius);
    box-shadow: var(--shadow);

    text-align: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(30px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s ease;
}

.testimonial.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}

.stars {
    color: var(--brand-accent);

    font-size: 18px;
    letter-spacing: 4px;

    margin-bottom: 22px;
}

.testimonial p {
    max-width: 650px;
    margin: 0 auto 22px;

    color: var(--gray);
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
}

.testimonial strong {
    display: block;

    color: var(--navy);

    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   TESTIMONIALS — TABLET
   ========================================================= */

@media (max-width: 700px) {

    .testimonial {
        padding: 34px 26px;
    }

    .testimonial p {
        font-size: 16px;
        line-height: 1.65;
    }

    .stars {
        font-size: 17px;
        margin-bottom: 18px;
    }
}


/* =========================================================
   TESTIMONIALS — MOBILE
   ========================================================= */

@media (max-width: 480px) {
    .booking-modal {
        padding: 14px;
    }

    .appointment-modal {
        padding: 30px 18px 22px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .appointment-step h2 {
        font-size: 29px;
    }

    .appointment-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .appointment-type-option {
        min-height: 120px;
        padding: 16px 8px;
        font-size: 12px;
    }

    .appointment-option-icon {
        width: 44px;
        height: 44px;
    }



    .testimonial {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .testimonial p {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .testimonial strong {
        font-size: 14px;
    }

    .stars {
        font-size: 16px;
        letter-spacing: 3px;
    }
}

/* =========================================================
   10. CTA SECTION
   ========================================================= */
.cta {
    background: linear-gradient(135deg, var(--black), var(--navy));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    top: -300px;
    right: -100px;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 85px 0;
    position: relative;
    z-index: 2;
}

.cta .eyebrow {
    color: var(--cream);
}

.cta h2 {
    max-width: 700px;
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -1.5px;
    font-weight: 700;
}

/* =========================================================
   11. CONTACT SECTION
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.contact-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.contact-card > span {
    font-size: 35px;
    display: block;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 22px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 18px;
}

.hours-row {
    display: block;
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.5;
}

.hours-day {
    color: #599DA8;
    font-weight: 700;
}

.contact-card .directions-button {
    margin-top: auto;
}


/* =========================================================
   LOCATION MAP — BRONX PAIN CENTER
   ========================================================= */
.location-map {
    position: relative;
    width: 100%;
    height: 430px;
    margin-bottom: 34px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(0, 104, 122, .08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .08);
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* White location label shown over the map */
.map-location-badge {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 5;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px 10px 11px;
    border-radius: 14px;

    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);

    /* The badge must not block map dragging or zooming. */
    pointer-events: none;
}

.map-location-pin {
    width: 30px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.map-location-pin svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18));
}

.map-location-brand {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.4px;
}

.map-brand-bronx {
    color: var(--black);
}

.map-brand-pain {
    color: var(--brand-accent);
}

.directions-button {
    margin-top: 22px;
}

.contact-location-pin {
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .location-map {
        height: 370px;
    }
}

@media (max-width: 600px) {
    .location-map {
        height: 300px;
        margin-bottom: 24px;
        border-radius: 18px;
    }

    .map-location-badge {
        left: 14px;
        bottom: 14px;
        gap: 8px;
        padding: 8px 12px 8px 9px;
        border-radius: 12px;
    }

    .map-location-pin {
        width: 25px;
        height: 34px;
    }

    .map-location-brand {
        font-size: 17px;
        letter-spacing: -0.3px;
    }

    .directions-button {
        width: 100%;
    }
}

/* =========================================================
   12. FOOTER
   ========================================================= */
footer {
    background: var(--navy-dark);
    color: white;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

footer .logo {
    color: white;
    font-size: 25px;
}

footer .logo span {
    color: var(--cream);
}

footer p {
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
}

/* =========================================================
   13. BOOKING MODAL
   Shared by Home and all Service pages
   ========================================================= */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.appointment-modal {
    position: relative;

    width: min(620px, 100%);
    max-height: min(84vh, 700px);
    overflow-y: auto;

    padding: 28px 32px 24px;

    background: var(--white);
    border: 1px solid rgba(0, 104, 122, .10);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .24);

    transform: translateY(24px) scale(.98);

    transition: transform .3s ease;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.appointment-modal::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.booking-modal.active .appointment-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0, 104, 122, .08);
    color: var(--navy);

    font-size: 26px;
    line-height: 1;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.modal-close:hover {
    background: var(--navy);
    color: var(--white);
    transform: rotate(90deg);
}

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

.appointment-step > .eyebrow {
    margin-bottom: 12px;
}

.appointment-step h2 {
    max-width: 520px;
    margin-bottom: 18px;

    color: var(--navy);

    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.05;
    letter-spacing: -1.2px;
}

.appointment-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 28px;
}

.appointment-type-option {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 24px 18px;

    border: 2px solid rgba(0, 104, 122, .45);
    border-radius: 18px;

    background: var(--white);
    color: var(--navy);

    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-align: center;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.appointment-type-option:hover,
.appointment-type-option:focus-visible {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);

    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 104, 122, .18);
}

.appointment-option-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;
}

.appointment-option-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.appointment-note {
    max-width: 520px;
    margin: 0 auto 12px;

    color: var(--gray);

    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.appointment-note-strong {
    margin-bottom: 0;

    color: var(--navy);
    font-weight: 700;
}

.appointment-back {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 0;

    border-radius: 50%;

    background: rgba(0, 104, 122, .08);
    color: var(--navy);

    font-size: 0;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.appointment-back::before {
    content: "←";

    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.appointment-back:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateX(-2px);
}

.appointment-form-intro {
    margin: -4px 0 16px;

    color: var(--gray);
    font-size: 15px;
}

.appointment-form {
    display: grid;
    gap: 12px;
}

.appointment-form label {
    display: grid;
    gap: 6px;

    color: var(--navy);

    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.appointment-form input,
.appointment-form textarea {
    width: 100%;

    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 10px;

    background: var(--white);
    color: var(--black);

    padding: 12px 14px;

    font: inherit;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.appointment-form textarea {
    height: 110px;
    min-height: 110px;
    max-height: 110px;

    resize: none;
    overflow: hidden;
}


.field-error {
    display: none;

    color: #B42318;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.field-error:not(:empty) {
    display: block;
    margin-top: 2px;
}

.appointment-form input[aria-invalid="true"] {
    border-color: #B42318;
}

.character-counter {
    margin-top: -6px;
    padding-right: 2px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.2;

    text-align: right;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .16);
}

.booking-form-status {
    min-height: 18px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 600;
}

.submit-button {
    width: 100%;
    margin-top: 2px;
}



/* =========================================================
   APPOINTMENT SUCCESS
   ========================================================= */
.appointment-success {
    max-width: 520px;

    margin: 0 auto;

    padding: 45px 10px;

    text-align: center;
}

.appointment-success-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    border: 2px solid var(--navy);
    border-radius: 50%;

    color: var(--navy);

    font-size: 25px;
    font-weight: 700;
}

.appointment-success h2 {
    max-width: 460px;

    margin: 0 auto 22px;

    color: var(--navy);

    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

.appointment-success p {
    max-width: 500px;

    margin: 0 auto 18px;

    color: var(--gray);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   14. CURSOR GLOW & REVEAL ANIMATIONS
   ========================================================= */
.cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 104, 122, .08), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

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

::selection {
    background: var(--teal);
    color: var(--black);
}

/* =========================================================
   15. CUSTOM SCROLLBAR
   ========================================================= */
::-webkit-scrollbar {
    width: 9px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 20px;
}

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

/* =========================================================
   16. MEDIA QUERIES (RESPONSIVE)
   ========================================================= */
@media (max-width: 900px) {
    .nav-links {
        gap: 18px;
    }

    .nav-button {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 55px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-circle {
        width: 330px;
        height: 330px;
    }

    .pet-icon {
        font-size: 140px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    #nosotros .about-medical-visual {
        width: min(100%, 400px);
    }

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

@media (max-width: 700px) {
    .appointment-modal {
        width: min(100%, 560px);
        padding: 34px 24px;
        border-radius: 22px;
    }

    .appointment-step h2 {
        padding-right: 30px;
        font-size: 34px;
    }

    .appointment-type-grid {
        gap: 12px;
    }

    .appointment-type-option {
        min-height: 132px;
        padding: 20px 12px;
        font-size: 14px;
    }


    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 14px;
        right: 14px;
        background: rgba(255, 255, 255, calc(0.98 * var(--scroll-progress, 0)));
        backdrop-filter: blur(calc(20px * var(--scroll-progress, 0)));
        border-radius: 20px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all .3s ease;
        width: auto;
        z-index: 1100;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 10px;
    }

    .navbar .logo {
        grid-column: 1;
        min-width: 0;
        font-size: 23px;
        white-space: nowrap;
    }

    .menu-toggle {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        margin: 0;
        font-size: 27px;
        line-height: 1;
        order: initial;
    }

    .nav-button {
        grid-column: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 13px;
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
        border-radius: 8px;
        margin-right: 8px;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        min-height: auto;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

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

    .hero-visual {
        min-height: 350px;
    }

    .hero-circle {
        width: 280px;
        height: 280px;
    }

    .pet-icon {
        font-size: 120px;
    }

    .floating-card {
        font-size: 11px;
        padding: 11px 13px;
    }

    .card-one {
        left: 0;
        top: 30px;
    }

    .card-two {
        right: 0;
        bottom: 30px;
    }

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

    .stat {
        padding: 25px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat strong {
        font-size: 30px;
    }

    .section {
        padding: 75px 0;
    }

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

    .section-heading h2 {
        font-size: 38px;
    }

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

    .service-card {
        padding: 27px;
    }

    .service-icon,
    .service-image-laser {
        width: 140px;
        height: 140px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-visual {
        width: 100%;
        max-width: 340px;
        margin-inline: auto;
    }

    #nosotros .about-doctor-name {
        font-size: 20px;
    }

    .about-pet {
        font-size: 130px;
    }

    .about-content h2 {
        font-size: 38px;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 0;
    }

    .cta h2 {
        font-size: 40px;
    }

    .cta .btn {
        width: 100%;
    }

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

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

    .modal {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cursor-glow {
        display: none;
    }
}



@media (max-width: 480px) {
    .navbar-content {
        gap: 6px;
    }

    .navbar .logo {
        font-size: 19px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .nav-button {
        padding: 9px 8px;
        font-size: 9px;
        margin-right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   VIDEO DE FONDO DEL HERO
   ========================================================= */
.hero-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

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

.hero-visual {
    display: none;
}

/* =========================================================
   HOME — AJUSTES FINALES DE CONTRASTE Y RESALTADO COMPACTO
   ========================================================= */

/* El nombre cambia de blanco a negro según el progreso de scroll. */
.navbar .logo {
    color: rgb(calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))));
}

.navbar .logo span {
    color: var(--teal);
}

/* Los enlaces mantienen el mismo color progresivo al pasar el cursor. */
.navbar .nav-links a,
.navbar .nav-links a:hover {
    color: rgb(calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))), calc(255 * (1 - var(--scroll-progress, 0))));
}

/* Línea superior del hero en blanco */
.hero .eyebrow {
    color: #FFFFFF;
}

/* Descripción del hero en blanco */
.hero p {
    color: #FFFFFF;
}

/* Título general del hero */
.hero h1 {
    max-width: 680px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: #22D3EE;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Segunda parte del título */
.hero h1 > span:last-child {
    display: block;
    color: #22D3EE;
}

/* "Feel better," — resaltado compacto */
.hero h1 .hero-highlight {
    display: inline-block;
    width: fit-content;
    background: #22D3EE;
    color: #000000;
    padding: 6px 12px 8px;
    margin-bottom: 12px;
    line-height: 0.95;
}

/* View Services: outline blanco */
.hero .btn-outline {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.hero .btn-outline:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #000000;
}

.hero .eyebrow {
    font-size: 18px;
}

/* =========================================================
   MANTENER TEXTOS EN NEGRO FIJO SOLO EN PÁGINAS DE SERVICIOS
   ========================================================= */
.navbar.navbar-page .logo {
    color: var(--navy) !important;
}

.navbar.navbar-page .nav-links a {
    color: var(--navy) !important;
}

.navbar.navbar-page .nav-links a:hover {
    color: var(--teal) !important;
}

.navbar.navbar-page .menu-toggle {
    color: var(--navy) !important;
}

.service-page .navbar .logo,
.service-page .navbar .nav-links a,
.service-page .navbar .nav-links a:hover,
.service-page .navbar .menu-toggle {
    color: #000000 !important;
}

.blog-page .navbar .logo,
.blog-page .navbar .nav-links a,
.blog-page .navbar .nav-links a:hover,
.blog-page .navbar .menu-toggle {
    color: #000000 !important;
}
