/*
Theme Name: i-Smile Dental Design Studio
Theme URI: https://ismilestudio.com/
Author: Medical Strategy Studio
Description: Custom theme — i-Smile Dental Design Studio
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ismilestudio
*/

/* ============================================================
   IMPORTS
   ============================================================ */
@import url('css/reset.css?t=8');
@import url('css/tokens.css?t=8');

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: var(--radius-full); }

/* ============================================================
   BASE — desktop first (sin media query)
   ============================================================ */

/* ── Contenedor ──────────────────────────────────────────────
   Mismo nombre/uso que en los demás proyectos; ahora referencia
   los tokens en vez de valores sueltos. */
.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--px);
    padding-right: var(--px);
    width: 100%;
}

/* ── Formas decorativas del mockup ───────────────────────────
   Se quedaron como utilidades del theme en vez de <style> inline
   porque se reutilizan en hero y posiblemente otras secciones. */
.hero-shape {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.blob-shape {
    border-radius: 41% 59% 46% 54% / 41% 51% 49% 59%;
}

/* ── WhatsApp flotante ───────────────────────────────────────
   Posición fija; el icono/link lo imprime render_global_wa_chicklet(). */
#wa-chicklet {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--green-500);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-2xl);
    animation: wa-pulse 2s infinite;
    transition: transform var(--transition);
}
#wa-chicklet:hover {
    transform: scale(1.1);
}

@keyframes wa-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

/* ============================================================
   TOPBAR
   ============================================================ */
#topbar {
    background: var(--secondary);
    color: var(--white-70);
    font-size: var(--text-small);
    padding: var(--space-2) var(--px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-info { display: flex; align-items: center; gap: var(--space-6); }
.topbar-info i { margin-right: var(--space-2); color: var(--white-70); }
.topbar-social { display: flex; align-items: center; gap: var(--space-4); }
.topbar-social a { color: var(--white-70); transition: color var(--transition); }
.topbar-social a:hover { color: var(--primary); }

/* ============================================================
   HEADER
   ============================================================ */
#header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white-95);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-bottom: 1px solid var(--gray-100);
}
.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-brand a { display: flex; align-items: center; gap: var(--space-2); }
.header-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: var(--fw-bold);
    color: var(--secondary);
}
.header-logo-img { height: 40px; width: auto; }
.header-menu { display: flex; align-items: center; gap: var(--space-8); }
.header-menu a {
    color: var(--text-main);
    font-weight: var(--fw-medium);
    transition: color var(--transition);
}
.header-menu a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--fw-medium);
    box-shadow: 0 10px 15px -3px var(--primary-20);
    transition: background var(--transition);
}
.header-cta:hover { background: var(--primary-dark); }
.header-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}
.header-hamburger span {
    display: block;
    height: 2px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    background: #E8F3F1;
    padding: 8rem 0 12rem;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.background-hero-right{
    position: absolute;
    background-color: rgb(0 128 128 / 0.05);
    width: 50%;
    height: 100%;
    right: 0;
    top: 0;
}
.hero-content { max-width: 38rem; }
.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--white-80);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-size: var(--text-small);
    font-weight: var(--fw-semibold);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}
.hero-badge i { color: #FBBF24; }
.hero-title {
    font-size: var(--text-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-6);
}
.hero-title span { color: var(--primary); }
.hero-desc {
    font-size: var(--text-lead);
    color: var(--text-main);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-4); margin-bottom: var(--space-10); flex-wrap: wrap; }
.btn-primary, .btn-outline, .btn-secondary, .btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: var(--fw-semibold);
    transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 20px 25px -5px var(--primary-30); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary.btn-sm { padding: var(--space-3) var(--space-6); font-size: var(--text-small); }
.btn-outline { border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-card {
    background: var(--white);
    color: var(--secondary);
    padding: var(--space-3) var(--space-6);
    width: fit-content;
}
.btn-card:hover { background: var(--primary); color: var(--white); }

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}
.hero-trust-item { display: flex; align-items: center; gap: var(--space-3); }
.hero-trust-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
}
.hero-trust-stat { font-weight: var(--fw-bold); color: var(--secondary); }
.hero-trust-label { font-size: var(--text-caption); color: var(--text-main); }

.hero-media { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; }
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
}
.hero-review-card {
    position: absolute;
    bottom: -1.5rem; left: -1.5rem;
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    animation: bounce 1s infinite;
    animation-duration: 3s;
}
.hero-review-avatars { display: flex; }
.hero-review-avatars img { margin-left: -10px; }
.hero-review-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--white);
    object-fit: cover;
}
.hero-review-stars { color: #FBBF24; font-size: var(--text-small); display: flex; gap: 2px; }
.hero-review-label { font-size: var(--text-caption); font-weight: var(--fw-bold); color: var(--secondary); }

/* ============================================================
   TRUST BAR
   ============================================================ */
#trust-bar {
    background: var(--secondary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 72rem;
    margin: -3rem auto 0;
    position: relative;
    z-index: 20;
    padding: var(--space-8);
}
.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}
.trust-bar-item {
    text-align: center;
    padding: 0 var(--space-4);
    border-left: 1px solid var(--white-10);
}
.trust-bar-item:first-child { border-left: none; }
.trust-bar-item i { font-size: 1.5rem; color: var(--primary); margin-bottom: var(--space-3); display: block; }
.trust-bar-item h3 { color: var(--white); font-size: var(--text-small); font-weight: var(--fw-semibold); font-family: var(--font-body); }
.trust-bar-item p { color: var(--white-70); font-size: var(--text-caption); margin-top: var(--space-1); }

/* ============================================================
   SEO CONTENT
   ============================================================ */
#seo-content { padding: var(--section-py) 0; }
.section-intro { text-align: center; max-width: 48rem; margin: 0 auto var(--space-16); }
.section-intro h2, .section-intro h3 {
    font-size: var(--text-h2);
    font-weight: var(--fw-bold);
    color: var(--secondary);
    margin-bottom: var(--h2-titles-mb);
    line-height: 2.8rem;
}
.section-intro--narrow { max-width: 48rem; margin: 0 auto var(--space-16); text-align: center; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    font-size: var(--text-eyebrow);
    margin-bottom: var(--space-3);
}
.lead { font-size: var(--text-lead); color: var(--text-main); margin-bottom: var(--space-4); }
.seo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.seo-col { display: flex; flex-direction: column; gap: var(--space-5); }
.seo-col p { font-size: var(--text-body); color: var(--text-main); line-height: var(--lh-relaxed); }

