:root {
    --color-primary: #8B5A6B;
    --color-primary-light: #B08293;
    /* Lighter and more pastel */
    --color-primary-dark: #8B5A6B;
    /* Changed to match primary as requested */
    /* Adjusted for smoother gradient */
    --color-accent: #D4A574;
    --color-accent-dark: #B08355;
    /* Darker sand color */
    --color-accent-light: #E8C9A8;
    --color-bg: #FDFBF9;
    --color-bg-alt: #F7F3EF;
    --color-text: #3D3D3D;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-border: #E8E0D8;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --font-credentials: 'Outfit', sans-serif;

    --shadow-sm: 0 2px 8px rgba(139, 90, 107, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 90, 107, 0.12);
    --shadow-lg: 0 8px 40px rgba(139, 90, 107, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: clip;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    font-size: 1rem;
    color: var(--color-text-light);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom, 0px));
    right: max(30px, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: row !important;
    /* Force side-by-side */
    align-items: flex-end;
    /* Align bottom */
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Spring effect */
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3);
    color: white;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    background-color: #C492B1;
    /* Soft Purple */
    flex-shrink: 0;
    /* Prevent shrinking */
    animation: pulsePurple 3s infinite;
}

.whatsapp-float:hover {
    background-color: #b07a9d;
    animation: none;
    /* Stop pulse on hover */
}

.call-float {
    height: 50px;
    /* Slightly smaller height for the pill */
    width: auto;
    /* Allow growth */
    background-color: var(--color-primary-dark);
    /* Dark Purple */
    border-radius: 25px;
    /* Pill shape */
    padding: 0 25px;
    font-size: 14px;
    font-weight: 700;
    /* Bold */
    letter-spacing: 0.5px;
    gap: 10px;
    white-space: nowrap;
    /* Prevent text overflow */
    margin-bottom: 5px;
    /* Align visually with the circle center if needed, or remove if using flex-end */
    animation: pulseDark 3s infinite;
    animation-delay: 1.5s;
    /* Alternate with whatsapp */
}

.call-float i {
    font-size: 16px;
}

.call-float:hover {
    background-color: #4a2c35;
    animation: none;
}

/* Botón flotante "Regresar" — lado izquierdo en subpáginas de servicios */
.back-float {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom, 0px));
    left: max(30px, env(safe-area-inset-left, 0px));
    z-index: 1000;
    height: 50px;
    width: auto;
    background-color: var(--color-primary);
    border-radius: 25px;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    gap: 10px;
    white-space: nowrap;
}

.back-float i {
    font-size: 16px;
}

.back-float:hover {
    background-color: var(--color-primary-dark);
}

/* Animations */
@keyframes pulsePurple {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 146, 177, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(196, 146, 177, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(196, 146, 177, 0);
    }
}

@keyframes pulseDark {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 56, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(94, 56, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(94, 56, 68, 0);
    }
}

.floating-buttons__label {
    display: none;
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        display: grid !important;
        grid-template-columns: auto auto;
        justify-items: center;
        align-items: end;
        column-gap: 10px;
        row-gap: 6px;
        width: max-content;
        gap: 10px;
    }

    .floating-buttons__label {
        display: block;
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        line-height: 1;
        color: #fff;
        background: var(--color-primary-dark);
        border-radius: 999px;
        padding: 6px 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
        white-space: nowrap;
        pointer-events: none;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .call-float {
        height: 45px;
        padding: 0 20px;
        font-size: 13px;
    }

    .call-float span {
        display: none;
    }

    .call-float {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        margin-bottom: 0;
    }

    .back-float {
        bottom: 20px;
        left: 20px;
        height: 45px;
        padding: 0 20px;
        font-size: 13px;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}


/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(253, 251, 249, 0.97);
    border-bottom-color: rgba(139, 90, 107, 0.1);
    box-shadow: 0 2px 24px rgba(139, 90, 107, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.4));
}

.logo img:hover {
    filter: drop-shadow(0 0 1px rgba(139, 90, 107, 0.5));
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text);
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.22s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(139, 90, 107, 0.07);
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(139, 90, 107, 0.1);
    font-weight: 600;
}

/* Remove old underline pseudo-element */
.nav-link::after {
    display: none;
}

/* "Agendar Cita" button in nav */
.nav-btn {
    font-size: 0.82rem !important;
    padding: 9px 18px !important;
    border-radius: 50px !important;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(139, 90, 107, 0.25);
    transition: all 0.25s ease !important;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 90, 107, 0.35) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(139, 90, 107, 0.07);
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(253, 251, 249, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding-bottom: 40px;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        padding: 12px 32px;
        border-radius: 12px;
        width: auto;
        text-align: center;
    }

    .nav-btn {
        display: block !important;
        margin-top: 16px;
        padding: 14px 40px !important;
        font-size: 1rem !important;
        text-align: center;
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    text-align: center;
}

