/* --- CONFIGURACIÓN DE VARIABLES --- */
:root {
	/* Paleta de Colores: "Warm Latte & Earth" */

	/* Principal: Marrón Café Profundo */
	--primary-hue: 25;
	--primary: hsl(var(--primary-hue), 30%, 35%); /* #74543F */

	/* Acento: Caramelo / Terracota */
	--accent: hsl(20, 60%, 55%); /* #CD7E62 */
	--accent-hover: hsl(20, 65%, 45%);

	/* Secundario: Beige Suave */
	--secondary: hsl(35, 30%, 94%); /* #F7F5F0 */

	/* Fondo: Casi Blanco (Cálido) */
	--bg-body: hsl(40, 20%, 98%); /* #FDFCFA */

	/* Texto */
	--text-main: hsl(25, 15%, 25%);
	--text-light: hsl(25, 10%, 45%);
	--text-white: #ffffff;

	/* Utilidades */
	--shadow-sm: 0 4px 6px -1px rgba(116, 84, 63, 0.1),
		0 2px 4px -1px rgba(116, 84, 63, 0.06);
	--shadow-md: 0 10px 15px -3px rgba(116, 84, 63, 0.1),
		0 4px 6px -2px rgba(116, 84, 63, 0.05);
	--shadow-lg: 0 20px 25px -5px rgba(116, 84, 63, 0.1),
		0 10px 10px -5px rgba(116, 84, 63, 0.04);

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-full: 9999px;
}

/* --- RESET & BASICS --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
	line-height: 1.7;
	font-size: 17px;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Playfair Display", serif;
	color: var(--primary);
	line-height: 1.2;
	font-weight: 700;
}

p {
	margin-bottom: 1rem;
	color: var(--text-light);
}

a {
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
}

ul {
	list-style: none;
}

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

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

/* --- COMPONENTES UI --- */

/* Botones */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.5rem;
	font-weight: 500;
	border-radius: var(--radius-full);
	transition: all 0.3s ease;
	cursor: pointer;
	font-family: "Inter", sans-serif;
	letter-spacing: 0.5px;
	border: none;
	gap: 0.5rem;
}

.btn-primary {
	background-color: var(--accent);
	color: var(--text-white);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
	background-color: var(--primary);
	color: var(--text-white);
	transform: translateY(-2px);
}

/* Badge (Etiquetas pequeñas) */
.badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: rgba(205, 126, 98, 0.1);
	color: var(--accent);
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

/* --- HEADER & NAV --- */
.header {
	background-color: rgba(253, 252, 250, 0.95);
	backdrop-filter: blur(10px);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
	padding: 0.8rem 0;
}

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

.nav-brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-family: "Playfair Display", serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--primary);
}

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

.nav-menu {
	display: flex;
	gap: 2.5rem;
	align-items: center;
}

.nav-menu a {
	font-size: 1rem;
	color: var(--text-main);
	font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
	color: var(--accent);
}

.btn-nav {
	padding: 0.6rem 1.5rem !important;
	background-color: var(--primary);
	color: white !important;
	border-radius: var(--radius-full);
	transition: 0.3s;
}

.btn-nav:hover {
	background-color: var(--accent) !important;
	transform: translateY(-1px);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
}

.nav-toggle span {
	width: 28px;
	height: 3px;
	background-color: var(--primary);
	border-radius: 3px;
	transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
	min-height: 100vh;
	padding-top: 80px; /* Header space */
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--bg-body) 0%, var(--secondary) 100%);
	position: relative;
	overflow: hidden;
}