/* ============================================================
   SERVICIOS
   ============================================================ */
#servicios { padding: var(--section-py) 0; background: var(--surface-alt); }
.serv-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-16);
}
.serv-premium-card {
    position: relative;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition);
}
.serv-premium-card:hover { transform: translateY(-8px); }
.serv-premium-img { height: 400px; overflow: hidden; }
.serv-premium-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.serv-premium-card:hover .serv-premium-img img { transform: scale(1.05); }
.serv-premium-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--secondary-90), var(--secondary-40), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-8);
}
.serv-premium-icon {
    width: fit-content;
    background: var(--white-20);
    backdrop-filter: blur(4px);
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    color: var(--white);
    font-size: var(--text-h4);
}
.serv-premium-overlay h4 { font-size: var(--text-h3); font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--white); margin-bottom: var(--space-3); }
.serv-premium-overlay p { color: var(--white-80); margin-bottom: var(--space-6); }

.ci-card {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: var(--space-10) var(--space-12);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-xl);
}
.ci-card-header { max-width: 42rem; margin-bottom: var(--space-10); }
.ci-card-header .section-badge {
    background: var(--primary-10);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}
.ci-card-header h4 { font-size: var(--text-h3); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-4); }
.ci-card-header p { color: var(--text-main); line-height: var(--lh-relaxed); }
.ci-items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.ci-item {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    cursor: pointer;
}
.ci-item:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.ci-item-img { height: 12rem; overflow: hidden; }
.ci-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ci-item:hover .ci-item-img img { transform: scale(1.05); }
.ci-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--secondary-85), var(--secondary-30), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-5);
}
.ci-item-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-lg);
    background: var(--white-20);
    backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    margin-bottom: var(--space-3);
}
.ci-item-overlay h5 { font-family: var(--font-body); color: var(--white); font-weight: var(--fw-bold); font-size: var(--text-body); line-height: var(--lh-snug); }
.ci-item-overlay p {color: var(--white-70); font-size: var(--text-caption); margin-top: var(--space-1); }
.ci-cta-row {
    margin-top: var(--space-8);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-4);
}
.ci-cta-row p { color: var(--text-main); font-size: var(--text-small); }

/* ============================================================
   GALERÍA
   ============================================================ */
#galeria { padding: var(--section-py) 0; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.gal-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}
.gal-card:hover { box-shadow: var(--shadow-xl); }
.gal-card-img { position: relative; }
.gal-card-img img { width: 100%; height: 16rem; object-fit: cover; }
.gal-card-tag {
    position: absolute; top: var(--space-4); left: var(--space-4);
    background: var(--white-90);
    backdrop-filter: blur(2px);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    color: var(--secondary);
}
.gal-card-body { padding: var(--space-6); }
.gal-card-body h4 { font-family: var(--font-body); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-2); }
.gal-card-body p { font-size: var(--text-small); color: var(--text-main); }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
#por-que-elegirnos { padding: var(--section-py) 0; }
.pqe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.pqe-media { position: relative; }
.pqe-foto {
    width: 100%; height: 600px; object-fit: cover;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    transform: rotate(-1deg);
}
.pqe-foto-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, var(--secondary-95), transparent);
    padding: var(--space-8);
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
}
.pqe-foto-overlay h4 { color: var(--white); font-size: var(--text-h4); font-weight: var(--fw-bold); margin-bottom: var(--space-2); }
.pqe-foto-overlay p { color: var(--white-80); font-size: var(--text-small); }
.pqe-stat-badge {
    position: absolute; top: -1.5rem; right: -1.5rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    display: flex; align-items: center; gap: var(--space-3);
}
.pqe-stat-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-h4);
}
.pqe-stat-numero { font-size: var(--text-h3); font-weight: var(--fw-bold); color: var(--secondary); }
.pqe-stat-label { font-size: var(--text-caption); color: var(--text-main); }
.pqe-content .section-badge {
    background: var(--primary-10);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}
.pqe-content h2 { font-size: var(--text-h1); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-6); }
.pqe-content .lead { margin-bottom: var(--space-10); }
.pqe-beneficios { display: flex; flex-direction: column; gap: var(--space-6); }
.pqe-beneficio { display: flex; gap: var(--space-4); align-items: flex-start; }
.pqe-beneficio-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: var(--radius-xl);
    background: var(--primary-10);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-h4);
    transition: all var(--transition);
}
.pqe-beneficio:hover .pqe-beneficio-icon { background: var(--primary); color: var(--white); }
.pqe-beneficio h4 { font-family: var(--font-body) ; font-size: var(--text-body); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-2); }
.pqe-beneficio p { font-size: var(--text-small); color: var(--text-main); line-height: var(--lh-relaxed); }
.pqe-cta { margin-top: var(--space-10); }

/* ============================================================
   METODOLOGÍA
   ============================================================ */
#metodologia { padding: var(--section-py) 0; background: var(--secondary); color: var(--white); position: relative; overflow: hidden; }
.met-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; position: relative; z-index: 1; }
.met-content .section-badge { color: var(--primary); }
.met-content h3 { font-size: var(--text-h2); font-weight: var(--fw-bold); color: var(--white); margin-bottom: var(--space-6); line-height: 1em;}
.met-content .lead { color: var(--white-80); margin-bottom: var(--space-10); }
.met-pasos { display: flex; flex-direction: column; gap: var(--space-6); }
.met-paso { display: flex; gap: var(--space-4); }
.met-paso-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.met-paso h4 { font-family: var(--font-body); font-size: var(--text-h4); font-weight: var(--fw-bold); color: var(--white); margin-bottom: var(--space-2); }
.met-paso p { color: var(--white-70); font-size: var(--text-small); }
.met-media img { width: 100%; height: auto; max-height: 24rem; object-fit: contain; border-radius: var(--radius-2xl); }

/* ============================================================
   TESTIMONIOS GOOGLE
   ============================================================ */
