/* ====================================
   CLINICA DENTAL MONTE VERDE
   Modern Website Styles
   ==================================== */

/* Accessibility: screen-reader-only labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- CSS Variables --- */
:root {
    --primary: #00590e;
    --primary-light: #368C17;
    --primary-dark: #003d09;
    --accent: #52A512;
    --accent-light: #7CDA24;
    --accent-soft: #aacd70;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-primary: 'Work Sans', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--gray-900);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

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

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-light));
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(82, 165, 18, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 165, 18, 0.4);
}

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

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

.btn-nav {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--primary-light);
}

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

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-left a, .top-bar-left span {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a:hover {
    color: var(--accent-light);
}

.top-bar-right {
    display: flex;
    gap: 12px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.85);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.top-bar-right a:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- Header / Navigation --- */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Cuando el menú móvil está abierto, elevar el header por encima del overlay
   para que el .nav-menu (dentro del header) no quede atrapado en su stacking context */
body.menu-open .header {
    z-index: 1002;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

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

.nav-link {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(0, 89, 14, 0.06);
}

/* --- Dropdown de Especialidades --- */
.nav-menu .has-dropdown { position: relative; }

.nav-link-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-chevron {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 260px;
    margin-top: 10px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

/* Puente invisible: mantiene el hover continuo entre el link y el dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-menu .has-dropdown:hover > .nav-dropdown,
.nav-menu .has-dropdown:focus-within > .nav-dropdown,
.nav-menu .has-dropdown.open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .has-dropdown:hover .nav-chevron,
.nav-menu .has-dropdown:focus-within .nav-chevron,
.nav-menu .has-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown li { margin: 0; list-style: none; }

.nav-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: rgba(0, 89, 14, 0.08);
    color: var(--primary);
}

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

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

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 57, 9, 0.85) 0%, rgba(0, 89, 14, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1,
.hero .hero-heading {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.text-highlight {
    color: var(--accent-light);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.hero-prev, .hero-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.hero-prev:hover, .hero-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--accent-light);
    width: 28px;
    border-radius: 5px;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--primary);
    padding: 30px 0;
    margin-top: -1px;
}

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

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

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

.about-images {
    position: relative;
}

.about-img-main img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.about-experience-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
}

.badge-number {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-description {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--gray-700);
}

.about-feature i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* --- Services Section --- */
.services {
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

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

.service-icon-fa {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(82,165,18,0.1), rgba(0,89,14,0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.service-card:hover .service-icon-fa {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: var(--white);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--primary);
    gap: 10px;
}

.service-card-fonasa {
    background: linear-gradient(135deg, rgba(0,89,14,0.03), rgba(82,165,18,0.08));
    border-color: var(--accent-soft);
}

/* --- Feature Section (ClearCorrect) --- */
.feature-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

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

.feature-content .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.feature-content .section-title {
    color: var(--white);
    font-size: 2rem;
}

.feature-content p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--accent-light);
}

.feature-specialist {
    padding: 14px 18px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-light);
}

.feature-images {
    position: relative;
    display: flex;
    justify-content: center;
}

.feature-img-main {
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.feature-img-badge {
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

/* --- Specialists Section --- */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.specialist-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.specialist-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.specialist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

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

.specialist-info {
    padding: 24px;
    text-align: center;
}

.specialist-info h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.specialist-role {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.specialist-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* --- Testimonials Section --- */
.testimonials {
    background: var(--gray-50);
}

.testimonials-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 250px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-avatar {
    font-size: 2.5rem;
    color: var(--gray-300);
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-soft);
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.test-prev, .test-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.test-prev:hover, .test-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.test-dots {
    display: flex;
    gap: 8px;
}

.test-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.test-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* --- Promotions Section --- */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.promo-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
}

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

.promo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.promo-img {
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.promo-content {
    padding: 24px;
}

.promo-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.promo-price {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.promo-free {
    color: var(--primary);
}

.promo-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.5;
}

.promo-featured {
    border-color: var(--accent-soft);
    background: linear-gradient(180deg, var(--white) 70%, rgba(82,165,18,0.05));
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,89,14,0);
    transition: var(--transition);
}

.gallery-item:hover::after {
    background: rgba(0,89,14,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Contact Section --- */
.contact {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: 12px;
}

.contact-info .section-title {
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item strong {
    font-size: 0.85rem;
    color: var(--gray-800);
    display: block;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact-item a {
    color: var(--gray-600);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--gray-800);
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    color: var(--gray-700);
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82, 165, 18, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* --- Map Section --- */
.map-section {
    line-height: 0;
}

.map-section iframe {
    filter: grayscale(15%);
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo .logo-subtitle {
    color: var(--gray-400);
}

.footer-col > p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

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

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

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
}

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

.footer-col ul a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent);
    width: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray-400);
}

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

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

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

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--white);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 96px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ====================================
   SERVICE PAGE STYLES
   ==================================== */

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 16px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--gray-500);
    transition: var(--transition);
}

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

.breadcrumbs .separator {
    color: var(--gray-300);
}

.breadcrumbs .current {
    color: var(--gray-700);
    font-weight: 500;
}

/* --- Service Hero --- */
.service-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

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

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

.service-hero-content {
    max-width: 600px;
}

.service-hero .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    margin-bottom: 16px;
}

.service-hero h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.service-hero .hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 30px;
}

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