.hero-title {
    color: var(--color-text);
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-credentials {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.credential-item {
    display: inline-block;
}

.credential-item.name {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.credential-item:not(:last-child)::after {
    content: "•";
    margin: 0 10px;
    color: var(--color-primary-light);
}

@media (max-width: 768px) {
    .hero-credentials {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .credential-item {
        display: block;
    }

    .credential-item:not(:last-child)::after {
        display: none;
    }
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-accent);
    border-radius: var(--radius-xl);
    z-index: -1;
}

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

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    text-align: center;
    padding: 40px;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--color-bg-alt);
    box-shadow: inset 0 0 30px rgba(139, 90, 107, 0.05);
}

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

.section-label {
    display: inline-block;
    font-size: clamp(0.875rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    margin-bottom: 16px;
}

.section-title {
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 40px 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .cta-banner {
        padding: 60px 40px;
        margin-bottom: 100px;
    }
}

.cta-banner h2 {
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.cta-phones {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.cta-phone i {
    font-size: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .service-card {
        padding: 40px;
    }
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 28px;
    color: var(--color-primary-dark);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-light);
}

.service-list li i {
    color: var(--color-primary);
    margin-top: 4px;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.expertise-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.expertise-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.expertise-card i,
.expertise-card .fi {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: inline-block;
    /* Ensure proper rendering */
}

.expertise-card-svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    fill: currentColor;
    margin-bottom: 20px;
    display: inline-block;
}

.expertise-card-img {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
    display: inline-block;
    object-fit: contain;
}

.expertise-card h4 {
    margin-bottom: 12px;
    color: var(--color-accent-dark);
}

.expertise-card p {
    font-size: 0.9375rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 24px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-item i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.highlight-item span {
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* Credentials Section */
.credentials-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.credentials-box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.credentials-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list li i {
    color: var(--color-accent);
    margin-top: 4px;
}

.cedula-number {
    font-family: var(--font-credentials);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Differentiators */
.differentiators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .differentiators-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        gap: 32px;
    }
}

.differentiator-card {
    background: linear-gradient(135deg, var(--color-white), var(--color-bg-alt));
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 2px solid var(--color-accent-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .differentiator-card {
        padding: 40px;
    }
}

.differentiator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.differentiator-card i {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.differentiator-card h4 {
    margin-bottom: 12px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        gap: 32px;
    }
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 40px;
    }
}

/* Removed .testimonial-card::before quote icon */

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

.testimonial-stars {
    color: #FFB800;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    flex-shrink: 0;
    /* Ensures it stays circular and isn't compressed */
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-source {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.location-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 24px 32px;
}

.location-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.card-location-logo {
    height: 60px;
    width: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Hace que los logos se vean blancos para combinar con el fondo oscuro */
}

.poligono-logo {
    height: 48px !important;
    /* Slightly smaller than 60px */
    width: auto !important;
}

.location-header h3 {
    margin-bottom: 8px;
}

.location-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.location-body {
    padding: 32px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.location-item i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.location-item strong {
    display: block;
    margin-bottom: 4px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    min-height: 48px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    transition: var(--transition);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.faq-question i {
    flex-shrink: 0;
    margin-top: 4px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .faq-question {
        padding: 24px 32px;
        font-size: 1.0625rem;
    }
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--color-text-light);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.faq-answer-content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer-content a:hover {
    color: var(--color-primary-dark);
}

@media (min-width: 768px) {
    .faq-answer-content {
        padding: 0 32px 24px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-credentials {
    font-family: var(--font-credentials);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

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

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

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

    .credentials-container {
        grid-template-columns: 1fr;
    }

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

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

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .section {
        padding: 60px 0;
    }

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

    .cta-phones {
        flex-direction: column;
        gap: 16px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .card-location-logo {
        height: 45px;
        width: auto;
    }

    .biogamma-logo {
        height: 70px !important;
        width: auto !important;
    }

    .poligono-logo {
        height: 32px !important;
        width: auto !important;
    }

    .location-header {
        padding: 20px;
    }

    .location-header h3 {
        font-size: 1.2rem;
    }

    .location-header p {
        font-size: 0.85rem;
    }

    .location-body {
        padding: 20px;
    }

    .credentials-box,
    .differentiator-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

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

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

    .floating-buttons {
        bottom: 16px;
        right: 16px;
        left: auto;
        column-gap: 8px;
    }

    .location-header-content {
        flex-wrap: wrap;
    }

    .location-item {
        font-size: 0.9375rem;
    }
}

/* Custom Icons */
.custom-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: invert(42%) sepia(13%) saturate(1453%) hue-rotate(293deg) brightness(91%) contrast(87%);
    /* Matches #8B5A6B */
}

/* Location Buttons */
.location-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    /* Reduced from 600px */
    margin: 30px auto;
    width: 100%;
}

.location-btn {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    transition: var(--transition);
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 340px;
    margin: 0 auto 15px;
    height: 70px;
    position: relative;
    gap: 15px;
}

.location-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--color-primary-dark);
}

/* Add phone icon circle */
.location-btn::after {
    content: '\f095';
    /* FontAwesome Phone */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.location-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally in its box if slightly wider */
    width: auto;
    max-width: 90px;
    height: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.location-logo img {
    display: block;
    max-height: 35px !important;
    /* Limit height */
    width: auto;
    margin-bottom: 0;
}

.location-text {
    width: auto;
    text-align: left;
    padding-left: 0;
    font-weight: 600;
    font-size: 0.8rem;
    /* Slightly larger than mobile 0.75rem */
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

@media (max-width: 480px) {

    /* Mobile-specific tweaks only (if any remain) */
    .location-text {
        font-size: 0.75rem;
    }

    .location-text span:first-child {
        display: none;
    }
}

/* Testimonial Infinite Scroll (Marquee) */
.testimonials-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 60px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    width: max-content;
    gap: 30px;
    transform: translateX(0);
    cursor: grab;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-slide {
    width: 400px;
    /* Fixed width for cards */
    min-width: 400px;
    flex-shrink: 0;
    padding: 0;
    /* Internal padding handled by card */
}

.testimonial-slide .testimonial-card {
    height: 100%;
    background: white;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-border);
}

/* Hide controls for infinite scroll */
.slider-controls {
    display: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way (assuming 2 sets of slides) */
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: min(300px, calc(100vw - 48px));
        min-width: min(300px, calc(100vw - 48px));
    }

    .testimonial-slide .testimonial-card {
        padding: 20px;
    }

    .testimonials-track {
        gap: 40px;
    }

    .cert-slide {
        width: min(260px, calc(100vw - 48px));
        height: min(260px, calc(100vw - 48px));
    }
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-info h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* Adjust section header margin specifically for testimonials */
#testimonios .section-header {
    margin-bottom: 20px;
}

/* Oncological Experience Section */
.oncology-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .oncology-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        gap: 40px;
    }
}

.oncology-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .oncology-card {
        padding: 40px;
    }
}

.oncology-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.oncology-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.oncology-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.oncology-icon.accent-icon {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    color: var(--color-primary-dark);
}

.oncology-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.oncology-text {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.oncology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.tag:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.specialist-badge {
    background: rgba(212, 165, 116, 0.15);
    /* Accent color transparent */
    color: #84623F;
    /* Darkened from --color-accent-dark for WCAG AA contrast (4.5:1) on this light background */
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--color-accent);
}

.doctors-list {
    list-style: none;
    margin-bottom: 24px;
    background: var(--color-bg);
    padding: 20px;
    border-radius: var(--radius-md);
}

.doctors-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px 0;
    color: var(--color-text);
    border-bottom: 1px dashed var(--color-border);
}

.doctor-info {
    display: flex;
    flex-direction: column;
}

.doctor-info strong {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
}

.doctor-info strong a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.doctor-info strong a:hover {
    color: var(--color-primary-dark);
}

.doctor-info strong i {
    font-size: 0.9em;
    margin-left: 5px;
    color: #0077b5;
    /* LinkedIn Color */
}

.doctor-info strong i.fa-search {
    color: var(--color-text-light);
}

.doctor-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-left: 44px;
    /* Align with text (32px + 12px gap) */
}

.enzian-badge {
    background: var(--color-primary-dark);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

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

    .oncology-card-header {
        flex-direction: column;
        text-align: center;
    }

    .oncology-card h3 {
        font-size: 1.25rem;
    }

    .oncology-tags {
        justify-content: center;
    }

    .oncology-text {
        text-align: center;
    }
}

/* Credentials Logos Grid */
.credentials-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* slightly reduced for better fit */
    gap: 30px;
    margin-top: 40px;
    /* Removed align-items: center to allow grid items to stretch to equal height */
}