#testimonios-google { padding: var(--section-py) 0; background: var(--surface-alt); }
.testi-rating { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
.testi-rating-stars { color: #FBBF24; font-size: 1.4rem; display: flex; gap: 2px; }
.testi-rating-num { font-size: var(--text-h4); font-weight: var(--fw-bold); color: var(--secondary); margin-left: var(--space-2); }
.testi-rating-total { color: var(--text-main); margin-left: var(--space-2); }
.testi-carousel { position: relative; }
.testi-track-wrap { overflow: hidden;  width: 100%; }
.testi-grid { display: flex; gap: 0; will-change: transform; cursor: grab; }
.testi-grid:active { cursor: grabbing; }
.testi-card { background: var(--white); border-radius: var(--radius-2xl); padding: var(--space-6); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); padding-right: var(--space-3); padding-left: var(--space-3); box-sizing: border-box; }
.testi-card:hover { box-shadow: var(--shadow-xl); }
.testi-card-header { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.testi-avatar { width: 56px; height: 56px; border-radius: var(--radius-full); object-fit: cover; border: 2px solid var(--primary-20); }
.testi-card-header h4 { font-weight: var(--fw-bold); color: var(--secondary); }
.testi-stars { color: #FBBF24; font-size: var(--text-small); display: flex; gap: 1px; }
.testi-texto { font-size: var(--text-small); color: var(--text-main); line-height: var(--lh-relaxed); margin-bottom: var(--space-4); }
.testi-meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-caption); color: var(--text-light); }
.testi-meta i { color: var(--primary); }
.testi-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    z-index: 10;
    transition: all var(--transition);
}
.testi-nav:hover { background: var(--primary); color: var(--white); }
.testi-nav--prev { left: -1rem; }
.testi-nav--next { right: -1rem; }
.testi-dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.carousel-dot { width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--gray-200); transition: background var(--transition); }
.carousel-dot.is-active, .carousel-dot.bg-primary { background: var(--primary); }
.testi-cta { text-align: center; margin-top: var(--space-12); }
.testi-cta a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--primary); font-weight: var(--fw-semibold); }
.testi-cta a:hover { color: var(--primary-dark); }

/* ============================================================
   INSTALACIONES
   ============================================================ */
#instalaciones { padding: var(--section-py) 0; }
.inst-card { background: var(--surface-alt); border-radius: var(--radius-3xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.inst-card { display: grid; grid-template-columns: 1fr 1fr; }
.inst-content { padding: var(--space-20); display: flex; flex-direction: column; justify-content: center; }
.inst-content .section-badge {
    background: var(--primary-10);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: var(--space-6);
}
.inst-content h2 { font-size: var(--text-h2); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-6); }
.inst-content .lead { margin-bottom: var(--space-6); }
.inst-content > p:not(.lead) { color: var(--text-main); margin-bottom: var(--space-8); }
.inst-checklist { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-10); }
.inst-checklist li { display: flex; align-items: flex-start; gap: var(--space-3); }
.inst-checklist i { color: var(--primary); margin-top: 0.2rem; }
.inst-checklist span { color: var(--text-dark); font-weight: var(--fw-medium); }
.inst-media { position: relative; min-height: 600px; display: grid; grid-template-rows: 1fr 1fr; gap: var(--space-4); padding: var(--space-6); }
.inst-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); }

/* ============================================================
   CONTACTO (global — usado por render_global_contacto())
   ============================================================ */
#contacto { padding: var(--section-py) 0; background: var(--surface-alt); }
.contacto-header { text-align: center; margin-bottom: var(--space-12); }
.contacto-title { font-size: var(--text-h2); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--h2-titles-mb); }
.contacto-desc { color: var(--text-main); font-size: var(--text-lead); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.contacto-form-card { background: var(--white); border-radius: var(--radius-3xl); padding: var(--space-8) var(--space-12); box-shadow: var(--shadow-xl); }
.contacto-form-card input, .contacto-form-card select, .contacto-form-card textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    font-family: var(--font-body);
    transition: border-color var(--transition);
}
.contacto-form-card input:focus, .contacto-form-card select:focus, .contacto-form-card textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.contacto-form-card label { display: block; font-size: var(--text-small); font-weight: var(--fw-semibold); color: var(--secondary); margin-bottom: var(--space-2); }
.contacto-aside { display: flex; flex-direction: column; gap: var(--space-5); }
.contacto-map-wrap { flex: 1;
    min-height: 0; position: relative; min-height: 240px; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.contacto-map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.contacto-info-card { background: var(--white); border-radius: var(--radius-2xl); padding: var(--space-6); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--space-4); }
.contacto-info-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.contacto-info-icon { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary-10); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contacto-info-texto { display: flex; flex-direction: column; font-size: var(--text-small); color: var(--text-main); }
.contacto-info-titulo { font-weight: var(--fw-bold); color: var(--secondary); }
.contacto-redes { border-top: 1px solid var(--gray-100); padding-top: var(--space-4); }
.contacto-redes-titulo { font-size: var(--text-small); color: var(--text-main); display: block; margin-bottom: var(--space-3); }
.contacto-redes-icons { display: flex; gap: var(--space-3); }
.contacto-red-icon { width: 36px; height: 36px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--white); }
.contacto-wa-card { background: var(--green-500); border-radius: var(--radius-2xl); padding: var(--space-5); display: flex; align-items: center; gap: var(--space-4); color: var(--white); }
.contacto-wa-icon { font-size: 1.75rem; }
.contacto-wa-texto { display: flex; flex-direction: column; flex: 1; }
.contacto-wa-titulo { font-weight: var(--fw-bold); }
.contacto-wa-sub { font-size: var(--text-caption); opacity: 0.85; }
.contacto-wa-btn { background: var(--white); color: var(--green-600); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); font-size: var(--text-small); font-weight: var(--fw-semibold); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: #002b24; color: var(--white); padding: var(--space-20) 0 var(--space-10); }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-12); margin-bottom: var(--space-16); }
#footer .header-logo-text { color: var(--white); font-size: var(--text-h4); }
.footer-desc { color: var(--white-60); font-size: var(--text-small); line-height: var(--lh-relaxed); margin: var(--space-6) 0; }
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--white-10); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-col-titulo { color: var(--white); font-size: var(--text-body); font-weight: var(--fw-bold); margin-bottom: var(--space-6); font-family: var(--font-body);}
.footer-nav ul, .footer-contacto-list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav a { color: var(--white-70); font-size: var(--text-small); transition: color var(--transition); }
.footer-nav a:hover { color: var(--primary); }
.footer-contacto-list li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--white-70); font-size: var(--text-small); }
.footer-contacto-list a { color: var(--white-70); }
.footer-contacto-list a:hover { color: var(--primary); }
.footer-contacto-list i { color: var(--primary); margin-top: 0.2rem; }
.footer-bottom { border-top: 1px solid var(--white-10); padding-top: var(--space-8); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: var(--text-small); color: var(--white-50); flex-wrap: wrap; }
.footer-legal { display: flex; gap: var(--space-6); }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   BREADCRUMB (páginas internas, no se usa en home)
   ============================================================ */
