:root {
    --px: 1rem;
    --section-py-three: 25px;
}

/* Header */
#header .header-brand {
    width: 70%;
}
#header .header-logo {
    width: 100%;
}
#header .header-name {
    font-size: 0.9rem;
}

#header .header-specialty {
    font-size: 0.65rem;
}
#header .header-cta {
    padding: 10px 15px;
    font-size: 0.8rem;
}
#header .header-cta span{
    display: none;
}

/* ── HAMBURGUESA — aplica en 1000x631 y 630x320 ─────────── */

/* Ocultar nav por defecto en móvil/tablet */
#header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0.75rem var(--px);
    z-index: 39;
}

#header-nav.is-open {
    display: block;
}

#header-nav .header-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

#header-nav .header-menu li a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    font-size: 0.95rem;
}

#header-nav .header-menu li:last-child a {
    border-bottom: none;
}

/* Sub-menu en mobile — desplegable inline */
#header-nav .header-menu .sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background-color: var(--gray-50);
}

#header-nav .header-menu .sub-menu li a {
    padding-left: 1.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
}

#header-nav .header-menu li.menu-item-has-children > a::after {
    margin-left: auto;
}

/* Mostrar hamburguesa */
#header .header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

#header .header-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 9999px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

/* Animación X al abrir */
#header .header-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#header .header-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
#header .header-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* header position relative para que el nav absolute se posicione bien */
#header {
    position: sticky;
    top: 0;
    z-index: 40;
}

#header .header-inner {
    position: relative;
}

/* Hero */
#hero .hero-inner{
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    min-height: 300px;
}
#hero .hero-title {
    font-size: 1.875rem;
}

#hero .hero-badge {
    font-size: 0.75rem;
}

#hero .hero-desc {
    font-size: 1rem;
}
#hero .hero-image-wrap{
    min-height: 300px;
}
#hero .hero-actions {
    flex-direction: column;
}

#hero .btn-primary,
#hero .btn-outline {
    width: 100%;
    padding: 0.875rem 1.5rem;
}

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

#stats .stat-number {
    font-size: 1.75rem;
}

/* Tratamientos */
#tratamientos .section-header {
    margin-bottom: 2.5rem;
}

#tratamientos .section-title,
#testimoniales .section-title,
#contacto .section-title {
    font-size: 1.5rem;
}

#tratamientos .section-desc,
#testimoniales .section-desc,
#contacto .section-desc {
    font-size: 1rem;
}

#tratamientos .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#tratamientos .card {
    padding: 1.5rem;
}
#tratamientos .card-img {
    aspect-ratio: 4 / 3;
}

/* Testimoniales */
#testimoniales {
    padding: 3rem var(--px);
}

#testimoniales .testimoniales-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#testimoniales .testimonial-card {
    padding: 1.5rem;
}

/* Contacto */
#contacto {
    padding: var(--section-py) var(--px);
}

#contacto .contacto-inner {
    grid-template-columns: 1fr;
}

#contacto .contacto-title,
#contacto .contacto-right-title {
    font-size: 1.5rem;
}

#contacto .social-section-title {
    font-size: 1.5rem;
}

#contacto .contacto-form-wrap {
    padding: 1.25rem;
    border-radius: 0.75rem;
}
.cf7-row-2 {
    grid-template-columns: 1fr;
}

/* Ubicación */
#ubicacion .ubicacion-inner {
    grid-template-columns: 1fr;
}

#ubicacion .ubicacion-title {
    font-size: 1.25rem;
}

/* Footer */
#footer {
    padding: 2rem var(--px);
}

#footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#footer .footer-brand-col {
    grid-column: auto;
}

/* WhatsApp chicklet */
#wa-chicklet {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
}

/* Intro */
#intro .intro-title {
    font-size: 1.5rem;
}

#intro .intro-cols {
    grid-template-columns: 1fr;
}

/* Porque */
#porque,
#porque-tn1 {
    padding: var(--section-py-two) var(--px);
}
#porque .porque-inner, #porque-tn1 .porque-inner{
    grid-template-columns: 1fr;
}
#porque .porque-title, #porque-tn1 .porque-title{
    font-size: 1.5rem;
    text-align: center;
}