.credential-logo-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    text-align: center;
    transition: var(--transition);
    height: 100%;
    /* Ensure full height filling */
}

.credential-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.credential-logo-card h3 {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--color-text);
}

.membership-no {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.logo-box {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* CSS Logos (Placeholders matching branding) */

/* MFM Logo */
.mfm-logo {
    gap: 10px;
}

.mfm-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #F59E0B;
    /* Orange */
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}

.mfm-text span {
    font-size: 0.7rem;
    color: #555;
    font-weight: 500;
}

/* MFB Logo */
.mfb-logo {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
}

.mfb-icon {
    font-size: 3rem;
    color: #0EA5E9;
    /* Light Blue */
    font-family: serif;
    line-height: 0.5;
    margin-top: 10px;
}

.mfb-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.mfb-text span {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
}

.mfb-text strong {
    font-size: 1rem;
    color: #0EA5E9;
}

/* LASUS Logo */
.lasus-logo {
    background: #6D28D9;
    /* Purple */
    border-radius: 4px;
}

.lasus-logo span {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* ISUOG Logo */
.isuog-logo {
    gap: 5px;
}

.isuog-icon i {
    font-size: 2rem;
    color: #d1d1d1;
}

.isuog-text {
    font-size: 2rem;
    font-weight: 700;
    color: #DC2626;
    /* Red */
    font-family: sans-serif;
    letter-spacing: -1px;
}

.location-map {
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

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

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9375rem;
    min-height: 44px;
}

/* New Special Grid for 'Why Choose Me' inside section header */
.why-choose-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    margin: 40px 0 20px;
    /* Reduced bottom margin to bring next section closer */
    text-align: left;
    /* Reset alignment because usually headers are centered */
}

.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    border: 1px solid rgba(139, 90, 107, 0.1);
    /* Subtle primary color border */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 90, 107, 0.15);
    border-color: rgba(139, 90, 107, 0.3);
}

.why-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-white));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 1.5rem;
    box-shadow: inset 0 0 10px rgba(139, 90, 107, 0.1);
}

.why-card h4 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile specific */
@media (max-width: 768px) {
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0 20px;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1 / 1;
    /* Square images for grid consistency */
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Certificate Slider (Infinite) */
.cert-slider-container {
    position: relative;
    width: 100%;
    margin: 40px auto;
    overflow: hidden;
    padding: 20px 0;
    /* Optional mask for fade effect on edges */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.cert-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: scrollCertificates 40s linear infinite;
}

.cert-track:hover {
    animation-play-state: paused;
}

.cert-slide {
    width: 300px;
    /* Fixed width for consistency */
    height: 300px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--color-border);
}

.cert-slide:hover {
    transform: scale(1.05);
    border-color: var(--color-primary-light);
}

.cert-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scrollCertificates {
    0% {
        transform: translateX(0);
    }

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

    /* Ensure we have enough clones */
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
}

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

.lightbox-content {
    max-width: min(960px, 92vw);
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    cursor: zoom-out;
    object-fit: contain;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    z-index: 10002;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: var(--color-primary-light);
    transform: scale(1.05);
    outline: none;
}

/* ── Mapeo Endometriosis Page ── */
.page-mapeo .hero--compact {
    padding-top: 48px;
    min-height: auto;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .page-mapeo .hero--compact {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

.hero-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hero-content--centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}

.page-mapeo .hero-content--centered .hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 500;
}

.hero-cta--center {
    justify-content: center;
    margin-bottom: 30px;
}

.section-description--justify {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 20px;
}

@media (min-width: 768px) {
    .section-description--justify {
        text-align: justify;
    }
}

.stats-grid {
    margin-top: 40px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 5px;
}

.stat-card p {
    font-weight: 600;
}

.preparation-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.preparation-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .preparation-card {
        padding: 40px;
    }
}