.bc-wrap { background: var(--surface-alt); padding: var(--space-4) 0; }
.bc-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--px); display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); }
.bc-link { color: var(--text-main); }
.bc-link:hover { color: var(--primary); }
.bc-current { color: var(--secondary); font-weight: var(--fw-medium); }
.bc-sep { color: var(--text-light); font-size: 0.7rem; }

/* ── CF7 wrappers ─────────────────────────────────────────── */
.wpcf7 { width: 100%; }
.wpcf7-form { display: flex; flex-direction: column; gap: var(--space-5); }

.cf7-row { display: flex; flex-direction: column; gap: var(--space-2); }
.cf7-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.cf7-submit { margin-top: var(--space-2); }

/* inputs, select, textarea ya tienen estilos base en .contacto-form-card,
   estos cubren los wrappers span que CF7 agrega alrededor */
.wpcf7-form-control-wrap { display: block; width: 100%; }

.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: var(--text-body);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap select:focus,
.wpcf7-form-control-wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.wpcf7-form-control-wrap textarea { resize: vertical; min-height: 120px; }

/* Select: flecha custom */
.wpcf7-form-control-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23004d40' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
    cursor: pointer;
}

/* Botón submit */
.wpcf7-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    border: none;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}
.wpcf7-submit:hover { background: var(--primary-dark); }

/* Mensajes de validación y respuesta */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: var(--text-small);
    margin-top: var(--space-1);
    display: block;
}
.ch-contacto-form-card .wpcf7-validation-errors,
.ch-contacto-form-card .wpcf7-spam-blocked, 
.ch-contacto-form-card  .wpcf7-not-valid-tip{ color: #fca5a5; }
.wpcf7-form-control-wrap:has(input.wpcf7-not-valid) input,
.wpcf7-form-control-wrap:has(select.wpcf7-not-valid) select,
.wpcf7-form-control-wrap:has(textarea.wpcf7-not-valid) textarea {
    border-color: #dc2626;
}
.wpcf7-response-output {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    font-size: var(--text-small);
    margin-top: var(--space-2);
    border: none !important;
}
.wpcf7-mail-sent-ok { background: #dcfce7; color: #166534; }
.wpcf7-validation-errors,
.wpcf7-spam-blocked { background: #fee2e2; color: #991b1b; }
/* ============================================================
   ABOUT US
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────── */
.about-header {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.about-header-bg {
    position: absolute; inset: 0;
    background-color: var(--secondary);
    background-size: cover;
    background-position: center;
}
.about-header-overlay {
    position: absolute; inset: 0;
    background: var(--secondary-90);
}
.about-header-content {
    position: relative; z-index: 1;
}
.about-page-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--white-10);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-size: var(--text-small);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-6);
}
.about-header-title {
    font-size: var(--text-display);
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-6);
}
.about-header-title span { color: var(--primary); }
.about-header-desc {
    color: var(--white-80);
    font-size: var(--text-lead);
    max-width: 40rem;
    line-height: var(--lh-relaxed);
}

/* ── Filosofía ───────────────────────────────────────────── */
#filosofia { padding: var(--section-py) 0; background: var(--surface); }
.fil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.fil-media { position: relative; }
.fil-media-deco {
    position: absolute;
    top: -1.5rem; left: -1.5rem;
    width: 100%; height: 100%;
    background: var(--primary-10);
    border-radius: var(--radius-3xl);
    transform: rotate(2deg);
    z-index: 0;
}
.fil-media-img {
    position: relative;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    height: 600px;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
}
.fil-media-img img { width: 100%; height: 100%; object-fit: cover; }
.fil-media-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, var(--secondary-95), transparent);
    padding: var(--space-8);
    display: flex; align-items: center; gap: var(--space-4);
}
.fil-ov-icon {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--white-20);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}
.fil-media-overlay h4 { font-size: var(--text-h4); font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--white); margin-bottom: var(--space-1); }
.fil-media-overlay p  { color: var(--white-80); font-size: var(--text-small); }
.fil-content .section-badge {
    background: var(--primary-10);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}
.fil-content h2 { font-size: var(--text-h1); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-6); }
.fil-content .lead { margin-bottom: var(--space-10); }
.fil-items { display: flex; flex-direction: column; gap: var(--space-6); }
.fil-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.fil-item-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--radius-xl);
    background: var(--primary-10);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.fil-item h4 { font-family: var(--font-body); font-size: var(--text-body); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-2); }
.fil-item p  { font-size: var(--text-small); color: var(--text-main); line-height: var(--lh-relaxed); }

/* ── Equipo ──────────────────────────────────────────────── */
#equipo { padding: var(--section-py) 0; background: var(--surface-alt); }
.eq-cards { display: flex; flex-direction: column; gap: var(--space-10); }
.eq-card {
    background: var(--white);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 2fr 3fr;
    transition: box-shadow var(--transition);
}
.eq-card:hover { box-shadow: var(--shadow-2xl); }
.eq-card--reverse { grid-template-columns: 3fr 2fr; }
.eq-card--reverse .eq-card-img { order: 2; }
.eq-card--reverse .eq-card-body { order: 1; }
.eq-card-img { position: relative; min-height: 400px; overflow: hidden; }
.eq-card-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s;
}
.eq-card:hover .eq-card-img img { transform: scale(1.05); }
.eq-card-img-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, var(--secondary-90), transparent);
    padding: var(--space-6);
    color: var(--white);
}
.eq-cargo {
    font-size: var(--text-eyebrow);
    font-weight: var(--fw-semibold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    margin-bottom: var(--space-1);
}
.eq-card-img-overlay h3 { font-size: var(--text-h3); font-family: var(--font-display); font-weight: var(--fw-bold); margin-bottom: var(--space-1); color: var(--white) }
.eq-card-img-overlay p { color: var(--white); font-size: var(--text-small); }
.eq-card-body {
    padding: var(--space-10) var(--space-12);
    display: flex; flex-direction: column; justify-content: center;
    gap: var(--space-6);
}
.eq-bio { color: var(--text-main); line-height: var(--lh-relaxed); }
.eq-section h4 {
    display: flex; align-items: center; gap: var(--space-2);
    font-weight: var(--fw-bold); font-family: var(--font-body); color: var(--secondary);
    margin-bottom: var(--space-3);
}
.eq-section h4 i { color: var(--primary); }
.eq-section ul { display: flex; flex-direction: column; gap: var(--space-2); }
.eq-section ul li {
    display: flex; align-items: flex-start; gap: var(--space-3);
    font-size: var(--text-small); color: var(--text-main);
}
.eq-section ul li i { color: var(--primary); font-size: 0.7rem; margin-top: 0.3rem; flex-shrink: 0; }
.eq-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.eq-tags span {
    padding: var(--space-1) var(--space-3);
    background: var(--surface-alt);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-caption);
    font-weight: var(--fw-medium);
    color: var(--secondary);
}