/* Otros Servicios */
#otros-servicios .otros-inner {
    grid-template-columns: 1fr;
}

#otros-servicios .otros-title {
    font-size: 1.5rem;
}

/* Mas Testimoniales */
#mas-testimoniales .section-title {
    font-size: 1.5rem;
}

#mas-testimoniales .mas-test-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* FAQs */
#faqs .section-title {
    font-size: 1.5rem;
}

#faqs .faq-question {
    font-size: 1.1rem;
}

#faqs .faqs-grid {
    grid-template-columns: 1fr;
}

#faqs .faqs-ctas {
    grid-template-columns: 1fr;
}

/* Testimoniales Video */
#testimoniales-video .section-title {
    font-size: 1.5rem;
}

#testimoniales-video .tv-grid {
    grid-template-columns: 1fr;
}

:root {
    --px: 1rem;
}

/* Header */
#header .header-brand {
    width: 70%;
}
#header .header-logo {
    width: 100%;
}
#header .header-name {
    font-size: 0.9rem;
}

#header .header-specialty {
    font-size: 0.65rem;
}
#header .header-cta {
    padding: 10px 15px;
    font-size: 0.8rem;
}
#header .header-cta span{
    display: none;
}
/* Hero */
#hero .hero-inner{
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    min-height: 300px;
}
#hero .hero-title {
    font-size: 1.875rem;
}

#hero .hero-badge {
    font-size: 0.75rem;
}

#hero .hero-desc {
    font-size: 1rem;
}
#hero .hero-image-wrap{
    min-height: 300px;
}
#hero .hero-actions {
    flex-direction: column;
}

#hero .btn-primary,
#hero .btn-outline {
    width: 100%;
    padding: 0.875rem 1.5rem;
}

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

#stats .stat-number {
    font-size: 1.75rem;
}

/* Tratamientos */
#tratamientos .section-header {
    margin-bottom: 2.5rem;
}

#tratamientos .section-title,
#testimoniales .section-title,
#contacto .section-title {
    font-size: 1.5rem;
}

#tratamientos .section-desc,
#testimoniales .section-desc,
#contacto .section-desc {
    font-size: 1rem;
}

#tratamientos .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#tratamientos .card {
    padding: 1.5rem;
}
#tratamientos .card-img {
    aspect-ratio: 4 / 3;
}

/* Testimoniales */
#testimoniales {
    padding: 3rem var(--px);
}

#testimoniales .testimoniales-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#testimoniales .testimonial-card {
    padding: 1.5rem;
}

/* Contacto */
#contacto {
    padding: var(--section-py) var(--px);
}

#contacto .contacto-inner {
    grid-template-columns: 1fr;
}

#contacto .contacto-title,
#contacto .contacto-right-title {
    font-size: 1.5rem;
}

#contacto .social-section-title {
    font-size: 1.5rem;
}

#contacto .contacto-form-wrap {
    padding: 1.25rem;
    border-radius: 0.75rem;
}
.cf7-row-2 {
    grid-template-columns: 1fr;
}

/* Ubicación */
#ubicacion .ubicacion-inner {
    grid-template-columns: 1fr;
}

#ubicacion .ubicacion-title {
    font-size: 1.25rem;
}

/* Footer */
#footer {
    padding: 2rem var(--px);
}

#footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#footer .footer-brand-col {
    grid-column: auto;
}

/* WhatsApp chicklet */
#wa-chicklet {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
}

/* Intro */
#intro .intro-title {
    font-size: 1.5rem;
}

#intro .intro-cols {
    grid-template-columns: 1fr;
}

/* Porque */
#porque,
#porque-tn1 {
    padding: var(--section-py-two) var(--px);
}
#porque .porque-inner {
    grid-template-columns: 1fr;
}

#porque .porque-title {
    font-size: 1.5rem;
    text-align: center;
}

/* Otros Servicios */
#otros-servicios .otros-inner {
    grid-template-columns: 1fr;
}

#otros-servicios .otros-title {
    font-size: 1.5rem;
}

