/*
Theme Name: Contextovital
Theme URI: https://contextovitalcr.com
Author: Coco Creativo
Author URI: https://cococreativo.com
Description: Tema personalizado para Contexto Vital — Centro de psicología clínica, neuropsicología y terapias basadas en evidencia. Costa Rica.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Privado
Text Domain: contextovital
*/

/* === FUENTES OFICIALES (Libro de marca Contexto Vital) === */
@font-face {
    font-family: 'Loubag';
    src: url('assets/fonts/Loubag-Thin.woff2') format('woff2'),
         url('assets/fonts/Loubag-Thin.ttf') format('truetype');
    font-weight: 100 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brice';
    src: url('assets/fonts/Brice-LightSemiCondensed.woff2') format('woff2'),
         url('assets/fonts/Brice-LightSemiCondensed.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* === VARIABLES === */
:root {
    /* Paleta oficial Contexto Vital (Libro de marca - Cesac Studio) */
    --color-primary:      #005346; /* TEAL */
    --color-accent-warm:  #AD4825; /* DARKPAPAYA — CTAs */
    --color-accent-fresh: #43795C; /* SEAGREEN */
    --color-accent-light: #7EABA3; /* POWDERBLUE — hover, detalles */
    --color-bg-soft:      #EEDBD3; /* MOCCASIN LIGHT — fondos suaves */
    --color-bg-alt:       #D9AD8C; /* PAPAYAWIPD — fondos alternos */
    --color-white:        #FFFFFF;
    --color-text-dark:    #1A1A1A;

    /* Tipografía oficial (Cesac Studio brand book):
       Títulos  → Loubag Thin (self-hosted, assets/fonts/) ✓
       Cuerpo   → Livvic Regular / Medium (Google Fonts) ✓
       Acentos  → Brice Light Semi Condensed (self-hosted, assets/fonts/) ✓ */
    --font-heading: 'Loubag', 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-sans:    'Livvic', 'Helvetica Neue', Arial, sans-serif;
    --font-accent:  'Brice', 'Josefin Sans', Georgia, serif;

    --container: 1200px;
    --radius: 8px;
    --transition: 0.25s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TIPOGRAFÍA === */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 400; }
h4 { font-size: 1.125rem; font-weight: 600; font-family: var(--font-sans); }
p  { font-size: 1rem; font-weight: 400; }
em, .accent { font-family: var(--font-accent); font-style: italic; font-weight: 500; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--soft { background: var(--color-bg-soft); }
.section--alt  { background: var(--color-bg-alt); }
.section--dark { background: var(--color-primary); color: var(--color-white); }

/* === BOTONES === */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent-warm);
    color: var(--color-white);
    border-color: var(--color-accent-warm);
}
.btn-primary:hover {
    background: #9e3d22;
    border-color: #9e3d22;
    transform: translateY(-1px);
}

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

/* === NAVBAR === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid rgba(26,74,58,0.08);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(26,74,58,0.12);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar__logo img { height: 44px; width: auto; }

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar__menu a {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}
.navbar__menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-warm);
    transition: width var(--transition);
}
.navbar__menu a:hover::after,
.navbar__menu a.current-menu-item::after { width: 100%; }
.navbar__menu a:hover { color: var(--color-accent-light); }

.navbar__cta { flex-shrink: 0; }

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition);
}

/* === HERO — panel sólido con texto + foto completa del equipo sin overlay === */
.hero {
    background: var(--color-primary);
    /* Ligado al ancho (no a vh): la foto es 62% del ancho, así que su altura debe
       escalar con el ancho para mantener un ratio cercano al de la foto (3:2) y
       evitar recortes agresivos en laptops, donde vh es corto mientras vw sigue siendo ancho. */
    min-height: clamp(560px, 44vw, 800px);
    color: var(--color-white);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Foto del equipo: bloque propio a la derecha, sin gradiente encima — nadie queda oculto */
.hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    overflow: hidden;
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}
/* Borde izquierdo: tinte suave para conectar con el panel, sin tapar rostros */
.hero__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 83, 70, 0.55)  0%,
        rgba(0, 83, 70, 0.20) 12%,
        rgba(0, 83, 70, 0)    22%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    /* Antes 8rem fijo: forzaba al texto a exigir más alto que min-height del
       hero, anulando el límite pensado para el ratio de la foto. Ahora escala
       con el viewport sin dominar la altura del hero. */
    padding: clamp(3rem, 6vw, 6rem) 0;
    width: 100%;
}
.hero__content {
    max-width: 385px;
}
.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 1.25rem;
    opacity: 0.9;
}
.hero__title {
    margin-bottom: 1.5rem;
    color: var(--color-white);
}
.hero__title span { color: var(--color-accent-light); }
.hero__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.75rem;
    max-width: 360px;
    line-height: 1.75;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image { display: none; }