/* ── Tecnología ──────────────────────────────────────────── */
#tecnologia { padding: var(--section-py) 0; background: var(--surface); }
.tec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.tec-content .section-badge {
    background: var(--primary-10);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}
.tec-content h2 { font-size: var(--text-h1); font-weight: var(--fw-bold); color: var(--secondary); margin-bottom: var(--space-6); }
.tec-content .lead { margin-bottom: var(--space-8); }
.tec-checklist { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-10); }
.tec-checklist li { display: flex; align-items: center; gap: var(--space-3); }
.tec-check-icon {
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
}
.tec-checklist span { font-weight: var(--fw-medium); color: var(--text-dark); }

/* Slider */
.tec-slider {
    position: relative;
    height: 600px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: var(--gray-100);
}
.tec-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.tec-slide.is-active { opacity: 1; pointer-events: auto; }
.tec-slide img { width: 100%; height: 100%; object-fit: cover; }
.tec-slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, var(--secondary-90), transparent);
    padding: var(--space-8);
}
.tec-slide-overlay h4 { font-size: var(--text-h4); font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--white); margin-bottom: var(--space-2); }
.tec-slide-overlay p  { color: var(--white-80); font-size: var(--text-small); }
.tec-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: var(--white-90);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: all var(--transition);
}
.tec-nav:hover { background: var(--white); }
.tec-nav--prev { left: var(--space-4); }
.tec-nav--next { right: var(--space-4); }
.tec-dots {
    position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
    display: flex; gap: var(--space-2); z-index: 10;
}
.tec-dot {
    width: 12px; height: 12px;
    border-radius: var(--radius-full);
    background: var(--white-50);
    transition: background var(--transition);
}
.tec-dot.is-active { background: var(--white); }

/* ============================================================
   SERVICE PAGE (template reutilizable)
   ============================================================ */

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: var(--fw-medium);
    background: var(--white-10);
    backdrop-filter: blur(4px);
    border: 1px solid var(--white-20);
    color: var(--white);
    transition: background var(--transition);
}
.btn-ghost:hover { background: var(--white-20); }

.srv-divider { width: 80px; height: 4px; background: var(--primary); margin: 0 auto; border-radius: var(--radius-full); }

/* ── Hero ─────────────────────────────────────────────────── */
.srv-hero { position: relative; height: 850px; display: flex; align-items: center; overflow: hidden; }
.srv-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.srv-hero-bg--fallback { background-color: var(--secondary); }
.srv-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--secondary-95), var(--secondary-30) 60%, var(--secondary-10)); }
.srv-hero-content { position: relative; z-index: 1; padding-top: var(--space-20); }
.srv-hero-inner { max-width: 56rem; }
.srv-hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--white-20);
    backdrop-filter: blur(8px);
    border: 1px solid var(--white-20);
    color: var(--white);
    font-size: var(--text-caption);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    margin-bottom: var(--space-8);
}
.srv-hero-title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--fw-medium);
    line-height: var(--lh-tight);
    color: var(--white);
    margin-bottom: var(--space-6);
}
.srv-hero-title em { font-style: italic; font-weight: var(--fw-light); }
.srv-hero-desc { color: var(--white-90); font-size: var(--text-lead); line-height: var(--lh-relaxed); max-width: 34rem; margin-bottom: var(--space-10); }
.srv-hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ── Proceso (SEO) ────────────────────────────────────────── */
.srv-proceso { padding: var(--section-py) 0; background: var(--white); }
.srv-proceso .section-intro { margin-bottom: var(--space-20); }
.srv-proceso .section-intro h2 { font-size: var(--text-h1); margin-bottom: var(--space-6); }

/* ── Servicios (grid visual) ──────────────────────────────── */
.srv-grid-section { padding: var(--section-py) 0; background: var(--surface-alt); }
.srv-grid-header {
    display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6);
    margin-bottom: var(--space-6); flex-wrap: wrap;
}
.srv-grid-header h2 { font-size: var(--text-h1); font-weight: var(--fw-bold); color: var(--secondary); }
.srv-grid-desc { color: var(--text-main); max-width: 22rem; text-align: right; }
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.srv-grid-card {
    position: relative;
    height: 600px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
}
.srv-grid-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.srv-grid-card:hover .srv-grid-card-bg { transform: scale(1.05); }
.srv-grid-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--secondary-95), var(--secondary-20) 60%, transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-8);
}
.srv-grid-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background: var(--white-20);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    margin-bottom: var(--space-6);
}
.srv-grid-card-overlay h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: var(--fw-medium); color: var(--white); margin-bottom: var(--space-3); }
.srv-grid-card-overlay p { color: var(--white-80); font-size: var(--text-small); line-height: var(--lh-relaxed); margin-bottom: var(--space-2); }
.srv-grid-cta {
    background: var(--primary);
    border-radius: var(--radius-3xl);
    height: 600px;
    padding: var(--space-8);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}
.srv-grid-cta i { font-size: 3rem; margin-bottom: var(--space-6); opacity: 0.8; }
.srv-grid-cta h3 { font-family: var(--font-display); font-size: var(--text-h3); color: var(--white); margin-bottom: var(--space-4); }
.srv-grid-cta p { color: var(--white-80); max-width: 18rem; margin-bottom: var(--space-8); }
.srv-grid-cta-btn { background: var(--white); color: var(--primary); padding: var(--space-3) var(--space-8); border-radius: var(--radius-full); font-weight: var(--fw-semibold); }
.srv-grid-cta-btn:hover { background: var(--surface-alt); }

/* ── Videos ───────────────────────────────────────────────── */
.srv-video-section { padding: var(--space-20) 0; background: var(--white); }
.srv-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); height: 500px; }
.srv-video-card {
    position: relative;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    padding: 0;
}
.srv-video-card img { width: 100%; height: 100%; object-fit: cover; }
.srv-video-card::before { content: ''; position: absolute; inset: 0; background: var(--secondary-20); z-index: 1; }
.srv-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: var(--white-90);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-xl);
    z-index: 2;
    transition: transform var(--transition);
}
.srv-video-card:hover .srv-video-play { transform: translate(-50%, -50%) scale(1.1); }