/* Forma orgánica de fondo */
.hero::before {
	content: "";
	position: absolute;
	top: -10%;
	right: -5%;
	width: 50%;
	height: 80%;
	background: radial-gradient(
		circle,
		rgba(205, 126, 98, 0.08) 0%,
		rgba(255, 255, 255, 0) 70%
	);
	border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
	z-index: 0;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero-text h1 {
	font-size: 4rem;
	margin-bottom: 1.5rem;
	color: var(--primary);
}

.hero-text p {
	font-size: 1.25rem;
	margin-bottom: 2.5rem;
	max-width: 90%;
}

.hero-actions {
	display: flex;
	gap: 1rem;
}

.hero-visual {
	position: relative;
	display: flex;
	justify-content: center;
}

.hero-image-wrapper {
	position: relative;
	width: 450px;
	height: 550px;
}

/* Marco de foto orgánico */
.hero-img-main {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 200px 200px 20px 20px; /* Arco superior */
	box-shadow: var(--shadow-lg);
	position: relative;
	z-index: 2;
}

.hero-floating-card {
	position: absolute;
	background: white;
	padding: 1rem 1.5rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	gap: 1rem;
	z-index: 3;
	animation: float 6s ease-in-out infinite;
}

.card-top {
	top: 40px;
	right: -30px;
}

.card-bottom {
	bottom: 60px;
	left: -40px;
	animation-delay: 2s;
}

.float-icon {
	width: 40px;
	height: 40px;
	background: var(--secondary);
	color: var(--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- SECCIONES COMUNES --- */
section {
	padding: 5rem 0;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.section-title span {
	color: var(--accent);
	font-family: "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.9rem;
	font-weight: 600;
}

/* --- NEW SOBRE MÍ --- */
.about-section {
    background-color: white;
}

.about-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-column .about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.about-content-column {
    display: flex;
    flex-direction: column;
}

.about-header .about-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 0rem;
    margin-bottom: 1rem;
}

.about-philosophy {
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.about-credentials h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.about-credentials ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-credentials ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.about-credentials ul li i {
    color: var(--accent);
}

.about-clinic-info {
    background: var(--secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-clinic-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.about-clinic-info .info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 25px;
    text-align: center;
}
/* --- FEATURES (Cards) --- */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.feature-card {
	background: white;
	padding: 2.5rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	transition: 0.3s;
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
	border-color: var(--secondary);
}

.feature-icon {
	width: 60px;
	height: 60px;
	background: var(--secondary);
	color: var(--primary);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	transition: 0.3s;
}

.feature-card:hover .feature-icon {
	background: var(--primary);
	color: white;
}

/* --- SERVICIOS (Acordeón) --- */
.services-section {
    background-color: var(--secondary);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-item {
    background: white;
    border-bottom: 1px solid var(--secondary);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: white;
    border: none;
    padding: 1.5rem 2rem;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.2rem;
    color: var(--accent);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.treatments-list {
    padding: 0 2rem 1rem;
}

.treatment-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--secondary);
}

.treatment-icon {
    font-size: 1.8rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    border-radius: var(--radius-md);
}

.treatment-content h4 {
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.treatment-duration {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 400;
}

.treatment-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.treatment-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.treatment-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(205, 126, 98, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* --- TREATMENT DETAIL PAGE --- */
/* --- NUEVA PÁGINA DE DETALLE DE TRATAMIENTO --- */

#treatment-detail .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

#treatment-detail .section-title h2 {
    font-size: 2.8rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

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

.breadcrumb span {
    font-weight: 500;
}

.treatment-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.treatment-detail-main .treatment-detail-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-light);
}

.treatment-detail-sidebar {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    position: sticky;
    top: 120px; /* Espacio para el header fijo */
}

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

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--accent);
    width: 30px;
    padding-top: 5px;
    text-align: center;
}

.detail-item-content h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}

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

.btn-block {
    width: 100%;
}

.treatment-actions-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--secondary);
    padding-top: 2rem;
}

.treatment-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}



/* --- CONTACTO --- */
.contact-container {
	background: white;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1.5fr;
}

.contact-info {
	background: var(--primary);
	color: white;
	padding: 3rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

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

.contact-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
	color: white;
	margin-bottom: 1.5rem;
}