/* === SECCIÓN: QUÉ ES === */
.section-quienes { text-align: center; }
.section-quienes .section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-fresh);
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.section-quienes h2 { color: var(--color-primary); margin-bottom: 2rem; }
.section-quienes p {
    max-width: 760px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}
.frase-ancla {
    font-family: var(--font-accent);
    font-size: clamp(1.4rem, 2.5vw, 2rem); /* obs #5 — más grande y prominente */
    font-style: italic;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2.5rem;
    padding: 1.75rem 2rem;
    border-left: 5px solid var(--color-accent-warm);
    background: rgba(0,83,70,0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* === SECCIÓN: VENTAJAS === */
.ventajas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.ventaja-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(26,74,58,0.08);
    transition: transform var(--transition);
}
.ventaja-card:hover { transform: translateY(-4px); }
.ventaja-card__icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-accent-fresh);
    font-size: 1.75rem;
}
.ventaja-card h3 { color: var(--color-primary); margin-bottom: 0.75rem; }

/* === SECCIÓN: SERVICIOS === */
.servicios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.servicio-card {
    background: var(--color-white);
    border: 1px solid rgba(26,74,58,0.1);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}
.servicio-card:hover {
    border-color: var(--color-accent-fresh);
    box-shadow: 0 8px 30px rgba(26,74,58,0.12);
}
.servicio-card__icon {
    color: var(--color-accent-fresh);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.servicio-card h3 { color: var(--color-primary); margin-bottom: 0.5rem; font-size: 1.125rem; }
.servicio-card p { font-size: 0.95rem; color: #555; }

/* === SECCIÓN: EQUIPO === */
.equipo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.profesional-card {
    text-align: center;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,74,58,0.08);
    transition: transform var(--transition);
}
.profesional-card:hover { transform: translateY(-4px); }
.profesional-card__foto {
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    overflow: hidden;
}
.profesional-card__foto img { width: 100%; height: 100%; object-fit: cover; }
.profesional-card__info { padding: 1.5rem; }
.profesional-card__nombre { font-size: 1.125rem; color: var(--color-primary); margin-bottom: 0.25rem; }
.profesional-card__especialidad { font-size: 0.875rem; color: #666; margin-bottom: 1rem; }

/* === SECCIÓN: ORIENTADORA === */
.orientadora {
    text-align: center;
}
.orientadora h2 { color: var(--color-primary); margin-bottom: 1rem; }
.orientadora p { max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; }

/* === SECCIÓN: TESTIMONIOS === */
.testimonios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}
.testimonio-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: calc(var(--radius) * 2);
    padding: 1.75rem 2rem 2rem;
    box-shadow: 0 10px 30px rgba(0,83,70,0.09);
    border-top: 3px solid var(--color-accent-warm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,83,70,0.14);
}
.testimonio-card__quote {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--color-accent-warm);
    opacity: 0.4;
    margin-bottom: 0.25rem;
}
.testimonio-card__texto {
    font-family: var(--font-accent);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    flex-grow: 1;
}
.testimonio-card__autor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,83,70,0.12);
}
.testimonio-card__autor::before {
    content: '';
    width: 22px;
    height: 2px;
    flex-shrink: 0;
    background: var(--color-accent-warm);
}
.testimonio-card__nombre {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

/* === CTA FINAL === */
.cta-final {
    text-align: center;
}
.cta-final h2 { margin-bottom: 1.5rem; }
.cta-final p  { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }

/* === FOOTER === */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer__brand .logo-text {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}
.footer__brand p { font-size: 0.9rem; opacity: 0.8; line-height: 1.7; }
.footer__col h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; color: var(--color-accent-fresh); }
.footer__col ul li { margin-bottom: 0.5rem; }
.footer__col ul li a { opacity: 0.8; font-size: 0.9rem; transition: opacity var(--transition); }
.footer__col ul li a:hover { opacity: 1; }
.footer__social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.footer__social a:hover { background: var(--color-accent-fresh); }