.preparation-title {
    color: var(--color-primary);
    margin-bottom: 25px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.preparation-title i {
    margin-right: 10px;
}

.preparation-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.preparation-step {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.preparation-step:last-child {
    margin-bottom: 0;
}

.preparation-badge {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.preparation-step-title {
    display: block;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: var(--color-text);
}

.preparation-step p {
    margin-top: 5px;
    font-size: 0.95rem;
}

.preparation-alert {
    background: rgba(139, 90, 107, 0.05);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary);
}

@media (min-width: 768px) {
    .preparation-alert {
        padding: 20px;
    }
}

.preparation-alert p {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

.mapeo-specialist .hero-content {
    margin-top: 20px;
    align-items: center;
}

.mapeo-specialist .hero-text {
    text-align: center;
}

.mapeo-specialist .hero-cta {
    justify-content: center;
}

.mapeo-specialist .hero-credentials {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .mapeo-specialist .hero-text {
        text-align: left;
    }

    .mapeo-specialist .hero-cta {
        justify-content: flex-start;
    }

    .mapeo-specialist .hero-credentials {
        align-items: flex-start;
        text-align: left;
    }
}

.specialist-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 10px;
}

.mapeo-specialist .specialist-credentials {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}

.mapeo-specialist .specialist-credentials .credential-item {
    display: block;
    margin-bottom: 10px;
}

.mapeo-specialist .specialist-credentials .credential-item::after {
    content: none;
}

.mapeo-specialist .specialist-credentials .credential-item.name {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.specialist-details {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

.specialist-details > p {
    margin-bottom: 10px;
    color: inherit;
    font-weight: 400;
}

.specialist-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
    font-weight: 400;
}

.specialist-list li {
    margin-bottom: 8px;
}

.specialist-list li i {
    color: var(--color-primary);
    margin-right: 8px;
}

.specialist-highlight {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 2.5vw, 1.05rem);
    color: var(--color-primary);
    background-color: rgba(139, 90, 107, 0.1);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 90, 107, 0.2);
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    line-height: 1.5;
}

.locations-grid--single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.expert-card {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--color-border);
}

.expert-card i {
    font-size: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.expert-card strong {
    display: block;
    color: var(--color-text);
}

.expert-card span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.experts-list {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
}

.specialist-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.specialist-intro {
    font-weight: 700;
    margin-bottom: 30px;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--color-primary);
    line-height: 1.5;
    padding: 0 8px;
}

.cta-banner--compact {
    margin-bottom: 0;
}

.cta-phones--compact {
    margin-bottom: 0;
}

.btn--on-accent {
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
}

section[id] {
    scroll-margin-top: 88px;
}

.section-title--light {
    color: #000;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    margin: 0;
    font-family: var(--font-display);
}

/* AEO — Key Takeaways for AI Overviews */
.aeo-takeaway {
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.aeo-takeaway__title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.aeo-takeaway ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aeo-takeaway li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.5;
}

.aeo-takeaway li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.aeo-takeaway a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-location-badge {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(139, 90, 107, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 8px;
}

.hero-quick-links a {
    color: #d4a800;
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 0, 0.65);
    text-underline-offset: 5px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.hero-quick-links a:hover {
    color: #b8860b;
    text-decoration-color: #b8860b;
}

@media (min-width: 768px) {
    .hero-quick-links {
        font-size: 1.35rem;
        gap: 32px;
    }
}
/* =========================================
   COLLAGE ANIMADO
   ========================================= */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
    align-items: center;
}

.collage-item {
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform, box-shadow;
    background-color: var(--color-background-alt);
    position: relative;
}

.collage-item:hover {
    animation-play-state: paused;
    transform: scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(139, 90, 107, 0.2);
    z-index: 10;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
    border-radius: inherit;
}

.collage-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 90, 107, 0.1), rgba(139, 90, 107, 0.2));
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px dashed var(--color-primary-light);
    border-radius: 12px;
}

/* Efecto pulsar en borde */
@keyframes collageBorderPulse {
    0%, 100% {
        border-color: rgba(196, 146, 177, 0.7);
        box-shadow: 0 8px 22px rgba(139, 90, 107, 0.12),
            0 0 0 0 rgba(196, 146, 177, 0.5);
    }

    70% {
        border-color: rgba(196, 146, 177, 0.45);
        box-shadow: 0 8px 22px rgba(139, 90, 107, 0.12),
            0 0 0 9px rgba(196, 146, 177, 0);
    }
}

@keyframes collageRingRipple {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@keyframes collageBorderPulseMobile {
    0%, 100% {
        border-color: rgba(196, 146, 177, 0.58);
        box-shadow: 0 4px 14px rgba(139, 90, 107, 0.1),
            0 0 0 0 rgba(196, 146, 177, 0.38);
    }

    70% {
        border-color: rgba(196, 146, 177, 0.42);
        box-shadow: 0 4px 14px rgba(139, 90, 107, 0.1),
            0 0 0 5px rgba(196, 146, 177, 0);
    }
}

.pulse-effect {
    animation: collageBorderPulse 3s infinite ease-out;
}

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 0.7s; }
.delay-3 { animation-delay: 1.4s; }
.delay-4 { animation-delay: 2.1s; }

.collage-item--medical {
    background: #0a0a0a;
    border: 2px solid rgba(196, 146, 177, 0.55);
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    overflow: visible;
}

.collage-item--medical::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid rgba(196, 146, 177, 0.5);
    pointer-events: none;
    z-index: 2;
    animation: collageRingRipple 3s infinite ease-out;
}

.collage-item--medical.delay-1::before { animation-delay: 0s; }
.collage-item--medical.delay-2::before { animation-delay: 0.7s;  }
.collage-item--medical.delay-3::before { animation-delay: 1.4s; }
.collage-item--medical.delay-4::before { animation-delay: 2.1s; }

.collage-item--medical img {
    object-fit: contain;
    aspect-ratio: 4/3;
    cursor: pointer;
    border-radius: 10px;
}