/* Mas Testimoniales */
#mas-testimoniales .section-title {
    font-size: 1.5rem;
}

#mas-testimoniales .mas-test-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* FAQs */
#faqs .section-title {
    font-size: 1.5rem;
}

#faqs .faq-question {
    font-size: 1.1rem;
}

#faqs .faqs-grid {
    grid-template-columns: 1fr;
}

#faqs .faqs-ctas {
    grid-template-columns: 1fr;
}

/* Testimoniales Video */
#testimoniales-video .section-title {
    font-size: 1.5rem;
}

#testimoniales-video .tv-grid {
    grid-template-columns: 1fr;
}

/* ── HERO ACERCA ─────────────────────────────────────────── */
#hero-acerca .hero-acerca-inner {
    display: flex;
    flex-direction: column;
    min-height: unset;
    padding-top: 15px;
}

#hero-acerca {
    min-height: unset;
}

#hero-acerca .hero-acerca-title {
    font-size: 1.875rem;
}

#hero-acerca .hero-acerca-especialidad,
#hero-acerca .hero-acerca-desc {
    font-size: 1rem;
}

#hero-acerca .hero-acerca-actions {
    flex-direction: column;
}

#hero-acerca .btn-primary,
#hero-acerca .btn-outline {
    width: 100%;
    padding: 0.875rem 1.5rem;
}

#hero-acerca .hero-acerca-image-wrap {
    min-height: unset;
    justify-content: center;
    align-items: center;
}

/* ── TRAYECTORIA ─────────────────────────────────────────── */
#trayectoria .trayectoria-grid {
    grid-template-columns: 1fr;
}

#trayectoria .trayectoria-title {
    font-size: 1.5rem;
}

/* ── CREDENCIALES ────────────────────────────────────────── */
#credenciales .credenciales-grid {
    grid-template-columns: 1fr;
}

#credenciales .credenciales-title {
    font-size: 1.5rem;
}

/* ── DIPLOMAS ────────────────────────────────────────────── */
#diplomas .diplomas-grid {
    grid-template-columns: 1fr;
}

#diplomas .diplomas-title {
    font-size: 1.5rem;
}

/* ── ¿POR QUÉ CONFIAR? ───────────────────────────────────── */
#porque-confiar .porque-confiar-grid {
    grid-template-columns: 1fr;
}

#porque-confiar .porque-confiar-title {
    font-size: 1.5rem;
}

/* ── HERO TRATAMIENTO N1 ─────────────────────────────────── */
#hero-tn1 {
    min-height: unset;
}

#hero-tn1::before {
    background: linear-gradient(to bottom, var(--white) 50%, transparent 90%);
}

#hero-tn1 .hero-tn1-inner {
    min-height: unset;
    padding-top: 15px;
    padding-bottom: 15px;
}

#hero-tn1 .hero-tn1-content {
    max-width: 100%;
}

#hero-tn1 .hero-tn1-title {
    font-size: 2rem;
}

#hero-tn1 .hero-tn1-desc,
#hero-tn1 .hero-tn1-desc p {
    font-size: 1rem;
}

#hero-tn1 .hero-tn1-actions {
    flex-direction: column;
}

#hero-tn1 .btn-primary,
#hero-tn1 .btn-outline {
    width: 100%;
    padding: 0.875rem 1.5rem;
}


/* ── INTRO TRATAMIENTO N1 ────────────────────────────────── */
#intro-tn1 .intro-tn1-cols {
    grid-template-columns: 1fr;
}

#intro-tn1 .intro-tn1-title {
    font-size: 1.5rem;
}

#intro-tn1 .intro-tn1-banner {
    aspect-ratio: 16 / 9;
}

/* ── TRATAMIENTOS HIJOS ──────────────────────────────────── */
#tratamientos-hijos .trat-hijos-grid {
    grid-template-columns: 1fr;
}

#tratamientos-hijos .trat-hijos-title {
    font-size: 1.5rem;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb-list {
    gap: 0.2rem;
}

/* ── HERO TRATAMIENTO N2 ─────────────────────────────────── */
#hero-tn2 .hero-tn2-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#hero-tn2 .hero-tn2-img {
    order: -1;
}