.footer__aviso-emergencias {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    opacity: 0.75;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* === SECCIÓN TÍTULOS === */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-fresh);
    margin-bottom: 0.5rem;
}
.section-header h2 { color: var(--color-primary); }
.section-header p { max-width: 600px; margin: 1rem auto 0; color: #555; }

/* === PAGE HERO (páginas internas) === */
.page-hero { padding: 4rem 0; }
.page-hero .hero__eyebrow { color: var(--color-accent-fresh); }
.page-hero h1 { color: var(--color-white); margin-bottom: 0; }

/* === SERVICIOS DETALLE === */
.servicio-detalle {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(26,74,58,0.1);
}
.servicio-detalle:last-child { border-bottom: none; }
.servicio-detalle__icono { font-size: 3rem; line-height: 1; padding-top: 0.25rem; }
.servicio-detalle__contenido h2 { color: var(--color-primary); margin-bottom: 1rem; font-size: 1.75rem; }
.servicio-detalle__contenido p { margin-bottom: 1.5rem; color: #444; line-height: 1.8; }
.servicio-detalle__temas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.servicio-detalle__temas li {
    background: var(--color-bg-soft);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
}

/* === EQUIPO GRANDE === */
.equipo__grid--grande {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.profesional-card--grande .profesional-card__info { padding: 2rem; }
.profesional-card--grande .profesional-card__nombre { font-size: 1.5rem; margin-bottom: 0.5rem; }
.profesional-card--grande .profesional-card__especialidad { margin-bottom: 1.5rem; font-size: 1rem; }

/* === FAQs === */
.faqs { margin-top: 2rem; }
.faq-item {
    border-bottom: 1px solid rgba(26,74,58,0.12);
}
.faq-item__pregunta {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition);
}
.faq-item__pregunta:hover { color: var(--color-accent-warm); }
.faq-item__icono { font-size: 1.5rem; font-weight: 300; flex-shrink: 0; transition: transform var(--transition); }
.faq-item__pregunta[aria-expanded="true"] .faq-item__icono { transform: rotate(45deg); }
.faq-item__respuesta { padding-bottom: 1.25rem; }
.faq-item__respuesta p { color: #555; line-height: 1.8; }

/* === CONTACTO === */
.contacto__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contacto__datos h2 { color: var(--color-primary); margin-bottom: 2rem; }
.contacto__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.contacto__item-icono { font-size: 1.5rem; flex-shrink: 0; }
.contacto__item a { color: var(--color-accent-warm); }
.contacto__aviso-emergencias {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-accent-warm);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    line-height: 1.7;
}
.contacto__mapas h3 { color: var(--color-primary); margin-bottom: 1.5rem; }
.mapa-embed__label { font-weight: 500; margin-bottom: 0.75rem; color: var(--color-primary); }

/* === ANIMACIONES SCROLL === */
.cv-animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cv-animate--visible {
    opacity: 1;
    transform: translateY(0);
}
.cv-animate--fade-left  { transform: translateX(-32px); }
.cv-animate--fade-right { transform: translateX(32px); }
.cv-animate--fade-left.cv-animate--visible,
.cv-animate--fade-right.cv-animate--visible { transform: translateX(0); }
.cv-animate--scale { transform: scale(0.92); }
.cv-animate--scale.cv-animate--visible { transform: scale(1); }

/* Cursor personalizado eliminado — se usa el cursor nativo del sistema */

/* === PARALLAX HERO === */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(94,158,138,0.15) 0%, transparent 60%);
    transform: translateY(var(--parallax-y, 0));
    pointer-events: none;
}

/* === HERO INTERNO (páginas) === */
.page-hero {
    padding: 5rem 0 4rem;
}
.page-hero__inner { text-align: center; }
.page-hero h1 { color: var(--color-white); margin: 0.5rem 0 1rem; }
.page-hero__sub { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; color: var(--color-white); }

/* Nav anclas servicios */
.servicios-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.servicios-nav a {
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all var(--transition);
}
.servicios-nav a:hover {
    background: var(--color-accent-fresh);
    border-color: var(--color-accent-fresh);
}