.srv-video-modal {
    position: fixed; inset: 0; z-index: 200;
    display: none;
    align-items: center; justify-content: center;
}
.srv-video-modal.is-open {
    display: flex;
}
.srv-video-modal-backdrop { position: absolute; inset: 0; background: var(--secondary-90); }
.srv-video-modal-box { position: relative; z-index: 1; width: 90%; max-width: 960px; }
.srv-video-modal-close {
    position: absolute; top: -3rem; right: 0;
    color: var(--white);
    font-size: 1.5rem;
    background: none; border: none; cursor: pointer;
}
.srv-video-modal-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-2xl); overflow: hidden; }
.srv-video-modal-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Galería (reusa .gal-grid / .gal-card del home) ───────── */
.srv-gal-section { padding: var(--section-py) 0; background: var(--white); }

/* ── FAQ ───────────────────────────────────────────────────── */
.srv-faq-section { padding: var(--section-py) 0; background: var(--surface-alt); }
.srv-faq-container { max-width: 64rem; }
.srv-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-12); }
.srv-faq-item { border-bottom: 1px solid var(--gray-200); padding-bottom: var(--space-4); }
.srv-faq-btn {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-4) 0;
    text-align: left;
    background: none; border: none; cursor: pointer;
}
.srv-faq-btn span { font-family: var(--font-display); font-size: var(--text-body); font-weight: var(--fw-medium); color: var(--secondary); }
.srv-faq-icon { color: var(--primary); font-size: 0.85rem; transition: transform var(--transition); flex-shrink: 0; margin-left: var(--space-4); }
.srv-faq-btn[aria-expanded="true"] .srv-faq-icon { transform: rotate(45deg); }
.srv-faq-content { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.srv-faq-content p { color: var(--text-main); font-size: var(--text-small); line-height: var(--lh-relaxed); padding-bottom: var(--space-4); }

/* ============================================================
   ESPECIALIDADES (page-specialties.php)
   ============================================================ */

/* ── Intro ───────────────────────────────────────────────── */
.spe-intro { padding: var(--section-py) 0; background: var(--white); }
.spe-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.spe-intro-content h2 {
    font-size: var(--text-h1);
    font-weight: var(--fw-bold);
    color: var(--secondary);
    margin-bottom: var(--space-6);
}
.spe-intro-lead {
    font-size: var(--text-h4);
    font-weight: var(--fw-light);
    color: var(--text-main);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-10);
}
.spe-intro-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}
.spe-intro-item-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.spe-intro-item h4 {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    color: var(--secondary);
    margin-bottom: var(--space-2);
}
.spe-intro-item p { color: var(--text-main); font-size: var(--text-small); }
.spe-intro-media {
    position: relative;
    height: 500px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}
.spe-intro-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.spe-intro-media:hover img { transform: scale(1.05); }

/* ── Cards grid ──────────────────────────────────────────── */
.spe-cards-section { padding: var(--section-py) 0; background: var(--surface-alt); }
.spe-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}
.spe-card {
    background: var(--white);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.spe-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}
.spe-card-img {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.spe-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.spe-card:hover .spe-card-img img { transform: scale(1.05); }
.spe-card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--secondary-60), transparent);
}
.spe-card-icon {
    position: absolute;
    bottom: var(--space-6); left: var(--space-6);
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background: var(--white-20);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}
.spe-card-body { padding: var(--space-8) var(--space-10); }
.spe-card-body h3 {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    color: var(--secondary);
    margin-bottom: var(--space-8);
    transition: color var(--transition);
}
.spe-card:hover .spe-card-body h3 { color: var(--primary); }
.spe-card-items { display: flex; flex-direction: column; gap: var(--space-5); }
.spe-card-item { display: flex; align-items: flex-start; gap: var(--space-4); }
.spe-card-item-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
    transition: background var(--transition), color var(--transition);
}

a.spe-card-item { text-decoration: none; color: inherit; }
a.spe-card-item:hover .spe-card-item-icon { background: var(--primary); color: var(--white); }
.spe-card-item span { font-weight: var(--fw-semibold); color: var(--text-dark); font-size: var(--text-body); }
.spe-card-item p { color: var(--text-main); font-size: var(--text-small); margin-top: var(--space-1); }
.spe-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    color: var(--primary);
    font-weight: var(--fw-semibold);
    font-size: var(--text-small);
    transition: gap var(--transition);
}
.spe-card:hover .spe-card-cta { gap: var(--space-3); }

/* ============================================================
   ESPECIALIDAD HIJO (page-specialty-child.php)
   ============================================================ */

/* ── Intro ───────────────────────────────────────────────── */
.ch-intro { padding: var(--section-py) 0; background: var(--white); }
.ch-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.ch-intro-media {
    position: relative;
    height: 500px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}
.ch-intro-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.ch-intro-media:hover img { transform: scale(1.05); }
.ch-intro-wysiwyg { margin-bottom: var(--space-8); }
.ch-intro-wysiwyg p {
    font-size: var(--text-lead);
    font-weight: var(--fw-light);
    color: var(--text-main);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-6);
}

/* ── Detalles ────────────────────────────────────────────── */
.ch-det { padding: var(--section-py) 0; background: var(--surface-alt); }
.ch-det-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}
.ch-det-card {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}
.ch-det-card-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-2xl);
    background: var(--primary-10);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
}
.ch-det-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    color: var(--secondary);
    margin-bottom: var(--space-6);
}
.ch-det-list { display: flex; flex-direction: column; gap: var(--space-4); }
.ch-det-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.ch-det-list i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.ch-det-list span { color: var(--text-main); font-size: var(--text-body); }
.ch-det-pasos { display: flex; flex-direction: column; gap: var(--space-6); }
.ch-det-paso { display: flex; gap: var(--space-4); align-items: flex-start; }
.ch-det-paso-num {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-small);
    font-weight: var(--fw-bold);
}
.ch-det-paso h4 { font-weight: var(--fw-bold); color: var(--text-dark); font-size: var(--text-small); margin-bottom: var(--space-1); }
.ch-det-paso p { color: var(--text-main); font-size: var(--text-small); }

/* ── FAQ ─────────────────────────────────────────────────── */
.ch-faq { padding: var(--section-py) 0; background: var(--white); }

