/* ========================================= */
/* 1. ESTILOS GLOBALES Y RESET                 */
/* Normalización básica para evitar inconsistencias entre navegadores */
/* ========================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", sans-serif;
	overflow-x: hidden;
}

/* ========================================= */
/* 2. CABECERA Y NAVEGACIÓN (NAVBAR)           */
/* Estilos para el logotipo y menú principal   */
/* =========================================     */
.navbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	background-color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.navbar-top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: clamp(1rem, 3vw, 2.25rem);
	row-gap: 0.5rem;
	padding: 0.4rem 5% 0.55rem;
	background-color: #ffffff;
}

.navbar-top .logo {
	grid-column: 1;
}

.navbar-top .nav-contacts {
	grid-column: 3;
	justify-self: end;
}

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

.nav-contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.65rem 0.9rem;
}

.nav-contact {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	text-decoration: none;
	color: inherit;
	max-width: 14rem;
	transition: opacity 0.2s ease;
}

.nav-contact:hover {
	opacity: 0.85;
}

.nav-contact:focus-visible {
	outline: 2px solid #4a7c7c;
	outline-offset: 4px;
	border-radius: 6px;
}

.nav-contact__icon {
	flex-shrink: 0;
	color: #4a7c7c;
	margin-top: 0.1rem;
	opacity: 0.92;
}

.nav-contact__icon svg {
	display: block;
}

.nav-contact__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	text-align: left;
	line-height: 1.25;
}

.nav-contact__place {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #2c3e50;
}

.nav-contact__tel {
	font-size: 0.82rem;
	font-weight: 600;
	color: #4a7c7c;
	letter-spacing: 0.03em;
}

.menu-list {
	display: flex;
	list-style: none;
	gap: 2.5rem;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	margin: 0;
	padding: 0.85rem 5% 0.95rem;
	background-color: #e6e6e6;
	border-top: 1px solid rgba(74, 124, 124, 0.12);
}

.menu-list a {
	text-decoration: none;
	color: #0e6f80;
	font-weight: 500;
	font-size: 1rem;
	transition: color 0.3s ease;
}

.menu-list a:hover {
	color: #0a5563;
}

/* ========================================= */
/* 3. SECCIÓN HERO / CARRUSEL                  */
/* Contenedor principal con imagen de fondo centralizada */
/* ========================================= */
.carousel {
	position: relative;
	height: 600px;
	width: 100%;
	overflow: hidden;
	background-color: #333;
}

.carousel-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.2) 70%);
	display: flex;
	align-items: center;
	padding: 0 8%;
}

.hero-text {
	color: #ffffff;
	max-width: 700px;
}

.kicker {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #a0d2d2;
	margin-bottom: 1rem;
}

.hero-text h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin-bottom: 1.5rem;
	font-weight: 800;
}

.hero-text h1 span {
	font-weight: 400;
	font-style: italic;
}

.hero-text .description {
	font-size: 1.2rem;
	margin-bottom: 2.5rem;
	opacity: 0.9;
}

/* ========================================= */
/* 4. COMPONENTES: BOTONES                     */
/* Clases de utilidad para botones en la web   */
/* ========================================= */
.hero-btns {
	display: flex;
	gap: 1rem;
}

.btn-main,
.btn-sub {
	padding: 14px 30px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
}

.btn-main {
	background-color: #4a7c7c;
	color: white;
}

.btn-sub {
	border: 2px solid white;
	color: white;
}

.btn-main:hover {
	background-color: #3a6363;
	transform: translateY(-2px);
}

.btn-sub:hover {
	background: white;
	color: #4a7c7c;
	transform: translateY(-2px);
}