/* === SERVICIOS BLOQUE === */
.servicios-bloque { scroll-margin-top: 90px; }
.servicios-bloque__header {
    text-align: center;
    margin-bottom: 3rem;
}
.servicios-bloque__icono {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}
.servicios-bloque__header h2 { color: var(--color-primary); margin-bottom: 0.75rem; }
.servicios-bloque__header p { max-width: 680px; margin: 0 auto; color: #555; font-size: 1.05rem; }

/* === SERVICIO CARD FULL === */
.servicios-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.servicio-card-full {
    background: var(--color-white);
    border: 1px solid rgba(26,74,58,0.1);
    border-radius: calc(var(--radius) * 1.5);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.servicio-card-full::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent-fresh);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.servicio-card-full:hover {
    box-shadow: 0 12px 40px rgba(26,74,58,0.12);
    transform: translateY(-3px);
    border-color: rgba(94,158,138,0.3);
}
.servicio-card-full:hover::before { transform: scaleY(1); }

.servicio-card-full__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-warm);
    background: rgba(181,71,42,0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.servicio-card-full h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.servicio-card-full h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.servicio-card-full p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.servicio-card-full strong { color: var(--color-primary); }
.servicio-card-full .btn { margin-top: 0.5rem; }

.servicio-card-full--compact { padding: 2rem; }
.servicio-card-full--compact h4 { font-size: 1.1rem; }

/* Dúo de cards grupales */
.servicios-cards--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* === PERFIL PROFESIONAL === */
.profesional-perfil {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(26,74,58,0.1);
    position: relative;
}
.profesional-perfil:last-child { border-bottom: none; }

.profesional-perfil__foto-col { position: sticky; top: 90px; }
.profesional-perfil__foto {
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--color-bg-alt);
    box-shadow: 0 20px 60px rgba(26,74,58,0.15);
}
.profesional-perfil__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 0.5s ease; }
.profesional-perfil__foto:hover img { transform: scale(1.03); }

.profesional-perfil__badge {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    border-radius: 999px;
}
.profesional-perfil__badge--fundador {
    background: var(--color-primary);
    color: var(--color-white);
}
.profesional-perfil__badge--ingles {
    background: var(--color-accent-fresh);
    color: var(--color-white);
    margin-left: 0.5rem;
}
.profesional-perfil__badge--cargo {
    background: var(--color-accent-warm);
    color: var(--color-white);
    margin-top: 0.5rem;
    display: block;
    width: fit-content;
}