.hero-collage .gallery-item::after {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .collage-item--medical:hover,
    .collage-item--medical:hover img,
    .hero-collage .gallery-item:hover {
        cursor: pointer;
    }

    .collage-item--medical:hover {
        animation-play-state: paused;
        border-color: rgba(196, 146, 177, 0.85);
        box-shadow: 0 12px 28px rgba(139, 90, 107, 0.2),
            0 0 0 3px rgba(196, 146, 177, 0.2);
    }

    .collage-item--medical:hover::before {
        animation-play-state: paused;
        opacity: 0;
    }
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.hero-collage.gallery-grid {
    display: grid;
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    margin-bottom: 28px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-content: center;
}

.hero-collage .gallery-item {
    aspect-ratio: auto;
    width: 100%;
}

.hero-collage {
    max-width: 920px;
    margin: 0 auto 28px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .hero-collage {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 24px;
        width: 100%;
        overflow: hidden;
    }

    .hero-collage .collage-item--medical::before {
        display: none;
    }

    .hero-collage .collage-item--medical.pulse-effect {
        animation: collageBorderPulseMobile 3s infinite ease-out;
    }

    .hero-collage .collage-item--medical {
        border-width: 2px;
        border-color: rgba(196, 146, 177, 0.5);
    }

    .hero-collage .collage-item:hover {
        transform: scale(1.02) !important;
    }

    .page-mapeo main {
        padding-bottom: 96px;
    }

    .aeo-takeaway {
        padding: 16px 18px;
        margin-bottom: 24px;
    }

    .cta-banner {
        padding: 32px 18px;
    }

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

    .cta-banner p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-collage {
        gap: 8px;
    }

    .hero-collage .collage-item {
        border-radius: 8px;
    }

    .hero-collage .collage-item--medical img {
        border-radius: 7px;
    }

    .header-content {
        height: 64px;
    }

    .page-mapeo .hero--compact {
        padding-top: 40px;
    }

    .hero-lead {
        margin-bottom: 20px;
    }

    .preparation-card {
        padding: 16px;
    }

    .specialist-intro {
        margin-bottom: 20px;
    }

    .expert-card {
        padding: 14px;
        gap: 12px;
    }

    .expert-card i {
        font-size: 20px;
    }

    .floating-buttons {
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
    }
}

.lightbox-figure {
    margin: 0;
    max-width: min(960px, 92vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.lightbox-figure .lightbox-content,
.lightbox-figure .lightbox-caption {
    pointer-events: auto;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    text-align: center;
    max-width: 720px;
    line-height: 1.5;
    cursor: zoom-out;
}

/* ── Hero Slider (3 categorías) ── */
.hero-slider {
    position: relative;
    width: 100%;
    padding-top: 72px;
    min-height: 100svh;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

.hero-slider__viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: calc(100svh - 72px);
}

.hero-slider__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
}

.hero-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.hero-slider__panel {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: unset;
}

.hero-slider__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 24px 56px;
    background: transparent;
    color: var(--color-white);
    text-align: left;
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: min(540px, 52%);
}

@media (min-width: 768px) {
    .hero-slider__content {
        padding: 40px 40px 56px max(24px, calc((100vw - 1200px) / 2 + 24px));
    }
}

.hero-slider__eyebrow {
    font-size: clamp(0.95rem, 2.2vw, 1.125rem);
    font-weight: 500;
    color: var(--color-white);
    margin: 0;
    line-height: 1.4;
}

.hero-slider__highlight {
    color: var(--color-white);
    font-weight: 700;
}

.hero-slider__heading {
    font-family: var(--font-body);
    font-size: clamp(1.375rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.hero-slider__heading-mark {
    display: block;
    background: none;
    padding: 0;
    line-height: 1.3;
    color: var(--color-white);
}

.hero-slider__heading strong {
    font-weight: 800;
}

.hero-slider__text {
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    color: var(--color-white);
    margin: 0;
    max-width: 440px;
    line-height: 1.5;
}

.hero-slider__cta {
    margin-top: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-slider__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-slider__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: none;
    min-height: 0;
    max-height: none;
    width: 100%;
}

.hero-slider__media::before {
    display: none;
}

.hero-slider__media img,
.hero-slider__media picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-slider__media picture {
    height: 100%;
}

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

.hero-slider__slide--mapeo .hero-slider__media img {
    object-position: 72% center;
}

/* Slide 2 — collage ecográfico a la derecha, degradado mauve a la izquierda */
.hero-slider__slide--especialista .hero-slider__panel {
    background: var(--color-primary);
}

@media (min-width: 768px) {
    .hero-slider__slide--especialista .hero-slider__media {
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
    }

    .hero-slider__slide--especialista .hero-slider__media::before {
        display: none;
    }

    .hero-slider__slide--especialista .hero-slider__media img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: right center;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-slider__slide--especialista .hero-slider__content {
        z-index: 2;
        max-width: min(480px, 38%);
        background: linear-gradient(
            90deg,
            var(--color-primary) 0%,
            rgba(139, 90, 107, 0.94) 72%,
            transparent 100%
        );
        padding-right: 32px;
    }
}

@media (max-width: 767px) {
    .hero-slider__slide--especialista .hero-slider__media {
        inset: auto 0 0 0;
        height: 58%;
        padding: 0;
    }

    .hero-slider__slide--especialista .hero-slider__media img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
    }

    .hero-slider__slide--especialista .hero-slider__content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 42%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    .hero-slider__slide--especialista .hero-slider__heading {
        align-items: center;
    }
}

/* Slide 3 — lazo amarillo, mismo layout a pantalla completa que slide doctora */
.hero-slider__slide--cirugias .hero-slider__panel {
    background: var(--color-primary);
}

.hero-slider__slide--cirugias .hero-slider__content {
    color: var(--color-white);
}

.hero-slider__slide--cirugias .hero-slider__heading,
.hero-slider__slide--cirugias .hero-slider__heading-mark {
    color: var(--color-white);
}

@media (min-width: 768px) {
    .hero-slider__slide--cirugias .hero-slider__media {
        left: auto;
        right: 0;
        width: 58%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
    }

    .hero-slider__slide--cirugias .hero-slider__media::before {
        content: '';
        display: block;
        position: absolute;
        inset: 0 auto 0 0;
        width: 48%;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            var(--color-primary) 0%,
            rgba(139, 90, 107, 0.94) 22%,
            rgba(139, 90, 107, 0.58) 52%,
            rgba(139, 90, 107, 0.18) 76%,
            transparent 100%
        );
    }

    .hero-slider__slide--cirugias .hero-slider__media img {
        width: auto;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: right center;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 25%, #000 55%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 25%, #000 55%);
    }

    .hero-slider__slide--cirugias .hero-slider__content {
        max-width: min(540px, 46%);
    }
}

@media (max-width: 767px) {
    .hero-slider__slide--cirugias .hero-slider__panel {
        background: var(--color-primary);
    }

    .hero-slider__slide--cirugias .hero-slider__media {
        top: auto;
        bottom: 0;
        height: 58%;
        inset: auto 0 0 0;
        padding: 0;
    }

    .hero-slider__slide--cirugias .hero-slider__media img {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
    }

    .hero-slider__slide--cirugias .hero-slider__content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 42%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    .hero-slider__slide--cirugias .hero-slider__heading {
        align-items: center;
    }
}

/* Slide 4 — ENZIAN, mismo layout: imagen derecha + fundido primary a la izquierda */
.hero-slider__slide--enzian .hero-slider__panel {
    background: var(--color-primary);
}

@media (min-width: 768px) {
    .hero-slider__slide--enzian .hero-slider__media {
        left: auto;
        right: 0;
        width: 66%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
    }

    .hero-slider__slide--enzian .hero-slider__media::before {
        content: '';
        display: block;
        position: absolute;
        inset: 0 auto 0 0;
        width: 30%;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            var(--color-primary) 0%,
            rgba(139, 90, 107, 0.94) 22%,
            rgba(139, 90, 107, 0.58) 52%,
            rgba(139, 90, 107, 0.18) 76%,
            transparent 100%
        );
    }

    .hero-slider__slide--enzian .hero-slider__media img {
        width: auto;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: right center;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 14%, #000 34%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 14%, #000 34%);
    }

    .hero-slider__slide--enzian .hero-slider__content {
        max-width: min(540px, 46%);
    }
}