/* --- Lógica y Transiciones del Carrusel --- */
.carousel-inner {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

.slide {
	min-width: 100%;
	height: 100%;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Más luz que antes (contrast 0.8 apagaba mucho); sin pasarse para evitar deslumbrar */
	filter: brightness(1.22) saturate(0.58) contrast(0.9) grayscale(0.08);
	transform: scale(1.01);
}

/* ========================================= */
/* 5. SECCIÓN: QUIÉNES SOMOS                   */
/* Estilos para la biografía y tarjetas       */
/* ========================================= */
.about {
	padding: 100px 5%;
	background-color: #ffffff;
}

/* ========================================= */
/* 5.1 SECCIÓN ANTES/DESPUÉS (ESTÁTICO 50/50) */
/* ========================================= */
.before-after {
	padding: 80px 5%;
	background-color: #fafbfc;
}

.ba-grid-static {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
	gap: 25px;
	max-width: 1200px;
	margin: 0 auto;
}

.ba-card-static {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease;
}

.ba-card-static:hover {
	transform: translateY(-5px);
}

.ba-container {
	display: flex; /* Esto pone las fotos una al lado de la otra */
	width: 100%;
	aspect-ratio: 4 / 3; /* Proporción estándar de cámara */
	background: #eee;
}

.ba-side {
	position: relative;
	width: 50%; /* Mitad exacta */
	height: 100%;
}

.ba-side img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Recorta la imagen para que rellene su mitad sin estirarse */
	display: block;
}

/* Etiquetas flotantes */
.ba-tag {
	position: absolute;
	bottom: 10px;
	background: rgba(255, 255, 255, 0.9);
	padding: 3px 8px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	color: #4a7c7c;
	border-radius: 4px;
	z-index: 2;
}

.ba-side:first-child .ba-tag {
	left: 10px;
}
.ba-side:last-child .ba-tag {
	right: 10px;
}

/* Título de la tarjeta */
.ba-card__title {
	margin: 0;
	padding: 1.2rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #2c3e50;
	text-align: center;
}

/* Responsive: de 3 columnas a 1 en móviles */
@media (max-width: 992px) {
	.ba-grid-static {
		grid-template-columns: 1fr;
		max-width: 500px; /* Para que no se vean gigantes en tablets */
	}
}

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

.about-header {
	margin-bottom: 4rem;
	text-align: center;
}

.kicker-dark {
	color: #4a7c7c;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 700;
	font-size: 0.8rem;
	margin-bottom: 1rem;
}

.section-title {
	font-size: 2.5rem;
	color: #2c3e50;
	font-weight: 800;
	max-width: 800px;
	margin: 0 auto;
}

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

.about-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	line-height: 1.8;
	color: #444;
	font-size: 1.05rem;
}

.about-text p {
	margin-bottom: 1.5rem;
}

.about-text b {
	color: #4a7c7c;
}

.italic-medium {
	font-style: italic;
	font-weight: 500;
}

.section-divider {
	height: 1px;
	background: linear-gradient(to right, transparent, #4a7c7c, transparent);
	opacity: 0.3;
	margin: 0 auto;
	width: 80%;
}

/* ========================================= */
/* 6. SECCIÓN: TRATAMIENTOS                    */
/* Layout de cuadrícula para las patologías   */
/* ========================================= */
.treatments {
	padding: 100px 5%;
	background-color: #f9fbfb;
}

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

/* Componente individual: Tarjeta de Tratamiento */
.treatment-card {
	background: #ffffff;
	padding: 3rem 2rem;
	border-radius: 15px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(0, 0, 0, 0.05);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.treatment-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(74, 124, 124, 0.1);
	border-color: #4a7c7c;
}

.card-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	background-color: #f0f7f7;
	border: 2px solid #4a7c7c22;
}

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

.treatment-card:hover .card-icon img {
	transform: scale(1.1);
}

.treatment-card h3 {
	color: #2c3e50;
	margin-bottom: 1rem;
	font-size: 1.4rem;
}

.card-desc {
	color: #666;
	font-size: 0.95rem;
	line-height: 1.6;
	/* Estado inicial: oculto o semi-oculto */
	opacity: 0;
	max-height: 0;
	transition: all 0.4s ease;
}

.treatments-title-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.9rem;
	flex-wrap: wrap;
}

.treatments-more-link {
	font-size: 0.85rem;
	color: #4a7c7c;
	text-decoration: none;
	border-bottom: 1px solid rgba(74, 124, 124, 0.4);
	font-weight: 600;
	letter-spacing: 0.4px;
}