/* ── Contacto dark (especialidad hijo) ───────────────────── */
.ch-contacto {
    padding: var(--section-py) 0 !important;
    background: var(--secondary) !important;
}
.ch-contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}
.ch-contacto-form-card {
    background: var(--white-10);
    backdrop-filter: blur(12px);
    border: 1px solid var(--white-20);
    border-radius: var(--radius-3xl);
    padding: var(--space-10) var(--space-12);
}
.ch-contacto-form-card h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    color: var(--white);
    margin-bottom: var(--space-8);
}
/* CF7 inputs con tema oscuro */
.ch-contacto-form-card .wpcf7-form { gap: var(--space-6); }
.ch-contacto-form-card label { color: var(--white); }
.ch-contacto-form-card .wpcf7-form-control-wrap input,
.ch-contacto-form-card .wpcf7-form-control-wrap select,
.ch-contacto-form-card .wpcf7-form-control-wrap textarea {
    background: var(--white-10);
    border: 1px solid var(--white-20);
    color: var(--white);
}
.ch-contacto-form-card .wpcf7-form-control-wrap input::placeholder,
.ch-contacto-form-card .wpcf7-form-control-wrap textarea::placeholder { color: var(--white-50); }
.ch-contacto-form-card .wpcf7-form-control-wrap input:focus,
.ch-contacto-form-card .wpcf7-form-control-wrap textarea:focus {
    background: var(--white-20);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-20);
}
.ch-contacto-form-card .wpcf7-submit {
    background: var(--primary);
    box-shadow: 0 20px 25px -5px var(--primary-30);
}
.ch-contacto-form-card .wpcf7-submit:hover { background: var(--primary-dark); }

.ch-contacto-info h3 {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    color: var(--white);
    opacity: 0.9;
    margin-bottom: var(--space-10);
}
.ch-contacto-list { display: flex; flex-direction: column; gap: var(--space-8); }
.ch-contacto-list li { display: flex; align-items: flex-start; gap: var(--space-5); }
.ch-contacto-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--white-10);
    border: 1px solid var(--white-20);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.ch-contacto-label {
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--white);
    margin-bottom: var(--space-1);
}
.ch-contacto-list p { color: var(--white); font-size: var(--text-lead); line-height: var(--lh-relaxed); }
.ch-contacto-list a { color: var(--white); }
.ch-contacto-list a:hover { color: var(--white); }
/* ============================================================
   BLOG
   ============================================================ */

/* ── Hero (blog, archive, search) ────────────────────────── */
.blog-hero {
    background: var(--secondary);
    padding: 7rem 0 var(--space-16);
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero .bc-wrap { background: none; padding: 0; margin-bottom: var(--space-8); }
.blog-hero .bc-link { color: var(--white-60); }
.blog-hero .bc-link:hover { color: var(--white); }
.blog-hero .bc-current { color: var(--white-80); }
.blog-hero .bc-sep { color: var(--white-30); }
.blog-hero h1 {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--fw-medium);
    color: var(--white);
    margin-bottom: var(--space-4);
}
.blog-hero h1 em { font-style: italic; font-weight: var(--fw-light); color: var(--primary); }
.blog-hero-desc { color: var(--white-70); font-size: var(--text-lead); max-width: 40rem; }

/* ── Filtros de categoría ─────────────────────────────────── */
.blog-filtros { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: var(--space-6) 0; }
.blog-filtros-pills { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.blog-filtro-pill {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: var(--fw-medium);
    background: var(--surface-alt);
    color: var(--text-main);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.blog-filtro-pill:hover,
.blog-filtro-pill.is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Post destacado ───────────────────────────────────────── */
.blog-featured { padding: var(--space-20) 0; background: var(--white); }
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    background: var(--surface-alt);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.blog-featured-img { display: block; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 480px; object-fit: cover; transition: transform 0.7s; }
.blog-featured-card:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-body { padding: var(--space-10) var(--space-12) var(--space-10) 0; display: flex; flex-direction: column; gap: var(--space-5); }
.blog-featured-titulo { font-family: var(--font-display); font-size: var(--text-h2); color: var(--secondary); line-height: var(--lh-tight); }
.blog-featured-titulo a { color: inherit; transition: color var(--transition); }
.blog-featured-titulo a:hover { color: var(--primary); }
.blog-featured-excerpt { color: var(--text-main); line-height: var(--lh-relaxed); }
.blog-featured-cta { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--primary); font-weight: var(--fw-semibold); width: fit-content; }
.blog-featured-cta:hover { gap: var(--space-3); }

/* ── Meta (fecha + tiempo) ────────────────────────────────── */
.blog-meta { display: flex; align-items: center; gap: var(--space-5); font-size: var(--text-caption); color: var(--text-light); }
.blog-meta i { margin-right: var(--space-2); color: var(--primary); }

/* ── Badge categoría ──────────────────────────────────────── */
.blog-post-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--primary-10);
    color: var(--primary);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wide);
    width: fit-content;
}

/* ── Grid de posts ────────────────────────────────────────── */
.blog-grid-section { padding: var(--space-20) 0; background: var(--surface-alt); }
.blog-grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.blog-post-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex; flex-direction: column;
}
.blog-post-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.blog-post-img { display: block; overflow: hidden; height: 220px; }
.blog-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-post-card:hover .blog-post-img img { transform: scale(1.05); }
.blog-post-placeholder {
    width: 100%; height: 100%;
    background: var(--surface-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-300);
    font-size: 2rem;
}
.blog-post-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.blog-post-titulo { font-family: var(--font-display); font-size: var(--text-h4); color: var(--secondary); line-height: var(--lh-snug); }
.blog-post-titulo a { color: inherit; transition: color var(--transition); }
.blog-post-titulo a:hover { color: var(--primary); }
.blog-post-excerpt { font-size: var(--text-small); color: var(--text-main); line-height: var(--lh-relaxed); flex: 1; }
.blog-post-leer { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); font-weight: var(--fw-semibold); color: var(--primary); margin-top: auto; }
.blog-post-leer:hover { gap: var(--space-3); }

/* ── Paginador ────────────────────────────────────────────── */
.blog-paginador { margin-top: var(--space-16); display: flex; justify-content: center; }
.blog-paginador .page-numbers { display: flex; list-style: none; gap: var(--space-2); align-items: center; }
.blog-paginador .page-numbers li a,
.blog-paginador .page-numbers li span {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: var(--fw-medium);
    color: var(--text-main);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.blog-paginador .page-numbers li a:hover { background: var(--primary-10); border-color: var(--primary); color: var(--primary); }
.blog-paginador .page-numbers li span.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.blog-paginador .page-numbers li .dots { border: none; background: none; }

/* ── Search bar ───────────────────────────────────────────── */
.blog-search-bar { padding: var(--space-10) 0; background: var(--white); border-bottom: 1px solid var(--gray-100); }
.blog-search-form { display: flex; gap: var(--space-4); max-width: 48rem; margin: 0 auto; }
.blog-search-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: var(--text-body);
    outline: none;
    transition: border-color var(--transition);
}
.blog-search-input:focus { border-color: var(--primary); }
.blog-search-btn {
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: var(--text-body);
    transition: background var(--transition);
}
.blog-search-btn:hover { background: var(--primary-dark); }