.contact-details-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-detail {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact-detail i {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-form-wrapper {
	padding: 3rem;
}

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

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 0.9rem;
}

.form-control {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ddd;
	border-radius: var(--radius-sm);
	font-family: inherit;
	transition: 0.3s;
	background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group-select {
    position: relative;
}

/* FIX: Flecha centrada en el desplegable */
.form-group-select::after {
    content: '\f078';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    color: var(--accent);
    pointer-events: none;
}

.form-control:focus {
	outline: none;
	border-color: var(--accent);
	background-color: var(--bg-body);
}

/* --- FOOTER --- */
.footer {
	background: var(--primary);
	color: rgba(255, 255, 255, 0.8);
	padding: 4rem 0 2rem;
	text-align: center;
}

.footer-content h3 {
	color: white;
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin: 2rem 0;
}

.footer-links a:hover {
	color: white;
	text-decoration: underline;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 2rem;
	font-size: 0.9rem;
}

/* --- ANIMACIONES --- */
@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    /* 1. Layout General: Pasamos a 1 columna */
    .hero-content,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem; /* Aumentado un poco el espacio vertical */
        text-align: center; /* Centramos textos */
    }

    /* 2. Ajustes Hero */
    .hero {
        padding-top: 140px;
        padding-bottom: 4rem;
        text-align: center;
    }

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

    /* FIX HERO: Hacemos la imagen más protagonista pero proporcional */
    .hero-image-wrapper {
        margin: 2rem auto 0; /* Un poco de aire arriba */
        width: 100%;
        max-width: 550px; /* AUMENTADO: Antes 400px (muy pequeño), ahora 550px */
        height: auto;     /* IMPORTANTE: Quitamos height fijo para que no se deforme */
        aspect-ratio: 4/5; /* Mantiene la proporción vertical bonita */
    }

    .hero-img-main {
        border-radius: 200px 200px 20px 20px; /* Mantenemos tu diseño de arco */
    }

    /* 3. FIX SOBRE MÍ: Controlamos el tamaño de la foto gigante */
    .about-image-column {
        width: 100%;
        display: flex;
        justify-content: center; /* Centramos la foto horizontalmente */
    }

    .about-image-column .about-photo {
        width: 100%;
        max-width: 450px; /* LIMITADO: Para que no ocupe toda la pantalla */
        height: auto;
        /* Opcional: Si quieres que mantenga el mismo estilo del hero */
        /* aspect-ratio: 3/4; */ 
    }

    /* Ajustes generales de padding */
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }

    /* Ajuste detalle tratamientos (Layout) */
    .treatment-detail-layout {
        grid-template-columns: 1fr;
    }

    .treatment-detail-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* 1. Hacemos visible el botón en móvil */
    .nav-toggle {
        display: flex; 
		z-index: 1002;
		width: 30px; 
        height: 25px;
        justify-content: space-between;
    }

    /* 2. Estilo del menú desplegable móvil */
    .nav-menu {
        position: fixed;
        top: 0; /* O la altura de tu header si es sticky, ej: 70px */
        left: 0;
        width: 100%;
        height: 100vh; /* Ocupa toda la pantalla */
        background-color: #fff; /* Fondo blanco sólido */
        flex-direction: column;
        justify-content: center; /* Centra los enlaces verticalmente */
        align-items: center;
        gap: 2rem;
        padding: 2rem;
		transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    /* 3. Clase activa para mostrar el menú */
    .nav-menu.active {
        transform: translateX(0);
    }

    /* 4. Animación de la X cuando está abierto */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0; /* La línea del medio desaparece */
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

	.hero{
		padding-top: 100px; 
        padding-bottom: 3rem;
        min-height: auto;
	}

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

	.hero-actions {
        flex-direction: column; 
        width: 100%;
        gap: 1rem;
    }

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

    .hero-image-wrapper {
        width: 100%;
        max-width: 320px; 
        height: auto;     
        aspect-ratio: 4/5; 
        margin: 0 auto;
    }

	h1 {
		font-size: 2.5rem !important;
	}

    .treatments-list {
        padding: 0 1rem 1rem;
    }

    .treatment-item {
        grid-template-columns: 1fr; /* Apilado en una columna */
        gap: 1rem;
        text-align: center;
    }

    .treatment-icon {
        margin: 0 auto;
    }

    .treatment-content p {
        display: none; /* Ocultar descripción en móvil */
    }

    .treatment-action {
        flex-direction: column;
        align-items: stretch; /* Botones ocupan todo el ancho */
        width: 100%;
        gap: 0.8rem;
    }

    .btn-small {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

	.treatment-detail-image {
        height: 250px;
    }

	.contact-container {
        grid-template-columns: 1fr;
        width: 100%;
        overflow: hidden; /* Cortafuegos por si algo sobresale */
    }

    .contact-info, 
    .contact-form-wrapper {
        padding: 2rem 1.5rem; /* Reducimos el padding lateral para ganar espacio */
    }

}


/* --- Estilos de componentes específicos --- */

/* --- Contacto --- */
.contact-info-description {
    color: rgba(255, 255, 255, 0.8);
}

.contact-detail-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.contact-form-submit {
    width: 100%;
}

/* --- Footer --- */
.footer-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.footer-description {
    max-width: 500px;
    padding-bottom: 20px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Utilidades --- */
.img-error {
    display: none;
}


/* Loader */
.loading-screen {
	position: fixed;
	inset: 0;
	background: var(--bg-body);
	display: none; /* Se activa con JS si se quiere */
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