@media (max-width: 767px) {
    .hero-slider__slide--enzian .hero-slider__media {
        inset: auto 0 0 0;
        height: 58%;
        padding: 0;
    }

    .hero-slider__slide--enzian .hero-slider__media img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
    }

    .hero-slider__slide--enzian .hero-slider__content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 42%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    .hero-slider__slide--enzian .hero-slider__heading {
        align-items: center;
    }
}

.hero-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 5;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-white);
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__arrow:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.hero-slider__arrow--prev {
    left: 12px;
}

.hero-slider__arrow--next {
    right: 12px;
}

@media (min-width: 768px) {
    .hero-slider__arrow {
        width: 46px;
        height: 46px;
    }

    .hero-slider__arrow--prev {
        left: 20px;
    }

    .hero-slider__arrow--next {
        right: 20px;
    }
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-slider__dot.is-active {
    width: 14px;
    height: 14px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 3px var(--color-white);
}

@media (max-width: 767px) {
    .hero-slider {
        padding-top: 64px;
    }

    .hero-slider__viewport {
        height: calc(100svh - 64px);
    }

    .hero-slider__content {
        max-width: 100%;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding: 24px 20px 56px;
    }

    .hero-slider__heading {
        align-items: center;
    }

    .hero-slider__media img {
        object-position: center top;
    }

    .hero-slider__dots {
        bottom: 12px;
    }

    .hero-slider__slide--mapeo .hero-slider__content {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        display: flex;
        flex-direction: column;
        height: auto;
        max-width: 100%;
        padding: 20px 20px 20px;
    }

    .hero-slider__slide--mapeo .hero-slider__cta {
        order: 4;
        margin-top: 12px;
        margin-bottom: 6px;
        padding: 13px 26px;
        font-size: 0.875rem;
    }
    .hero-slider__slide--mapeo .hero-slider__eyebrow {
        order: 1;
        font-size: 0.8125rem;
    }
    .hero-slider__slide--mapeo .hero-slider__heading {
        order: 2;
        align-items: flex-start;
        font-size: clamp(1.15rem, 5vw, 1.4rem);
        line-height: 1.28;
        gap: 4px;
    }
    .hero-slider__slide--mapeo .hero-slider__text {
        order: 3;
        font-size: 0.8125rem;
        line-height: 1.45;
    }

    .hero-slider__slide--mapeo .hero-slider__media::before {
        content: '';
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.28) 22%,
            transparent 38%
        );
    }

    .hero-slider__slide--mapeo .hero-slider__media img {
        object-position: center 62%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__track {
        transition: none;
    }
}


/* ============================================================
   MEJORAS ESTÉTICAS VANGUARDISTAS 2026
   Animaciones scroll · Glassmorphism · Micro-interacciones
   Hero mejorado · Contadores · Lightbox refinado
   ============================================================ */

/* --- 1. Animaciones de aparición al hacer scroll (reveal) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes de dirección */
.reveal-on-scroll.reveal-left  { transform: translateX(-40px); }
.reveal-on-scroll.reveal-right { transform: translateX(40px); }
.reveal-on-scroll.reveal-left.is-visible,
.reveal-on-scroll.reveal-right.is-visible { transform: translateX(0); }

/* Escalonado suave para grupos de tarjetas */
.reveal-on-scroll.delay-1 { transition-delay: 0.08s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.16s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.24s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.32s; }