#hero-tn2 .hero-tn2-title {
    font-size: 2rem;
}

#hero-tn2 .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
}

/* ── DETALLE TRATAMIENTO N2 ──────────────────────────────── */
#detalle-tn2 .detalle-tn2-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
}
 
#detalle-tn2 .detalle-tn2-video-wrap {
    margin: 0 auto;
    max-width: 340px;
    width: 100%;
}
 
#detalle-tn2 .detalle-tn2-titulo {
    font-size: 1.5rem;
}
 
#detalle-tn2 .detalle-tn2-thumb {
    max-height: 420px;
    width: 100%;
}

/* ── ¿EN QUÉ CONSISTE? ───────────────────────────────────── */
#consiste-tn2 .consiste-tn2-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
}

#consiste-tn2 .consiste-tn2-titulo {
    font-size: 1.5rem;
}

/* ── ¿PARA QUIÉN ESTÁ INDICADO? ─────────────────────────── */
#indicado-tn2 .indicado-tn2-grid {
    grid-template-columns: repeat(2, 1fr);
}

#indicado-tn2 .indicado-tn2-titulo {
    font-size: 1.5rem;
}
/* ── PASO A PASO ─────────────────────────────────────────── */
#pasos-tn2 .pasos-tn2-grid {
    grid-template-columns: repeat(2, 1fr);
}

#pasos-tn2 .pasos-tn2-titulo {
    font-size: 1.5rem;
}

/* ── ¿POR QUÉ ELEGIRNOS? ────────────────────────────────── */
#porque-tn2 .porque-tn2-grid {
    grid-template-columns: 1fr;
}

#porque-tn2 .porque-tn2-titulo {
    font-size: 1.5rem;
}

/* ── PREGUNTAS FRECUENTES ────────────────────────────────── */
#faqs-tn2 .faqs-grid {
    grid-template-columns: 1fr;
}

#faqs-tn2 .faqs-tn2-titulo {
    font-size: 1.5rem;
}

/* ── HERO BLOG ───────────────────────────────────────────── */
#hero-blog .hero-blog-titulo {
    font-size: 2.25rem;
}

#hero-blog .hero-blog-desc {
    font-size: 1rem;
}

/* ── POST DESTACADO ──────────────────────────────────────── */
#blog-featured .blog-featured-card {
    grid-template-columns: 1fr;
}

#blog-featured .blog-featured-img {
    aspect-ratio: 16 / 9;
}

#blog-featured .blog-featured-body {
    padding: 1.5rem;
}

#blog-featured .blog-featured-titulo {
    font-size: 1.35rem;
}

#blog-featured .blog-featured-cta {
    width: 100%;
    justify-content: center;
}

/* ── GRID DE POSTS ───────────────────────────────────────── */
#blog-grid .blog-grid-posts {
    grid-template-columns: 1fr;
}

/* ── PAGINADOR ───────────────────────────────────────────── */
#blog-grid .blog-pag-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
}

/* ── SINGLE POST ─────────────────────────────────────────── */
#hero-single .single-titulo {
    font-size: 1.75rem;
}

#hero-single .single-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

#hero-single .single-featured-img {
    aspect-ratio: 16 / 9;
}

#single-content .single-body h2 {
    font-size: 1.35rem;
}

#single-content .single-body h3 {
    font-size: 1.15rem;
}

/* ── SINGLE POST ─────────────────────────────────────────── */
#hero-single .single-titulo {
    font-size: 1.75rem;
}

#hero-single .single-meta {
    flex-direction: column;
    align-items: flex-start;
}

#hero-single .single-featured-img {
    aspect-ratio: 16 / 9;
}

#single-content .single-content-inner {
    grid-template-columns: 1fr;
}

#single-content .single-sidebar {
    position: static;
}

#single-content .single-body h1 { font-size: 1.5rem;  }
#single-content .single-body h2 { font-size: 1.3rem;  }
#single-content .single-body h3 { font-size: 1.15rem; }
#single-content .single-body h4 { font-size: 1.05rem; }

#single-content .single-share {
    flex-direction: column;
    align-items: flex-start;
}