.profesional-perfil__header { margin-bottom: 1.5rem; }
.profesional-perfil__header h2 { color: var(--color-primary); margin-bottom: 0.25rem; font-size: 2rem; }
.profesional-perfil__titulo { color: var(--color-accent-fresh); font-weight: 500; font-size: 1.05rem; margin-bottom: 0.25rem; }
.profesional-perfil__cod { font-size: 0.8rem; color: #888; }

.profesional-perfil__bio-corta {
    font-size: 1.1rem;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--color-primary);
    border-left: 3px solid var(--color-accent-warm);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.profesional-perfil__bio p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.profesional-perfil__meta {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profesional-perfil__meta-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.profesional-perfil__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.profesional-perfil__tags span {
    background: var(--color-white);
    border: 1px solid rgba(26,74,58,0.15);
    color: var(--color-primary);
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}
.profesional-perfil__precio {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* === CURSOR EN HOVER SOBRE CARDS === */
.servicio-card-full,
.ventaja-card,
.profesional-card { cursor: pointer; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .ventajas__grid { grid-template-columns: repeat(2, 1fr); }
    .profesional-perfil { grid-template-columns: 280px 1fr; gap: 2.5rem; }
    .servicios-cards--duo { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar__menu { display: none; }
    .navbar__menu.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: var(--color-white);
        border-top: 1px solid rgba(26,74,58,0.1);
        padding: 1.5rem;
        gap: 0;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(26,74,58,0.1);
    }
    .navbar__menu.is-open a { color: var(--color-primary); font-size: 1.05rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(26,74,58,0.07); touch-action: manipulation; }
    .navbar__menu.is-open a:last-child { border-bottom: none; }
    .navbar__cta { display: none; }
    .navbar__toggle { display: flex; }

    /* Hero mobile — foto arriba, panel de texto abajo, apilados */
    .hero { flex-direction: column; min-height: auto; }
    .hero__photo { position: relative; width: 100%; height: 42vh; }
    .hero__photo::before { display: none; }
    .hero__inner { padding: 3rem 0; text-align: center; justify-content: center; }
    .hero__content { max-width: 100%; }
    .hero__subtitle { max-width: 100%; }
    .hero__ctas { justify-content: center; }
    .hero__content h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .hero__badges { justify-content: center; }

    /* General */
    .section { padding: 3rem 0; }
    .section-header h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .page-hero { padding: 4rem 0; }
    .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    /* Layouts de grilla */
    .ventajas__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .contacto__grid { grid-template-columns: 1fr; gap: 2rem; }
    .servicios-cards--duo { grid-template-columns: 1fr; }

    /* Perfil profesional */
    .profesional-perfil {
        grid-template-columns: 1fr;
        padding: 2.5rem 0;
    }
    .profesional-perfil__foto-col { position: static; }
    .profesional-perfil__foto {
        width: 100%;
        max-width: 320px;
        height: 360px;
        margin: 0 auto;
    }
    .profesional-perfil__header h2 { font-size: 1.6rem; }

    /* Servicios nav */
    .servicios-nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    /* Testimonios */
    .testimonios__grid { grid-template-columns: 1fr; }

    /* FAQ */
    .faq-item__pregunta { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .navbar__logo-img { height: 36px; }
    .btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    .profesional-perfil__meta { grid-template-columns: 1fr; }
    .servicio-card-full { padding: 1.5rem; }
}

/* === EQUIPO DE APOYO === */
.apoyo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}
.apoyo-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,74,58,0.08);
    display: flex;
    flex-direction: column;
}
.apoyo-card__foto {
    height: 550px;
    overflow: hidden;
}
.apoyo-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.apoyo-card__foto-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-fresh), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.apoyo-card__foto-placeholder--pending {
    background: linear-gradient(135deg, var(--color-bg-alt), #c8a882);
}
.apoyo-card__foto-placeholder span {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.05em;
}
.apoyo-card__info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.apoyo-card__info h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.apoyo-card__cargo {
    color: var(--color-accent-warm);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.apoyo-card__bio {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.5rem;
}
.apoyo-card .btn-outline {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .apoyo-grid { grid-template-columns: 1fr; }
    .apoyo-card__foto { height: 420px; }
}

/* === SEDE CARDS (Contacto) === */
.sede-card {
    background: var(--color-white);
    border: 1px solid rgba(26,74,58,0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow var(--transition);
}
.sede-card:hover {
    box-shadow: 0 4px 16px rgba(26,74,58,0.1);
}
.sede-card__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.sede-card__icono { font-size: 1.5rem; flex-shrink: 0; }
.sede-card__header strong { color: var(--color-primary); display: block; margin-bottom: 0.25rem; }
.sede-card__header p { color: #555; font-size: 0.95rem; line-height: 1.5; margin: 0; }
.sede-card__acciones {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.sede-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.sede-card__btn--waze {
    background: var(--color-primary);
    color: #fff;
}
.sede-card__btn--waze:hover { background: #004038; }
.sede-card__btn--maps {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(26,74,58,0.25);
}
.sede-card__btn--maps:hover {
    border-color: var(--color-primary);
    background: rgba(26,74,58,0.05);
}

/* === POLÍTICA DE PRIVACIDAD === */
.policy-content {
    max-width: 780px;
    margin: 0 auto;
}
.policy-content h2 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0,83,70,0.15);
}
.policy-content p,
.policy-content li {
    font-size: 0.975rem;
    line-height: 1.8;
    color: var(--color-text);
}
.policy-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.policy-content li { margin-bottom: 0.4rem; }
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.policy-content th {
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 0.9rem;
    text-align: left;
    font-weight: 600;
}
.policy-content td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid rgba(0,83,70,0.12);
    vertical-align: top;
}
.policy-content tr:nth-child(even) td { background: rgba(0,83,70,0.04); }
.policy-content a { color: var(--color-primary); text-decoration: underline; }
.policy-content a:hover { color: var(--color-accent-warm); }
.policy-updated { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Colores del hero ya definidos en el bloque principal arriba */

/* ============================================================
   BLOG — ARTÍCULO INDIVIDUAL (single.php)
   ============================================================ */

/* Hero del artículo */
.article-hero {
    padding: 5rem 0 4rem;
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.article-breadcrumb a { color: rgba(255,255,255,0.75); }
.article-breadcrumb a:hover { color: var(--color-white); }
.article-breadcrumb__current { color: rgba(255,255,255,0.5); }

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.article-hero__cat {
    background: var(--color-accent-warm);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}
.article-hero__time {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.article-hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--color-white);
    max-width: 800px;
    line-height: 1.15;
}
.article-hero__date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

/* Cuerpo del artículo */
.article-body { padding: 4rem 0 3rem; }
.article-body__inner {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Contenido del artículo (prosa) */
.the-content { max-width: 720px; margin: 0 auto; }

.the-content .article-lead {
    font-size: 1.18rem;
    line-height: 1.8;
    color: var(--color-primary);
    font-weight: 400;
    margin-bottom: 1.75rem;
}

.the-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--color-primary);
    margin: 3rem 0 1rem;
    padding-top: 0.5rem;
    border-top: 3px solid var(--color-bg-soft);
}
.the-content h3 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem;
}
.the-content p { margin-bottom: 1.1rem; line-height: 1.8; }
.the-content ul, .the-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.8;
}
.the-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.the-content ol li { list-style: decimal; margin-bottom: 0.4rem; }
.the-content strong { color: var(--color-primary); }
.the-content em { font-style: italic; }
.the-content a { color: var(--color-primary); text-decoration: underline; }
.the-content a:hover { color: var(--color-accent-warm); }

/* Caja CTA incrustada en el artículo */
.the-content .article-cta-box {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
}
.the-content .article-cta-box strong {
    color: var(--color-white);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: -0.01em;
}
.the-content .article-cta-box p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.25rem;
}
.the-content .article-cta-box .btn { margin-top: 0.25rem; }