/* --- 2. Glassmorphism en tarjeta "En resumen" y badges --- */
.aeo-takeaway {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 8px 32px rgba(139, 90, 107, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.aeo-takeaway:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(139, 90, 107, 0.18);
}

.hero-location-badge {
    background: rgba(139, 90, 107, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 90, 107, 0.18);
    box-shadow: 0 4px 16px rgba(139, 90, 107, 0.10);
}

.hero-badge {
    background: rgba(232, 201, 168, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hero-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 26px rgba(212, 165, 116, 0.30);
}

/* --- 3. Hero mejorado: aura de color y título con degradado --- */
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(139, 90, 107, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

.hero-title span {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary); /* fallback */
}

.hero-image-wrapper {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.hero-image-wrapper:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 60px rgba(139, 90, 107, 0.22);
}

/* --- 4. Micro-interacciones en tarjetas y botones --- */
.service-card,
.expertise-card,
.differentiator-card,
.location-card,
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.service-card:hover,
.expertise-card:hover,
.differentiator-card:hover,
.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(139, 90, 107, 0.16);
}

/* Botones: brillo deslizante + elevación */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::after { left: 130%; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(139, 90, 107, 0.28);
}

/* --- 5. Contadores / estadísticas animadas --- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 0;
}

.stat-card {
    text-align: center;
    padding: 28px 18px;
    border-radius: var(--radius-lg, 20px);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 28px rgba(139, 90, 107, 0.10);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(139, 90, 107, 0.18);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary);
}

.stat-label {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-band { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 32px 0; }
}

/* --- 6. Lightbox refinado: entrada suave --- */
.lightbox { transition: opacity 0.35s ease, visibility 0.35s ease; }
.lightbox .lightbox-content {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
    transform: scale(0.94);
    opacity: 0;
}
.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

/* --- 7. Respeto a usuarios con movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .aeo-takeaway,
    .hero-image-wrapper,
    .service-card,
    .expertise-card,
    .differentiator-card,
    .location-card,
    .btn,
    .stat-card,
    .lightbox .lightbox-content {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* Subtítulo del hero con nombre de la doctora (SEO H1 reestructurado) */
.hero-subtitle--name {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text, #4a4a4a);
    margin-bottom: 24px;
    max-width: 540px;
}
@media (max-width: 768px) {
    .hero-subtitle--name {
        font-size: 0.95rem;
    }
}

/* Servicios dolor pélvico crónico — colores endometriosis */
.pelvic-services {
    --endo-yellow: #f5d547;
    --endo-yellow-soft: #fef9e7;
    --endo-mauve: #8b5a6b;
    --endo-mauve-dark: #6e4554;
    --endo-mauve-soft: #f3e8ec;
    position: relative;
    padding: 48px 0 56px;
    background: linear-gradient(165deg, var(--endo-yellow-soft) 0%, #fdf8f3 35%, var(--endo-mauve-soft) 100%);
    overflow: hidden;
}

.pelvic-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--endo-yellow) 0%, var(--endo-mauve) 50%, var(--endo-yellow) 100%);
}

.pelvic-services::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 213, 71, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.pelvic-services__header {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
    text-align: center;
}

.pelvic-services__ribbon {
    display: block;
    width: 48px;
    height: 8px;
    margin: 0 auto 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--endo-yellow), #ffe566);
    box-shadow: 0 2px 8px rgba(245, 213, 71, 0.45);
}

.pelvic-services__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--endo-mauve);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(139, 90, 107, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.pelvic-services__title {
    font-size: clamp(1.375rem, 3.5vw, 2.125rem);
    margin-bottom: 12px;
    color: var(--endo-mauve-dark);
}

.pelvic-services__title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--endo-yellow), var(--endo-mauve));
}

.pelvic-services__desc {
    max-width: 640px;
    margin: 16px auto 0;
    font-size: 1rem;
    color: var(--color-text-light);
}

.pelvic-services__grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pelvic-services {
        padding: 56px 0 64px;
    }

    .pelvic-services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1100px) {
    .pelvic-services__grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: none;
    }
}

.pelvic-services__card {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(139, 90, 107, 0.12);
    border-top: 3px solid var(--endo-yellow);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 8px 28px rgba(139, 90, 107, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pelvic-services__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(139, 90, 107, 0.14);
    border-color: rgba(139, 90, 107, 0.22);
    border-top-color: var(--endo-mauve);
}

.pelvic-services__card h3 {
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    line-height: 1.35;
    color: var(--endo-mauve-dark);
    margin-bottom: 12px;
}

.pelvic-services__card p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.65;
    font-size: 0.9375rem;
    flex: 1;
}

/* Tarjeta completa clicable: enlace estirado sobre la tarjeta, CTA por encima */
.pelvic-services__card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.pelvic-services__cta {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    align-self: center;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--endo-mauve);
    border: none;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(139, 90, 107, 0.35);
}

.pelvic-services__cta:hover {
    background: var(--endo-mauve-dark);
    border: none;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 90, 107, 0.4);
}

.pelvic-services__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--endo-mauve-soft) 0%, rgba(245, 213, 71, 0.35) 100%);
    border: 1px solid rgba(139, 90, 107, 0.15);
    border-radius: var(--radius-md);
}

.pelvic-services__icon i,
.pelvic-services__icon svg {
    font-size: 22px;
    width: 22px;
    height: 22px;
    fill: var(--endo-mauve);
    color: var(--endo-mauve);
}

.pelvic-services__icon--image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pelvic-services__icon--image img {
    width: auto;
    height: 22px;
    max-width: none;
    object-fit: contain;
    display: block;
}

.page-mapeo .pelvic-services + .hero.hero--compact {
    padding-top: 40px;
}

@media (min-width: 768px) {
    .page-mapeo .pelvic-services + .hero.hero--compact {
        padding-top: 48px;
    }
}