.treatments-more-link:hover {
	color: #2f5f5f;
	border-bottom-color: #2f5f5f;
}

.card-more-link {
	display: inline-block;
	margin-top: 0.75rem;
	color: #4a7c7c;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.card-more-link:hover {
	color: #2f5f5f;
}

/* Cuando la tarjeta está activa o tiene hover */
.treatment-card:hover .card-desc,
.treatment-card.active .card-desc {
	opacity: 1;
	max-height: 420px;
	margin-top: 1rem;
}

.btn-more {
	margin-top: 1.5rem;
	background: none;
	border: none;
	color: #4a7c7c;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
}

@media (min-width: 769px) {
	.treatment-card:hover .btn-more,
	.treatment-card.active .btn-more {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

.treatment-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: #4a7c7c;
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

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

/* ========================================= */
/* 7. SECCIÓN: EQUIPO                          */
/* Presentación del equipo de odontólogos      */
/* ========================================= */
.team {
	padding: 100px 5%;
	background-color: #ffffff;
}

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

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

.team-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	/* Formato retrato profesional */
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.team-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(20%);
	/* Efecto elegante sutil */
	transition: all 0.5s ease;
}

.team-image--placeholder {
	background: linear-gradient(160deg, #f2f8f8 0%, #e3f0f0 100%);
}

.team-image--placeholder img {
	object-fit: contain;
	object-position: center bottom;
	padding: 12% 10% 8%;
	filter: none;
	box-sizing: border-box;
}

.team-card:hover .team-image--placeholder img {
	transform: scale(1.03);
}

/* Efecto al pasar el ratón por la tarjeta */
.team-card:hover .team-image:not(.team-image--placeholder) img {
	transform: scale(1.08);
	filter: grayscale(0%);
}

.team-info h3 {
	color: #2c3e50;
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.team-info p {
	color: #4a7c7c;
	font-size: 0.9rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.team-info a {
	color: #4a7c7c;
	font-size: 0.8rem;
	font-style: italic;
	font-weight: 500;
	letter-spacing: 1px;
}

/* ========================================= */
/* 8. SECCIÓN: CONTACTO                        */
/* Grillas, mapas insertados y direcciones     */
/* ========================================= */
.contact {
	padding: 100px 5%;
	background-color: #1a1a1a;
	/* Fondo oscuro */
	color: #ffffff;
}

.text-white {
	color: #ffffff !important;
}

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

.location-card {
	background-color: #262626;
	/* Gris ligeramente más claro para la tarjeta */
	border-radius: 15px;
	overflow: hidden;
	transition: transform 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.location-card:hover {
	transform: translateY(-5px);
	border-color: #4a7c7c;
}

.map-container {
	width: 100%;
	height: 200px;
	filter: grayscale(0.5) contrast(1.2);
	/* Mapa estilo elegante */
	transition: filter 0.3s;
}

.location-card:hover .map-container {
	filter: grayscale(0);
	/* El mapa recupera color al hover */
}

.location-info {
	padding: 2rem;
}

.location-info h3 {
	color: #a0d2d2;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.location-info p {
	margin-bottom: 0.8rem;
	font-size: 0.95rem;
	color: #ccc;
	display: flex;
	align-items: center;
}

.location-info a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.3s;
}

.location-info a:hover {
	color: #a0d2d2;
}

.icon {
	margin-right: 10px;
	font-style: normal;
}

.hours {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours h4 {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #4a7c7c;
	margin-bottom: 1rem;
}

.hours p {
	font-size: 0.85rem;
	margin-bottom: 0.3rem;
}

/* ========================================= */
/* 9. SECCIÓN: PREGUNTAS FRECUENTES (FAQ)      */
/* Acordeones estilizados para resolver dudas  */
/* ========================================= */
.faq {
	padding: 80px 5%;
	background-color: #ffffff;
}

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

.faq-item {
	border-bottom: 1px solid #eee;
	padding: 1rem 0;
	transition: all 0.3s ease;
}

.faq-item summary {
	list-style: none;
	/* Quita la flecha nativa en algunos navegadores */
	font-weight: 600;
	font-size: 1.1rem;
	color: #2c3e50;
	padding: 1rem;
	cursor: pointer;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-item summary::after {
	content: "+";
	color: #4a7c7c;
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
	transform: rotate(45deg);
}

.faq-answer {
	padding: 0 1rem 1rem 1rem;
	color: #666;
	line-height: 1.6;
	animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

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

/* Efecto hover profesional */
.faq-item:hover {
	background-color: #f9fbfb;
}

/* ========================================= */
/* 9.05 SECCIÓN: ACTIVIDADES ACADÉMICAS        */
/* ========================================= */
.academic {
	padding: 88px 5%;
	background-color: #f9fbfb;
}

.academic-header {
	margin-bottom: 2.75rem;
}

.academic-intro {
	max-width: 720px;
	margin: 1.25rem auto 0;
	text-align: center;
	color: #4f5d6b;
	font-size: 1.05rem;
	line-height: 1.75;
}

.academic-list {
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.academic-item {
	background: #ffffff;
	border-radius: 14px;
	padding: 1.65rem 1.85rem;
	border: 1px solid #e8eded;
	box-shadow: 0 2px 14px rgba(15, 35, 52, 0.05);
}

.academic-item h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 0.45rem;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.academic-meta {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a7c7c;
	margin-bottom: 1rem;
}

.academic-body {
	color: #555;
	font-size: 1rem;
	line-height: 1.75;
}

.academic-body p {
	margin-bottom: 0.85rem;
}

.academic-body p:last-child {
	margin-bottom: 0;
}

.academic-body cite {
	font-style: normal;
	color: #3d5c5c;
}

.academic-figure {
	margin: 0 0 1.15rem;
	border-radius: 12px;
	overflow: hidden;
	background: #eef2f3;
	line-height: 0;
}

.academic-figure img {
	width: 100%;
	height: auto;
	display: block;
}

/* Alto protagonista: apertura de campaña y congreso UNPHU */
.academic-figure--feature {
	max-height: min(340px, 52vw);
}

.academic-figure--feature img {
	width: 100%;
	height: min(340px, 52vw);
	object-fit: cover;
	object-position: center;
}

/* Campaña DENTAID: texto a la izquierda, foto completa a la derecha, continuación debajo */
.academic-split-dentaid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
	gap: 1.35rem 2rem;
	align-items: stretch;
	margin-bottom: 1.05rem;
}

.academic-split-dentaid__text {
	min-width: 0;
}

.academic-split-dentaid__text h3 {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: #2c3e50;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.academic-split-dentaid__text .academic-meta {
	margin-bottom: 0.85rem;
}

.academic-body--split-lead p {
	margin: 0;
}

.academic-figure--dentaid-right {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-height: 200px;
	max-height: 440px;
	padding: 0.45rem;
	background: #eef2f3;
	border-radius: 12px;
	overflow: hidden;
}

.academic-figure--dentaid-right img {
	width: 100%;
	height: auto;
	max-height: min(420px, 52vw);
	object-fit: contain;
	object-position: center;
}

.academic-body--split-below {
	padding-top: 0.15rem;
	border-top: 1px solid rgba(74, 124, 124, 0.12);
}

.academic-body--split-below p {
	margin: 0;
}

/* Granada: franja doble (sala + Dra. Pujol en primer plano en el panel derecho). */
.academic-figure--panorama {
	max-height: min(340px, 56vw);
}

.academic-figure--panorama img {
	width: 100%;
	height: min(340px, 56vw);
	max-height: 340px;
	object-fit: cover;
	object-position: center 48%;
}

/* Fotografía institucional estándar */
.academic-figure--standard {
	max-height: min(260px, 42vw);
}

.academic-figure--standard img {
	width: 100%;
	height: min(260px, 42vw);
	object-fit: cover;
	object-position: center top;
}

/* Portada de publicación: se ve entera, sin recorte agresivo */
.academic-figure--publication {
	background: #fff;
	padding: 0.5rem 0.6rem 0.55rem;
	max-height: 300px;
}

.academic-figure--publication img {
	max-height: 280px;
	width: 100%;
	object-fit: contain;
	object-position: center;
}

/* Pareja de imágenes: congresos internacionales */
.academic-figures {
	margin: 0 0 1.1rem;
}

.academic-figures--duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	align-items: stretch;
}

.academic-figure--duo {
	margin: 0;
	max-height: min(220px, 35vw);
	min-height: 0;
}

.academic-figure--duo img {
	width: 100%;
	height: 100%;
	min-height: 160px;
	max-height: min(220px, 35vw);
	object-fit: cover;
	object-position: center;
}

/* Prensa: un poco más compactas, mismo peso visual */
.academic-figures--press {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin-bottom: 1.05rem;
}

.academic-figure--press {
	margin: 0;
	max-height: min(200px, 32vw);
}

.academic-figure--press img {
	width: 100%;
	height: min(200px, 32vw);
	object-fit: cover;
	object-position: top center;
}

.academic-item--highlight {
	border-color: #e0ebeb;
	box-shadow: 0 4px 24px rgba(15, 35, 52, 0.07);
}

/* ========================================= */
/* 9.1 SECCIÓN: TRATAMIENTOS AMPLIADOS        */
/* ========================================= */
.treatments-extra {
	padding: 90px 5%;
	background-color: #ffffff;
}

.treatments-extra-intro {
	max-width: 920px;
	margin: 0 auto 2rem;
	text-align: center;
	color: #4f5d6b;
	line-height: 1.7;
}

.treatments-extra-list {
	max-width: 980px;
	margin: 0 auto;
	display: grid;
	gap: 0.75rem;
}

.treatment-extra-item {
	border: 1px solid #e8eded;
	border-radius: 12px;
	background: #fcfdfd;
	overflow: hidden;
}

.treatment-extra-item summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 1.25rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2c3e50;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.treatment-extra-item summary::after {
	content: "+";
	font-size: 1.25rem;
	color: #4a7c7c;
	line-height: 1;
	transition: transform 0.2s ease;
}

.treatment-extra-item[open] summary::after {
	transform: rotate(45deg);
}

.treatment-extra-content {
	padding: 0.2rem 1.25rem 1.15rem;
	color: #4f5d6b;
	line-height: 1.75;
}

.treatment-extra-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 0 0 1rem;
}

/* Fila superior: imagen a la izquierda, primer párrafo a la derecha (p. ej. Implantología) */
.treatment-extra-split {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1.25rem;
	margin-bottom: 0.9rem;
}

.treatment-extra-split--reverse {
	flex-direction: row-reverse;
}

.treatment-extra-split .treatment-extra-img {
	flex: 0 0 auto;
	width: min(38%, 340px);
	max-width: 340px;
	margin: 0;
}

.treatment-extra-split-body {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 720px) {
	.treatment-extra-split,
	.treatment-extra-split--reverse {
		flex-direction: column;
	}

	.treatment-extra-split .treatment-extra-img {
		width: 100%;
		max-width: 100%;
	}
}

.treatment-extra-content p + p {
	margin-top: 0.9rem;
}

.reviews-container {
	margin-top: 0 2rem 2rem 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-slider {
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	margin-bottom: 1.5rem;
	height: 260px; /* Esencial para que el modo vertical recorte el sobrante */
}

/* Reducir el tamaño de las tarjetas forzosamente */
.review-item > div {
	padding: 1.5rem !important;
}

.review-item p {
	font-size: 0.9rem !important;
	margin-bottom: 0.5rem !important;
	min-height: auto !important;
}

.review-item .stars {
	font-size: 1.2rem !important;
	margin-bottom: 0.8rem !important;
}

.reviews-track {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-item {
	width: 100%;
	min-height: 100%;
	/* Cada tarjeta ocupa el 100% de la altura del slider */
	padding: 0 5px;
}

.stars {
	color: #ffc107;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

.review-item p {
	font-style: italic;
	font-size: 0.9rem !important;
	line-height: 1.5;
	color: #e0e0e0 !important;
	margin-bottom: 0.5rem !important;
	min-height: 3.5rem;
}

.review-item .author {
	display: block;
	font-size: 0.75rem;
	color: #4a7c7c;
	font-weight: 700;
	text-transform: uppercase;
}

/* Botón Ver más en Google */
.btn-google-more {
	display: inline-block;
	color: #a0d2d2;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	border: 1px solid rgba(160, 210, 210, 0.3);
	padding: 8px 16px;
	border-radius: 4px;
}

.btn-google-more:hover {
	background: #4a7c7c;
	color: white;
	border-color: #4a7c7c;
}

.btn-google-more span {
	margin-left: 5px;
	transition: transform 0.3s ease;
}

.btn-google-more:hover span {
	transform: translateX(5px);
}

/* ========================================= */
/* 10. MEDIA QUERIES (RESPONSIVE)              */
/* Adaptación a dispositivos móviles y tablets */
/* ========================================= */
@media (max-width: 768px) {
	.carousel {
		height: 450px;
	}

	.navbar {
		padding: 0;
		gap: 0;
	}

	.navbar-top {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0.65rem 1rem 0.55rem;
		gap: 0.55rem;
	}

	.navbar-top .logo {
		align-self: center;
	}

	.navbar-top .nav-contacts {
		justify-content: center;
		justify-self: unset;
		width: 100%;
	}

	.nav-contact {
		max-width: none;
	}

	.logo-img {
		height: 36px;
	}

	.nav-contacts {
		gap: 0.5rem 0.65rem;
	}

	.menu-list {
		gap: 1rem;
		font-size: 0.9rem;
		padding: 0.75rem 1rem 0.85rem;
	}

	.menu-list a {
		font-size: 0.9rem;
	}

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

	.about-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.ba-card__title {
		font-size: 1.05rem;
		padding: 1.15rem 1rem 1.35rem;
	}

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

	.academic {
		padding: 64px 5%;
	}

	.academic-item {
		padding: 1.35rem 1.2rem;
	}

	.academic-intro {
		font-size: 0.98rem;
	}

	.academic-figures--duo,
	.academic-figures--press {
		grid-template-columns: 1fr;
	}

	.academic-figure--feature img {
		height: min(260px, 58vw);
		max-height: 260px;
	}

	.academic-figure--standard img {
		height: min(220px, 50vw);
		max-height: 220px;
	}

	.academic-figure--duo img {
		min-height: 140px;
		max-height: 220px;
	}

	.academic-figure--press img {
		height: min(180px, 48vw);
		max-height: 180px;
	}

	.academic-split-dentaid {
		grid-template-columns: 1fr;
		gap: 1rem;
		margin-bottom: 0.85rem;
	}

	.academic-figure--dentaid-right {
		max-height: none;
		min-height: 180px;
		padding: 0.35rem;
	}

	.academic-figure--dentaid-right img {
		max-height: min(340px, 70vw);
	}

	.academic-body--split-below {
		padding-top: 0.65rem;
	}

	.academic-figure--panorama img {
		height: min(260px, 62vw);
		max-height: 260px;
		object-position: center 45%;
	}
}
/* SECCIÓN ANTES/DESPUÉS SIMPLIFICADA */
.ba-grid-static {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 columnas */
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.ba-card-static {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ba-container {
	display: flex; /* Une las dos mitades */
	width: 100%;
	aspect-ratio: 4 / 3; /* Mantiene la proporción de las fotos */
}

.ba-side {
	position: relative;
	width: 50%; /* Cada una ocupa exactamente la mitad */
	overflow: hidden;
}

.ba-side img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Evita que la foto se estire */
	display: block;
}

/* Etiquetas "Antes" y "Después" */
.ba-tag {
	position: absolute;
	bottom: 8px;
	background: rgba(255, 255, 255, 0.9);
	padding: 2px 8px;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #4a7c7c;
	border-radius: 4px;
}

/* El tag de "Antes" a la izquierda, el de "Después" a la derecha */
.ba-side:first-child .ba-tag {
	left: 8px;
}
.ba-side:last-child .ba-tag {
	right: 8px;
}

/* Responsive: 1 columna en móviles */
@media (max-width: 992px) {
	.ba-grid-static {
		grid-template-columns: 1fr;
		padding: 0 20px;
	}
}