/* Callout / pullquote */
.the-content .article-callout {
    border-left: 4px solid var(--color-accent-warm);
    background: var(--color-bg-soft);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-primary);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Tabla dentro del artículo */
.the-content .article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
}
.the-content .article-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
}
.the-content .article-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
    line-height: 1.6;
}
.the-content .article-table tr:last-child td { border-bottom: none; }
.the-content .article-table tr:nth-child(even) td { background: #f8f6f4; }

/* FAQ del artículo (siempre visible — mejor para SEO) */
.the-content .article-faq { margin: 1rem 0 2rem; }
.the-content .article-faq__item {
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: #fafafa;
}
.the-content .article-faq__q {
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
    border-top: none;
    padding-top: 0;
}
.the-content .article-faq__item p { margin-bottom: 0; }

/* Referencias */
.the-content .article-referencias {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.7;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}
.the-content .article-referencias strong { color: #666; }

/* Tarjeta de autor */
.article-author-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.article-author-card__logo { flex-shrink: 0; }
.article-author-card__info strong {
    display: block;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
.article-author-card__info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* CTA final del artículo */
.article-final-cta { padding: 5rem 0; }
.article-final-cta h2 { color: var(--color-white); font-size: clamp(1.6rem, 3.5vw, 2.5rem); }

/* ============================================================
   BLOG — CARDS DE LISTADO (page-recursos.php)
   ============================================================ */

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.blog-card__content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card__cat {
    display: inline-block;
    background: var(--color-accent-warm);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
}
.blog-card__title {
    font-size: 1.05rem;
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.blog-card__title a:hover { color: var(--color-primary); }

.blog-card__excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.85rem;
    margin-top: auto;
}
.blog-card__time {
    font-size: 0.78rem;
    color: #999;
}
.blog-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
.blog-card__link:hover { color: var(--color-accent-warm); }

/* ─── RESPONSIVE BLOG ──────────────────────────────────────── */
@media (max-width: 900px) {
    .blog-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .blog-cards { grid-template-columns: 1fr; }
    .article-author-card { flex-direction: column; text-align: center; }
    .the-content .article-cta-box { padding: 1.5rem; }
    .the-content .article-table { font-size: 0.85rem; }
    .the-content .article-table th, .the-content .article-table td { padding: 0.6rem 0.75rem; }
}