/* Página de detalle de servicio (estilo CDA, marca propia) */
.page-service-detail .service-detail-hero {
    padding: 110px 0 40px;
    background: linear-gradient(165deg, #fef9e7 0%, #fdf8f3 40%, #f3e8ec 100%);
    border-bottom: 4px solid #f5d547;
}

.service-detail-hero__row {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 768px) {
    .service-detail-hero__row {
        grid-template-columns: 1fr min(42%, 420px);
        gap: 32px 40px;
    }
}

@media (min-width: 992px) {
    .service-detail-hero__row {
        grid-template-columns: 1fr 460px;
        gap: 40px 48px;
    }
}

.service-detail-hero__text {
    min-width: 0;
}

.service-detail-hero__media {
    margin: 0;
    line-height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(139, 90, 107, 0.12);
    border: 1px solid rgba(139, 90, 107, 0.08);
    background: var(--color-white);
    min-width: 0;
}

.service-detail-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.service-detail-hero__expand {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
    line-height: 0;
    text-align: left;
}

.service-detail-hero__expand:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.service-detail-hero__expand-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-detail-hero__expand:hover .service-detail-hero__expand-hint,
.service-detail-hero__expand:focus-visible .service-detail-hero__expand-hint {
    transform: scale(1.08);
    background: var(--color-white);
}

.service-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.service-detail-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.service-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.service-detail-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(139, 90, 107, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.service-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    color: var(--color-text);
    max-width: none;
    margin: 0;
}

.service-detail-layout {
    display: grid;
    gap: 32px;
    align-items: start;
}

@media (min-width: 992px) {
    .service-detail-layout {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 48px;
    }
}

.service-detail-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.service-detail-lead {
    font-size: 1.125rem !important;
}

.service-detail-aside-card {
    background: var(--color-white);
    border: 1px solid rgba(139, 90, 107, 0.12);
    border-top: 3px solid #f5d547;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 8px 28px rgba(139, 90, 107, 0.08);
}

.service-detail-aside-card h2 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-detail-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.service-detail-includes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
}

.service-detail-includes i {
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.service-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
}

.service-detail-link:hover {
    text-decoration: underline;
}

.service-detail-content h2,
.service-detail-content h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.service-detail-content h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.service-detail-content h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.service-detail-content ul,
.service-detail-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.service-detail-content li + li {
    margin-top: 0.5rem;
}

.service-detail-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 90, 107, 0.12);
}

.service-detail-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.service-detail-table th,
.service-detail-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(139, 90, 107, 0.1);
    text-align: left;
    vertical-align: top;
}

.service-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.service-detail-table th {
    background: rgba(139, 90, 107, 0.08);
    font-weight: 600;
    color: var(--color-text);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.service-detail-cta-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.service-detail-cta-box--with-map {
    display: grid;
    gap: 28px;
    max-width: none;
    text-align: left;
    margin-bottom: 0;
    padding: 24px 16px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .service-detail-cta-box--with-map {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 36px;
    }
}

@media (min-width: 992px) {
    .service-detail-cta-box--with-map {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 40px;
        padding: 48px 44px;
    }
}

.service-detail-cta-box__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.service-detail-cta-box__content h2,
.service-detail-cta-box__content p {
    text-align: left;
    width: 100%;
}

.service-detail-cta-box__content p {
    margin-bottom: 20px;
}

.service-detail-cta-box__location {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.service-detail-cta-box__location .location-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.service-detail-cta-box__location .location-item i {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    flex-shrink: 0;
}

.service-detail-cta-box__location .location-item strong {
    display: block;
    color: var(--color-white);
    margin-bottom: 2px;
}

.service-detail-cta-box__map {
    margin: 0;
    min-height: 240px;
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-detail-cta-box--with-map .cta-phones {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
    width: 100%;
}

/* ===== RESPONSIVIDAD MOBILE — service-detail ===== */
@media (max-width: 767px) {

    .page-service-detail .service-detail-hero {
        padding: 80px 0 28px;
    }

    .service-detail-hero__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-detail-hero__media {
        order: -1;
    }

    .service-detail-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-detail-content p {
        font-size: 0.9375rem;
    }

    .service-detail-lead {
        font-size: 1rem !important;
    }

    .service-detail-table {
        font-size: 0.8125rem;
    }

    .service-detail-table th,
    .service-detail-table td {
        padding: 10px 10px;
    }

    .service-detail-aside-card {
        padding: 20px 16px;
    }

    .service-detail-cta-box--with-map {
        grid-template-columns: 1fr;
        padding: 24px 16px;
        gap: 20px;
    }

    .service-detail-cta-box__map {
        min-height: 200px;
        height: 200px;
    }

    .service-detail-cta-box--with-map .cta-phones {
        flex-direction: column;
        align-items: stretch;
    }

    .service-detail-cta-box--with-map .cta-phones .btn {
        width: 100%;
        justify-content: center;
    }

    .service-detail-breadcrumb {
        font-size: 0.8125rem;
    }

    .service-detail-content h2 {
        font-size: clamp(1.15rem, 5vw, 1.4rem);
    }

    .service-detail-content h3 {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .service-detail-content ul,
    .service-detail-content ol {
        padding-left: 1rem;
    }
}

.service-detail-cta-box .cta-phones {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.service-detail-location {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.service-detail-location .location-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.service-detail-location .location-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 2px;
}

.service-detail-location a {
    color: var(--color-primary);
    font-weight: 600;
}


/* ===== PASOS NUMERADOS (silla pélvica y otros servicios) ===== */
.service-detail-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fdf6f8;
    border-left: 3px solid #8B5A6B;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
}
.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #8B5A6B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}
.step-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    padding-top: 0.2rem;
}
@media (max-width: 767px) {
    .step-item {
        padding: 0.875rem 1rem;
    }
    .step-text {
        font-size: 0.9rem;
    }
}