/* ── Sin resultados ───────────────────────────────────────── */
.blog-empty { padding: var(--space-32) 0; background: var(--surface-alt); }
.blog-empty-inner { max-width: 32rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-8); }
.blog-empty-icon { font-size: 4rem; color: var(--gray-300); }
.blog-empty-inner p { color: var(--text-main); line-height: var(--lh-relaxed); }

/* ── Single hero ──────────────────────────────────────────── */
.blog-single-hero { background: var(--secondary); padding: 7rem 0 0; }
.blog-single-hero-inner { position: relative; z-index: 1; padding-bottom: var(--space-16); }
.blog-single-hero .bc-wrap { background: none; padding: 0; margin-bottom: var(--space-8); }
.blog-single-hero .bc-link  { color: var(--white-60); }
.blog-single-hero .bc-link:hover { color: var(--white); }
.blog-single-hero .bc-current { color: var(--white-80); }
.blog-single-hero .bc-sep { color: var(--white-30); }
.blog-single-titulo {
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: var(--fw-medium);
    color: var(--white);
    line-height: var(--lh-tight);
    max-width: 52rem;
    margin: var(--space-6) 0 var(--space-8);
}
.blog-single-meta { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.blog-single-autor { display: flex; align-items: center; gap: var(--space-3); color: var(--white-80); font-size: var(--text-small); }
.blog-single-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); border: 2px solid var(--white-20); object-fit: cover; }
.blog-single-hero .blog-meta { color: var(--white-60); }
.blog-single-featured-img { margin-top: var(--space-12); border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; overflow: hidden; max-height: 560px; }
.blog-single-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Single layout (content + sidebar) ───────────────────── */
.blog-single-section { padding: var(--space-20) 0; background: var(--white); }
.blog-single-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-16); align-items: start; }
.blog-single-content {
    font-size: var(--text-body);
    line-height: var(--lh-relaxed);
    color: var(--text-main);
}
.blog-single-content h2,
.blog-single-content h3 { font-family: var(--font-display); color: var(--secondary); margin: var(--space-10) 0 var(--space-4); }
.blog-single-content h2 { font-size: var(--text-h2); }
.blog-single-content h3 { font-size: var(--text-h3); }
.blog-single-content p  { margin-bottom: var(--space-5); }
.blog-single-content ul,
.blog-single-content ol { margin: 0 0 var(--space-5) var(--space-6); }
.blog-single-content li { margin-bottom: var(--space-2); }
.blog-single-content strong { font-weight: var(--fw-bold); color: var(--text-dark); }
.blog-single-content img { border-radius: var(--radius-2xl); margin: var(--space-8) 0; max-width: 100%; }
.blog-single-content blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-8) 0;
    background: var(--primary-5);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    font-style: italic;
    color: var(--secondary);
}
.blog-single-body { display: flex; flex-direction: column; gap: var(--space-12); }

/* ── Share buttons ────────────────────────────────────────── */
.blog-share { border-top: 1px solid var(--gray-100); padding-top: var(--space-8); }
.blog-share-label { font-size: var(--text-small); font-weight: var(--fw-semibold); color: var(--secondary); margin-bottom: var(--space-4); }
.blog-share-btns { display: flex; gap: var(--space-3); }
.blog-share-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: opacity var(--transition);
}
.blog-share-btn:hover { opacity: 0.85; }
.blog-share-fb    { background: #1877F2; }
.blog-share-tw    { background: #000; }
.blog-share-wa    { background: #25D366; }
.blog-share-li    { background: #0A66C2; }
.blog-share-email { background: var(--secondary); }

/* ── Sidebar ──────────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: var(--space-8); position: sticky; top: 100px; }
.sidebar-widget {
    background: var(--surface-alt);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--gray-100);
}
.sidebar-widget-title { font-family: var(--font-display); font-size: var(--text-h4); color: var(--secondary); margin-bottom: var(--space-5); }
.sidebar-bio-header { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-4); }
.sidebar-bio-avatar { width: 60px; height: 60px; border-radius: var(--radius-full); object-fit: cover; flex-shrink: 0; }
.sidebar-bio-nombre { font-weight: var(--fw-bold); color: var(--secondary); }
.sidebar-bio-cargo  { font-size: var(--text-caption); color: var(--text-main); }
.sidebar-bio-texto  { font-size: var(--text-small); color: var(--text-main); line-height: var(--lh-relaxed); margin-bottom: var(--space-4); }
.sidebar-bio-link   { font-size: var(--text-small); font-weight: var(--fw-semibold); color: var(--primary); display: inline-flex; align-items: center; gap: var(--space-2); }
.sidebar-rel-list { display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar-rel-item { display: flex; gap: var(--space-4); align-items: flex-start; color: inherit; }
.sidebar-rel-img { width: 72px; height: 72px; border-radius: var(--radius-xl); overflow: hidden; flex-shrink: 0; }
.sidebar-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-rel-titulo { font-size: var(--text-small); font-weight: var(--fw-medium); color: var(--secondary); line-height: var(--lh-snug); margin-bottom: var(--space-1); transition: color var(--transition); }
.sidebar-rel-item:hover .sidebar-rel-titulo { color: var(--primary); }
.sidebar-rel-time { font-size: var(--text-caption); color: var(--text-light); display: flex; align-items: center; gap: var(--space-1); }
.sidebar-rel-time i { color: var(--primary); }
.sidebar-cta {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}
.sidebar-cta-icon-wrap { font-size: 2rem; color: var(--primary); margin-bottom: var(--space-4); }
.sidebar-cta h3 { color: var(--white); font-size: var(--text-h4); margin-bottom: var(--space-3); }
.sidebar-cta p  { color: var(--white-70); font-size: var(--text-small); margin-bottom: var(--space-6); }
.sidebar-cta-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--fw-semibold);
    font-size: var(--text-small);
    transition: background var(--transition);
}
.sidebar-cta-btn:hover { background: var(--primary-dark); }