.service-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-hero-image img {
    max-height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    object-fit: cover;
}

/* --- Content Sections --- */
.content-section {
    padding: 70px 0;
}

.content-section:nth-child(even) {
    background: var(--gray-50);
}

.content-section h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.content-section h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.content-section p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- Steps Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* --- Benefits Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.benefit-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-soft);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(82,165,18,0.1), rgba(124,218,36,0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* --- Specialist Badge (In-page) --- */
.specialist-badge {
    padding: 60px 0;
    background: var(--gray-50);
}

.specialist-badge-card {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    max-width: 700px;
    margin: 0 auto;
}

.specialist-badge-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-soft);
    flex-shrink: 0;
}

/* El <picture> que envuelve el avatar es el flex item real: evitar que se encoja
   (si no, con img{max-width:100%} el ancho cae bajo 120px y el circulo se deforma a ovalo). */
.specialist-badge-card > picture {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.specialist-badge-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.specialist-badge-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.specialist-badge-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 70px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-soft);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: var(--white);
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

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

.faq-question i {
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

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

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* --- CTA Block --- */
.cta-block {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-block h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-block p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* --- Related Services --- */
.related-services {
    padding: 70px 0;
    background: var(--gray-50);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.related-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.related-card i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.related-card h4 {
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.related-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* --- FONASA Badge (for service pages) --- */
.fonasa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0,89,14,0.05), rgba(82,165,18,0.1));
    border: 1px solid var(--accent-soft);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.fonasa-badge i {
    color: var(--accent);
}

.service-hero .fonasa-badge {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.service-hero .fonasa-badge i {
    color: var(--white);
}

/* --- Price Card --- */
.price-card {
    background: var(--white);
    border: 2px solid var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 350px;
    margin: 30px auto;
}

.price-card .price {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.price-card .price-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* --- Table Styles --- */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.content-table th {
    background: var(--primary);
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.content-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.content-table tr:nth-child(even) {
    background: var(--gray-50);
}

.content-table tr:hover {
    background: rgba(82,165,18,0.05);
}

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

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

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

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

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Service Page Responsive */
    .service-hero {
        padding: 60px 0 40px;
    }

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

    .service-hero h1 {
        font-size: 1.9rem;
    }

    .service-hero-image {
        order: -1;
    }

    .service-hero-image img {
        max-height: 280px;
        width: 100%;
    }

    .content-section {
        padding: 50px 0;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

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

    .content-grid.reverse {
        direction: ltr;
    }

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

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

    .specialist-badge-card {
        flex-direction: column;
        text-align: center;
    }

    .specialist-badge-img {
        width: 100px;
        height: 100px;
    }

    .cta-block h2 {
        font-size: 1.5rem;
    }

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

    /* Top Bar */
    .top-bar-left {
        display: none;
    }

    .top-bar-content {
        justify-content: center;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 12px 14px;
        font-size: 1rem;
        width: 100%;
    }

    /* Promociones en mobile mantiene el inline-flex (para el circulito),
       pero ocupa todo el ancho del row como los demas items */
    .nav-link-promo {
        width: 100%;
    }

    /* Dropdown en mobile: se expande dentro del offcanvas */
    .nav-menu .has-dropdown { width: 100%; }
    .nav-menu .nav-link-parent {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        padding: 0 0 8px 20px;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    /* En mobile, :hover y :focus-within del desktop NO deben mantener el
       dropdown abierto (al tocar, el <a> queda con focus y :focus-within
       se queda activo, impidiendo que el segundo tap cierre el dropdown).
       Solo la clase .open (toggleada por JS) controla el estado mobile. */
    .nav-menu .has-dropdown:hover > .nav-dropdown,
    .nav-menu .has-dropdown:focus-within > .nav-dropdown {
        transform: none;
        max-height: 0;
    }

    .nav-menu .has-dropdown.open > .nav-dropdown {
        transform: none;
        max-height: 600px;
    }

    /* Chevron: en mobile solo rota cuando .open (no por :hover/:focus-within
       que se quedan sticky con touch) */
    .nav-menu .has-dropdown:hover .nav-chevron,
    .nav-menu .has-dropdown:focus-within .nav-chevron {
        transform: none;
    }
    .nav-menu .has-dropdown.open .nav-chevron {
        transform: rotate(180deg);
    }

    .nav-dropdown a {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .btn-nav {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
    }

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

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

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

    /* Hero */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero h1,
    .hero .hero-heading {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 16px;
    }

    .about-experience-badge {
        top: auto;
        left: 50%;
        bottom: -20px;
        transform: translateX(-50%);
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Feature */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-images {
        order: -1;
    }

    .feature-img-main {
        max-height: 350px;
    }

    /* Specialists */
    .specialists-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    /* Promotions */
    .promos-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 480px) {
    .hero h1,
    .hero .hero-heading,
    .service-hero h1 {
        font-size: 1.6rem;
    }

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

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

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

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gallery-item {
        height: 150px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

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

    .service-hero-buttons {
        flex-direction: column;
    }

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Mobile Menu Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   PROMOCIONES PAGE
   ========================================================= */

/* --- Highlighted nav link for Promociones --- */
.nav-link-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent) !important;
    font-weight: 600;
}
.nav-link-promo::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(82,165,18,0.6);
    animation: promoPulse 2s infinite;
}
@keyframes promoPulse {
    0%   { box-shadow: 0 0 0 0 rgba(82,165,18,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(82,165,18,0); }
    100% { box-shadow: 0 0 0 0 rgba(82,165,18,0); }
}

/* --- Promo Showcase (imagen primero como hero) --- */
.promo-showcase {
    padding: 40px 0 70px;
    background: var(--gray-50);
}

/* --- Texto descriptivo debajo de la imagen --- */
.promo-intro {
    max-width: 820px;
    margin: 50px auto 0;
    text-align: center;
    padding: 0 16px;
}
.promo-intro h1 {
    font-family: var(--font-primary);
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.promo-intro p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Countdown --- */
.promo-countdown {
    background: var(--white);
    border: 2px solid var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin: 28px auto 0;
    max-width: 720px;
    box-shadow: var(--shadow);
    text-align: center;
}
.promo-countdown-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 14px;
}
.promo-countdown-label i {
    margin-right: 6px;
    color: var(--accent);
}
.promo-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}
.promo-countdown-unit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 14px 6px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.promo-countdown-num {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.promo-countdown-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 6px;
}

/* --- Promo Cards --- */
.promo-cards {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.promo-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.promo-card.is-entering {
    animation: promoFadeIn 0.5s ease;
}
/* JS oculta las inactivas con [hidden] — antes de que JS cargue, todas se
   muestran (mejor que ocultarlas por defecto y arriesgarse a no mostrar nada
   si el JS falla). */
.promo-card[hidden] { display: none !important; }
@keyframes promoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.promo-card-link {
    display: block;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-100);
}
.promo-card-link:hover {
    transform: translateY(-2px);
}
.promo-card-picture,
.promo-card-picture img {
    display: block;
    width: 100%;
    height: auto;
}
.promo-card-cta {
    padding: 22px 24px 26px;
    text-align: center;
}
.btn-promo {
    font-size: 1.1rem;
    padding: 16px 36px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.btn-promo i {
    font-size: 1.3rem;
    margin-right: 8px;
}

/* --- Indicators (when multiple active promos) --- */
.promo-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.promo-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}
.promo-indicator.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

/* --- Empty state --- */
.promo-empty {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}
.promo-empty > i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 18px;
}
.promo-empty h2 {
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 12px;
}
.promo-empty p {
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Trust section --- */
.content-section-soft {
    background: var(--white);
    padding: 60px 0;
}
.promo-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}
.promo-trust-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.promo-trust-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.promo-trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.promo-trust-card h3 {
    font-family: var(--font-primary);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.promo-trust-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .promo-showcase {
        padding: 20px 0 50px;
    }
    .promo-intro {
        margin-top: 36px;
    }
    .promo-intro h1 {
        font-size: 1.4rem;
    }
    .promo-intro p {
        font-size: 0.98rem;
    }
    .promo-countdown {
        padding: 16px 18px;
    }
    .promo-countdown-grid {
        gap: 8px;
    }
    .promo-countdown-num {
        font-size: 1.4rem;
    }
    .promo-countdown-unit {
        padding: 12px 4px;
    }
    .promo-countdown-lbl {
        font-size: 0.65rem;
    }
    .promo-card-cta {
        padding: 18px 16px 22px;
    }
    .btn-promo {
        font-size: 1rem;
        padding: 14px 24px;
        width: 100%;
    }
    .promo-trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .promo-empty {
        padding: 40px 20px;
    }
}
