/* Reset y Variables CSS */
:root {
    --primary-color: #8B5A5A;
    --primary-dark: #6B4444;
    --text-dark: #2C2C2C;
    --text-light: #555555;
    --white: #FFFFFF;
    --background: #FDFBFB;
    --border-color: #EAEAEA;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
    /* Compensación para el header fijo + menú de tratamientos */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Contenedor para el fondo que cubre header + hero */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../background.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

/* Utilidades */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: clamp(10px, 1.2vw, 14px) clamp(24px, 2.5vw, 36px);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(13px, 1vw, 16px);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    min-width: clamp(140px, 12vw, 180px);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Header y Navegación */
.header {
    background-color: rgba(253, 251, 251, 0.75);
    /* Fondo semitransparente */
    border-bottom: 1px solid rgba(234, 234, 234, 0.3);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar {
    padding: 1.5rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 2px; */
    display: flex;
    align-items: center;
    /* Alinea verticalmente la imagen del logo */
    height: 60px;
    /* Asegura que el contenedor del logo tenga una altura definida */
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.header-logo {
    height: 100%;
    /* La imagen ocupa toda la altura de su contenedor (.logo) */
    width: auto;
    /* Mantiene la proporción de la imagen */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
    /* Empuja el menú a la derecha */
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Menú de Tratamientos Fijo */
.treatments-sticky-menu {
    position: sticky;
    top: 95px;
    /* Altura del header */
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    min-height: 70px;
    overflow: visible;
    /* Permite que los submenús se muestren fuera del contenedor */
}

.treatments-sticky-menu.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.treatments-scroll-container {
    position: relative;
    /* Contexto de posicionamiento para los submenús */
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    /* Sin scroll vertical */
    padding: 0 1rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.treatments-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.treatment-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
    background: var(--background);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
    min-width: fit-content;
    cursor: pointer;
}

.treatment-btn i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.treatment-btn span {
    font-size: 0.8rem;
}

.treatment-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 90, 0.2);
}

.treatment-btn:hover i {
    color: var(--white);
}

.treatment-btn.active {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.treatment-btn.active i {
    color: var(--white);
}

/* Wrapper para botones con submenú */
.treatment-btn-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* Submenú de tratamientos */
.treatment-submenu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 9999;
    /* Z-index muy alto para mostrarse sobre todo */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.treatment-btn-wrapper.open .treatment-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.submenu-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.submenu-item:hover {
    background: var(--background);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 95px);
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: calc(4rem + 50px);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: clamp(1rem, 2vw, 2rem);
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: clamp(1rem, 1.5vw, 2rem);
    justify-content: center;
}

/* Ajustes para los botones de la sección hero para que coincidan con la imagen */
.hero-buttons .btn-primary {
    background-color: #92736C;
    /* Un marrón más oscuro */
    border-color: #92736C;
    color: var(--white);
}

.hero-buttons .btn-primary:hover {
    background-color: #7D635E;
    border-color: #7D635E;
}

.hero-buttons .btn-outline {
    background-color: #F8F3F1;
    /* Un color más claro, casi blanco */
    border-color: #D4C9C5;
    /* Un borde más suave */
    color: var(--text-dark);
    /* Color de texto oscuro */
}

.hero-buttons .btn-outline:hover {
    background-color: #EFEBE9;
    color: var(--text-dark);
    border-color: #D4C9C5;
}

/* Todas las secciones después del hero tienen fondo sólido */
section:not(.hero) {
    background-color: var(--white);
    position: relative;
    z-index: 1;
}

/* Sección Tratamientos */
.treatments {
    padding: 3rem 0 2rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.treatments-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.treatment-link {
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.treatment-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}


/* Secciones de Tratamientos Individuales */
.treatment-detail {
    padding: 3rem 0;
    background: var(--background);
}

.treatment-detail.alt {
    background: var(--white);
}

.treatment-content {
    max-width: 900px;
    margin: 0 auto;
}

.treatment-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    box-shadow: var(--shadow-light);
}

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

.treatment-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.treatment-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.treatment-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0 2rem 0;
    text-align: center;
}

.type {
    background: linear-gradient(135deg, #F5EDE8 0%, #EDE3DD 100%);
    padding: 2rem;
    padding-top: 2rem;
    padding-right: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
}

.type-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 1;
}

.type h5 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-right: 110px;
    position: relative;
    z-index: 2;
}

.type ul {
    list-style: none;
    padding: 0;
    padding-right: 110px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.type ul li {
    padding: 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.type ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.type p {
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    padding-right: 110px;
    position: relative;
    z-index: 2;
}

.treatment-benefits,
.treatment-process,
.treatment-ideal,
.treatment-results,
.treatment-procedure,
.vitamins-used,
.exosomes-mechanism {
    margin: 2rem 0;
    text-align: left;
}

.treatment-benefits h4,
.treatment-process h4,
.treatment-ideal h4,
.treatment-results h4,
.treatment-procedure h4,
.vitamins-used h4,
.exosomes-mechanism h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.treatment-benefits ul,
.treatment-ideal ul,
.treatment-results ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.treatment-benefits ul li,
.treatment-ideal ul li,
.treatment-results ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.treatment-benefits ul li i,
.treatment-results ul li i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.treatment-process p,
.treatment-ideal p {
    color: var(--text-light);
    line-height: 1.7;
}

.treatment-process ol,
.treatment-procedure ol {
    padding-left: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.treatment-process ol li,
.treatment-procedure ol li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.treatment-cta {
    margin-top: 3rem;
    text-align: center;
}

.acids-grid,
.substances-grid,
.vitamins-grid,
.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.acid,
.substance,
.vitamin,
.mechanism {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.vitamin i,
.mechanism i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.acid strong,
.substance strong,
.vitamin strong,
.mechanism strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.acid,
.substance p,
.vitamin p,
.mechanism p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Sección Precios */
.pricing {
    padding: 3rem 0;
    background: var(--white);
}

.pricing-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-item {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.pricing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pricing-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-name i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.pricing-name h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.pricing-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.pricing-price {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-deal {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.pricing-footer {
    text-align: center;
    margin-top: 3rem;
}

.pricing-footer p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.whatsapp-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-button-large:hover {
    transform: scale(1.1);
}

/* Sección Espacio / Clínica */
.space-clinic {
    padding: 3rem 0;
    background: var(--white);
}

.space-content {
    margin-top: 3rem;
}

.clinic-info {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.clinic-description {
    text-align: left;
}

.clinic-description h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.clinic-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature:hover {
    box-shadow: var(--shadow-light);
    transform: translateX(5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.clinic-location {
    position: sticky;
    top: 110px;
}

.location-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.location-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.address h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.address p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.location-info {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.location-info p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.location-info p i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.location-info strong {
    color: var(--text-dark);
}

.map-placeholder {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.location-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.location-cta .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Sección Contacto */
.contact {
    padding: 3rem 0;
    background: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.logo-footer {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    body {
        background-position: center top;
        background-size: cover;
    }

    .hero {
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 2rem;
        background-color: rgba(253, 251, 251, 0.9);
        border-radius: var(--border-radius);
        text-align: center;
    }

    .hero-title,
    .hero-subtitle {
        text-align: center;
    }

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

@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 150px;
        /* Ajuste para header + menú en móvil */
    }

    .treatments-sticky-menu {
        top: 94px;
        /* Ajustar según altura del header móvil */
        padding: 0.5rem 0;
        overflow: visible;
        /* Permite que los submenús se muestren fuera del contenedor en móvil */
    }

    .treatments-scroll-container {
        position: relative;
        /* Contexto de posicionamiento para los submenús en móvil */
        padding: 0 0.5rem;
        overflow-y: hidden;
        /* Sin scroll vertical en móvil */
        gap: 0.5rem;
    }

    .treatment-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .treatment-btn i {
        font-size: 1rem;
    }

    .treatment-btn span {
        font-size: 0.7rem;
    }

    .treatment-submenu {
        min-width: 160px;
        font-size: 0.8rem;
    }

    .submenu-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .submenu-item:hover {
        padding-left: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 94px;
        flex-direction: column;
        background-color: var(--background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 10;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .treatment-types {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .type {
        padding-top: 2rem;
    }

    .type-image {
        position: static;
        margin: 0 auto 1.5rem;
        display: block;
    }

    .type h5 {
        padding-right: 0;
    }

    .type p {
        padding-right: 0;
    }

    .type ul {
        padding-right: 0;
    }

    /* En móvil, volver a una columna */
    .treatment-benefits ul,
    .treatment-ideal ul,
    .treatment-results ul,
    .treatment-process ol,
    .treatment-procedure ol {
        grid-template-columns: 1fr;
    }

    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pricing-price {
        text-align: left;
    }

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

    .clinic-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .clinic-location {
        position: static;
    }

    .location-cta {
        flex-direction: column;
    }

    .location-cta .btn {
        width: 100%;
    }
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 44, 44, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
}

.cookie-text {
    flex: 1;
    color: var(--white);
}

.cookie-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    min-width: auto;
    padding: 12px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Responsive para el banner de cookies */
@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookie-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .cookie-text h4 {
        font-size: 1.125rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}