/*!
Theme Name: josecaracuel V2
Theme URI: https://josecaracuel.com
Description: ¡Este es el portfolio personal de Jose Caracuel, médico especialista en el tratamiento de adicciones!
Version: 3.0.0
Author: SEO13
Author URI: https://seo13.es
Text Domain: josecaracuel
Requires at least: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

josecaracuel is based on _tw https://underscoretw.com/, (C) 2021-2026 Greg Sullivan
_tw is distributed under the terms of the GNU GPL v2 or later.

_tw is based on Underscores https://underscores.me/ and Varia https://github.com/Automattic/themes/tree/master/varia, (C) 2012-2026 Automattic, Inc.
Underscores and Varia are distributed under the terms of the GNU GPL v2 or later.
*/

/* ═══════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════ */
:root {
    --azul:       #39a3d4;
    --verde:      #b8c626;
    --azul-dark:  #2a8ab8;
    --verde-dark: #9aaa1e;
    --texto:      #333333;
    --texto-muted:#666666;
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--texto);
}

/* ═══════════════════════════════════════════
   REVEAL ON SCROLL — global
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   TIPOGRAFÍA — ENCABEZADOS
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--texto);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
    color: var(--texto-muted);
}


/* ═══════════════════════════════════════════
   ENLACES
═══════════════════════════════════════════ */
a {
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-underline:hover {
    color: var(--azul);
    text-decoration: underline;
    text-decoration-color: var(--verde);
}

/* ═══════════════════════════════════════════
   BOTONES
═══════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-outline-verde,
.btn-outline-azul {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

@media (max-width: 639px) {
    .btn-primary,
    .btn-secondary,
    .btn-outline-verde,
    .btn-outline-azul {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

.btn-primary {
    background-color: var(--azul);
    color: #ffffff;
    border-color: var(--azul);
}

.btn-primary:hover {
    background-color: var(--azul-dark);
    border-color: var(--azul-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--verde);
    color: #ffffff;
    border-color: var(--verde);
}

.btn-secondary:hover {
    background-color: var(--verde-dark);
    border-color: var(--verde-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-outline-verde {
    background-color: #ffffff;
    color: var(--verde);
    border-color: var(--verde);
}

.btn-outline-verde:hover {
    background-color: var(--verde);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline-azul {
    background-color: #ffffff;
    color: var(--azul);
    border-color: var(--azul);
}

.btn-outline-azul:hover {
    background-color: var(--azul);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   FONDOS DE COLOR
═══════════════════════════════════════════ */
.bg-azul  { background-color: var(--azul); }
.bg-verde { background-color: var(--verde); }

/* ═══════════════════════════════════════════
   DESKTOP MENU
═══════════════════════════════════════════ */
#primary-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu > li {
    position: relative;
}

#primary-menu > li > a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texto);
    text-decoration: none;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.2s ease;
}

/* Subrayado animado verde */
#primary-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde);
    transition: width 0.25s ease;
}

#primary-menu > li > a:hover {
    color: var(--azul);
    text-decoration: none;
}

#primary-menu > li > a:hover::before {
    width: 100%;
}

/* Chevron después del texto en items con hijos */
#primary-menu > li.menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.2s ease;
}

#primary-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown */
#primary-menu > li .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 170px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border: 1px solid #f0f0f0;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

#primary-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

#primary-menu .sub-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--texto);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

#primary-menu .sub-menu li a:hover {
    background-color: #f3f4f6;
    color: var(--azul);
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════ */
#mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
#mobile-menu-list li a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--texto);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}
#mobile-menu-list li a:hover {
    background-color: #f3f4f6;
    color: var(--azul);
    text-decoration: none;
}
#mobile-menu-list .menu-item-has-children {
    position: relative;
}
#mobile-menu-list .menu-item-has-children > a {
    padding-right: 2.5rem;
}
#mobile-menu-list .submenu-toggle {
    position: absolute;
    top: 0.15rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--texto-muted);
}
#mobile-menu-list .submenu-toggle i {
    transition: transform 0.2s ease;
}
#mobile-menu-list .submenu-toggle.open i {
    transform: rotate(180deg);
}
#mobile-menu-list .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0.25rem 0 0;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}
#mobile-menu-list .sub-menu.open {
    display: flex;
}
#mobile-menu-list .sub-menu li a {
    font-size: 0.875rem;
    font-weight: 500;
}
/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social:hover {
    background-color: var(--azul);
    border-color: var(--azul);
    color: #fff;
    text-decoration: none;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-nav li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;   /* antes: flex */
    align-items: center;
    gap: 0.5rem;
}
.footer-nav li a::before {
    content: '→';
    color: var(--verde);
    font-size: 0.8rem;
}
.footer-nav li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--azul);
    text-decoration: none;
}

.footer-link-sm {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link-sm:hover {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* =============================================
   HERO
   ============================================= */
.hero-item {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s ease forwards;
}

.hero-item:nth-child(1) { animation-delay: 0.1s; }
.hero-item:nth-child(2) { animation-delay: 0.35s; }
.hero-item:nth-child(3) { animation-delay: 0.6s; }
.hero-item:nth-child(4) { animation-delay: 0.85s; }

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

/* El H1 del hero es el badge y el titular grande es un <p>: se deshace la
   regla global de h1 en el badge (vuelven a mandar las clases de Tailwind) y
   se le da al <p> lo que antes recibía como h1, para que no cambie nada. */
#hero h1 {
    font-weight: revert-layer;
    line-height: revert-layer;
    margin-bottom: revert-layer;
}

#hero h1 + p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

#hero {
    background-attachment: fixed;
    animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0%   { background-size: 105%; }
    100% { background-size: 118%; }
}

/* =============================================
   STATS
   ============================================= */
.stat-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.25s; }
.stat-item:nth-child(3) { transition-delay: 0.4s; }
.stat-item:nth-child(4) { transition-delay: 0.55s; }

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--azul);
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* La tarjeta entera es un enlace (frontpage.php, #servicios). */
a.service-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card:hover,
.service-card:focus-visible {
    border-color: var(--verde);
    box-shadow: 0 12px 32px rgba(128, 155, 140, 0.2);
    transform: translateY(-4px);
}

.service-card:focus-visible {
    outline: 3px solid var(--azul-dark);
    outline-offset: 3px;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    background-color: rgba(95, 114, 133, 0.1);
    color: var(--azul);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon {
    background-color: rgba(128, 155, 140, 0.15);
    color: var(--verde);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--texto);
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--texto-muted);
    margin: 0;
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews-wrapper {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollReviews 30s linear infinite;
    width: max-content;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    width: 360px;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.review-card:hover {
    box-shadow: 0 12px 32px rgba(95, 114, 133, 0.12);
    transform: translateY(-4px);
}

/* =============================================
   FAQS
   ============================================= */
.faq-item {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.open {
    border-color: var(--azul);
}

.faq-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-btn:hover {
    background-color: #f8f9fa;
}

.faq-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(95, 114, 133, 0.1);
    color: var(--azul);
    transition: all 0.3s ease;
}

.faq-item.open .faq-icon {
    background-color: var(--azul);
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* =============================================
   BTN PULSE (hero CTA)
   ============================================= */
.btn-primary {
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(95, 114, 133, 0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(95, 114, 133, 0); }
}

/* ════════════════════════════════════════════════
   SOBRE MÍ — página
════════════════════════════════════════════════ */

/* ── Animaciones globales ── */
@keyframes lineGrow {
    from { width: 0; }
    to   { width: 3rem; }
}


/* ── Hero ── */
.sobre-hero {
    min-height: 80vh;
    background-image: url('https://josecaracuel.com/wp-content/uploads/2026/06/jose-caracuel-fondo.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}
.sobre-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 30, 0.3) 0%,
        rgba(10, 20, 30, 0.75) 100%
    );
}
@media (max-width: 639px) {
    .sobre-hero {
        min-height: 90vh;
        background-attachment: scroll;
    }
}
.hero-badge  { animation: fadeUp 0.6s ease 0.2s both; }
.hero-title  { animation: fadeUp 0.7s ease 0.4s both; }
.hero-sub    { animation: fadeUp 0.7s ease 0.6s both; }
.hero-line {
    display: inline-block;
    height: 3px;
    background: var(--verde);
    animation: lineGrow 0.8s ease 0.8s both;
}
/* ── Intro — foto ── */
.intro-photo img {
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    object-fit: cover;
}
.intro-photo .badge-years {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-bottom: 4px solid var(--verde);
    text-align: center;
}

/* ── Tabs currículum ── */
.cv-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.cv-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: var(--texto-muted);
    transition: all 0.25s ease;
}
.cv-tab:hover {
    border-color: var(--azul);
    color: var(--azul);
}
.cv-tab.active {
    background: var(--azul);
    border-color: var(--azul);
    color: #fff;
}
.cv-panel        { display: none; }
.cv-panel.active {
    display: block;
    animation: fadeUp 0.4s ease both;
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--azul), var(--verde));
}
.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--azul);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--azul);
}
.timeline-item:hover::before {
    background: var(--verde);
    box-shadow: 0 0 0 2px var(--verde);
    transition: all 0.3s ease;
}
.timeline-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--texto-muted);
    margin: 0;
}
.timeline-item strong {
    color: var(--texto);
    display: block;
    margin-bottom: 0.15rem;
}

/* ── Carrusel universidades ── */
.unis-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.unis-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: scrollUnis 20s linear infinite;
}
.unis-track:hover { animation-play-state: paused; }
@keyframes scrollUnis {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.unis-logo {
    height: 180px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}
.unis-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── Medios — carrusel vertical ── */
.media-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.media-card:hover {
    box-shadow: 0 10px 30px rgba(95,114,133,0.12);
    transform: translateY(-4px);
    border-color: var(--azul);
}
.media-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background-color: rgba(95,114,133,0.08);
    color: var(--azul);
}
#media-track-wrapper {
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
#media-prev:hover,
#media-next:hover {
    background: var(--azul) !important;
    color: #fff !important;
}

/* ── Carrusel sociedades científicas ── */
.socs-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.socs-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: scrollSocs 18s linear infinite;
}
.socs-track:hover { animation-play-state: paused; }
@keyframes scrollSocs {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.socs-logo {
    height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}
.socs-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── Pills de técnicas y sociedades ── */
.tecnica-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--azul);
    color: var(--azul);
    background: rgba(95,114,133,0.05);
    transition: all 0.25s ease;
    cursor: default;
}
.tecnica-pill:hover {
    background: var(--azul);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95,114,133,0.2);
}

@media (max-width: 639px) {
    .tecnica-pill {
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    .tecnica-pill i {
        font-size: 0.75rem;
    }
}

/* ── CTA sobre mí ── */
.sobre-cta {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.sobre-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(95, 114, 133, 0.82);
}

/* ════════════════════════════════════════════════
   ADICCIONES — página pilar
════════════════════════════════════════════════ */

/* ── Hero ── */
.adicciones-hero {
    min-height: 80vh;
    background-image: url('https://josecaracuel.com/wp-content/uploads/2026/06/Slider-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}
.adicciones-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 30, 0.80) 0%,
        rgba(57, 163, 212, 0.45) 100%
    );
}

/* ── Tarjetas de adicción ── */
.adiccion-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.adiccion-card:hover {
    border-color: var(--azul);
    box-shadow: 0 16px 40px rgba(57,163,212,0.15);
    transform: translateY(-6px);
}
.adiccion-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: rgba(57,163,212,0.1);
    color: var(--azul);
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}
.adiccion-card:hover .adiccion-card-icon {
    background-color: var(--azul);
    color: #fff;
}
.adiccion-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    background: rgba(184,198,38,0.12);
    color: var(--verde-dark);
    margin-bottom: 1rem;
}
.adiccion-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
    margin-top: auto;
    padding-top: 1.25rem;
    transition: gap 0.2s ease, color 0.2s ease;
}
.adiccion-card-link:hover {
    color: var(--azul-dark);
    gap: 0.7rem;
    text-decoration: none;
}

/* ── Tarjeta destacada (patología dual) ── */
.adiccion-card-featured {
    background: linear-gradient(135deg, var(--azul) 0%, #2a6e8f 100%);
    border-color: transparent;
    color: #fff;
}
.adiccion-card-featured:hover {
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(57,163,212,0.35);
}
.adiccion-card-featured .adiccion-card-icon {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}
.adiccion-card-featured:hover .adiccion-card-icon {
    background-color: rgba(255,255,255,0.3);
    color: #fff;
}
.adiccion-card-featured .adiccion-card-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.adiccion-card-featured h3 { color: #fff !important; }
.adiccion-card-featured p  { color: rgba(255,255,255,0.85) !important; }
.adiccion-card-featured .adiccion-card-link       { color: #fff; }
.adiccion-card-featured .adiccion-card-link:hover { color: rgba(255,255,255,0.8); }

/* ── Pasos del tratamiento ── */
.paso-item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.paso-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(57,163,212,0.3);
    position: relative;
    z-index: 1;
}
.paso-connector {
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--azul), rgba(57,163,212,0.1));
}

/* ════════════════════════════════════════════════
   SINGLE PÁGINAS — adicción y salud mental
════════════════════════════════════════════════ */

/* ── Hero single adicción ── */
.adiccion-single-hero {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    padding-top: 8rem;
}
.adiccion-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 30, 0.4) 0%,
        rgba(10, 20, 30, 0.82) 100%
    );
}

/* ── Hero single salud mental ── */
.sm-single-hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    padding-top: 8rem;
}
.sm-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 30, 0.4) 0%,
        rgba(10, 20, 30, 0.82) 100%
    );
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span   { color: rgba(255,255,255,0.35); }
.breadcrumb strong { color: var(--verde); }

/* ── TOC ── */
.toc {
    background: #fff;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    padding: 1.5rem;
}
.toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texto-muted);
    margin-bottom: 1rem;
}
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.toc-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto-muted);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}
.toc-list li a:hover,
.toc-list li a.active {
    background-color: rgba(57,163,212,0.08);
    color: var(--azul);
}
.toc-list li a i {
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--azul);
    opacity: 0.7;
}

/* ── Secciones ── */
.content-section { scroll-margin-top: 7rem; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

/* ── Síntomas ── */
.sintoma-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.sintoma-item:hover {
    border-color: var(--azul);
    box-shadow: 0 6px 20px rgba(57,163,212,0.1);
}
.sintoma-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    background: rgba(57,163,212,0.1);
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ── Causas ── */
.causa-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border-left: 4px solid var(--azul);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s, transform 0.25s;
}
.causa-card:hover {
    box-shadow: 0 8px 24px rgba(57,163,212,0.12);
    transform: translateY(-3px);
}
.causa-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    background: rgba(57,163,212,0.1);
    color: var(--azul);
}

/* ── Pasos del tratamiento ── */
.paso-single {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.paso-single:hover {
    border-color: var(--azul);
    box-shadow: 0 8px 24px rgba(57,163,212,0.1);
}
.paso-single-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul), #2a6e8f);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(57,163,212,0.3);
}

@media (max-width: 639px) {
    .paso-single {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ── Alerta médica ── */
.alerta-medica {
    background: linear-gradient(135deg, rgba(239,68,68,0.06) 0%, rgba(239,68,68,0.02) 100%);
    border: 2px solid rgba(239,68,68,0.25);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* ── Nota informativa ── */
.nota-info {
    background: linear-gradient(135deg, rgba(57,163,212,0.06) 0%, rgba(57,163,212,0.02) 100%);
    border: 2px solid rgba(57,163,212,0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* ── Carrusel horizontal (solo móvil, CSS puro, sin JS) ── */
@media (max-width: 639px) {
    .mobile-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-padding-left: 1rem;
        margin: 0 -1rem;
        padding: 0.25rem 1rem 0.75rem;
    }
    .mobile-carousel::-webkit-scrollbar {
        display: none;
    }
    .mobile-carousel > * {
        scroll-snap-align: start;
        flex: 0 0 85%;
    }
}

/* ════════════════════════════════════════════════
   SALUD MENTAL — página pilar
════════════════════════════════════════════════ */

/* ── Hero ── */
.salud-mental-hero {
    min-height: 80vh;
    background-image: url('https://josecaracuel.com/wp-content/uploads/2026/06/salud-mental.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}
.salud-mental-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 30, 0.80) 0%,
        rgba(57, 163, 212, 0.40) 100%
    );
}

/* ── Tarjetas de servicio ── */
.sm-card {
    position: relative;
    border-radius: 1.25rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.sm-card:hover {
    border-color: var(--azul);
    box-shadow: 0 16px 40px rgba(57,163,212,0.15);
    transform: translateY(-6px);
}
.sm-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: rgba(57,163,212,0.1);
    color: var(--azul);
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}
.sm-card:hover .sm-card-icon {
    background-color: var(--azul);
    color: #fff;
}
.sm-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
    margin-top: auto;
    padding-top: 1.25rem;
    transition: gap 0.2s ease, color 0.2s ease;
}
.sm-card-link:hover {
    color: var(--azul-dark);
    gap: 0.7rem;
    text-decoration: none;
}

/* ── Tarjeta destacada ── */
.sm-card-featured {
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-dark) 100%);
    border-color: transparent;
}
.sm-card-featured:hover {
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(184,198,38,0.3);
}
.sm-card-featured .sm-card-icon {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}
.sm-card-featured:hover .sm-card-icon {
    background-color: rgba(255,255,255,0.3);
    color: #fff;
}
.sm-card-featured h3 { color: #fff !important; }
.sm-card-featured p  { color: rgba(255,255,255,0.88) !important; }
.sm-card-featured .sm-card-link       { color: #fff; }
.sm-card-featured .sm-card-link:hover { color: rgba(255,255,255,0.8); }

/* ── Diferenciadores ── */
.diferenciador-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.diferenciador-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul), #2a6e8f);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(57,163,212,0.3);
}

/* ════════════════════════════════════════════════
   PSIQUIATRA ONLINE — página pilar
════════════════════════════════════════════════ */
/* ── HERO ── */
.psiquiatra-online-hero {
    min-height: 90vh;
    background-image: url('https://josecaracuel.com/wp-content/uploads/2026/06/psiquiatraonline.png');
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}
.psiquiatra-online-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 30, 0.85) 0%,
        rgba(57, 163, 212, 0.35) 100%
    );
}
@media (max-width: 639px) {
    .psiquiatra-online-hero {
        background-attachment: scroll;
    }
}
/* ── CÓMO FUNCIONA — pasos visuales ── */
.online-paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.online-paso-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul), #2a6e8f);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(57,163,212,0.35);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.online-paso-connector {
    display: none;
}
@media (min-width: 1024px) {
    .online-paso-connector {
        display: block;
        position: absolute;
        top: 30px;
        left: calc(50% + 30px);
        width: calc(100% - 60px);
        height: 2px;
        background: linear-gradient(to right, var(--azul), rgba(57,163,212,0.2));
    }
}

/* ── OBJECIONES — tarjetas Q&A ── */
.objecion-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.objecion-card:hover {
    border-color: var(--azul);
    box-shadow: 0 10px 30px rgba(57,163,212,0.1);
}
.objecion-q {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.objecion-q-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(57,163,212,0.12);
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* ── SERVICIOS ONLINE ── */
.online-service-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.online-service-card:hover {
    border-color: var(--azul);
    box-shadow: 0 12px 32px rgba(57,163,212,0.12);
    transform: translateY(-4px);
}
.online-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: rgba(57,163,212,0.1);
    color: var(--azul);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 1.25rem;
}
.online-service-card:hover .online-service-icon {
    background-color: var(--azul);
    color: #fff;
}
.online-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    transition: gap 0.2s ease, color 0.2s ease;
}
.online-service-link:hover {
    color: var(--azul-dark);
    gap: 0.7rem;
    text-decoration: none;
}

/* ── PLATAFORMAS ── */
.plataforma-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.plataforma-badge:hover {
    border-color: var(--azul);
    box-shadow: 0 4px 12px rgba(57,163,212,0.1);
}
/* ── PLATAFORMAS — ajuste móvil ── */
@media (max-width: 639px) {
    .plataforma-badge {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }
}
/* ════════════════════════════════════════════════
   PATOLOGÍA DUAL
════════════════════════════════════════════════ */
.patologia-dual-hero {
    min-height: 80vh;
    background-image: url('https://josecaracuel.com/wp-content/uploads/2026/06/patalogia-dual.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}
.patologia-dual-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 30, 0.88) 0%,
        rgba(57, 163, 212, 0.30) 100%
    );
}
@media (max-width: 639px) {
    .patologia-dual-hero {
        background-attachment: scroll;
    }
}
/* ── DEFINICIÓN DESTACADA (featured snippet) ── */
.definicion-box {
    background: linear-gradient(135deg, rgba(57,163,212,0.06) 0%, rgba(184,198,38,0.06) 100%);
    border: 2px solid rgba(57,163,212,0.2);
    border-left: 5px solid var(--azul);
    border-radius: 1rem;
    padding: 2rem;
}
@media (max-width: 639px) {
    .definicion-box {
        padding: 1.25rem;
    }
}
/* ── COMBINACIONES — tarjetas ── */
.combinacion-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.combinacion-card:hover {
    border-color: var(--azul);
    box-shadow: 0 12px 32px rgba(57,163,212,0.12);
    transform: translateY(-4px);
}
.combinacion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.combinacion-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.combinacion-tag-adiccion {
    background: rgba(57,163,212,0.1);
    color: var(--azul);
}
.combinacion-tag-mental {
    background: rgba(184,198,38,0.12);
    color: var(--verde-dark);
}
.combinacion-plus {
    font-size: 1rem;
    font-weight: 800;
    color: var(--texto-muted);
}
/* ── POR QUÉ FALLAN — bloque de error/solución ── */
.fracaso-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 0.875rem;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.15);
}
.fracaso-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
.solucion-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 0.875rem;
    background: rgba(57,163,212,0.04);
    border: 1px solid rgba(57,163,212,0.15);
}
.solucion-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(57,163,212,0.1);
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
/* ── ESTADÍSTICAS ── */
.dual-stat {
    padding: 1.75rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.dual-stat:hover {
    border-color: var(--azul);
    box-shadow: 0 8px 24px rgba(57,163,212,0.1);
}
@media (max-width: 639px) {
    .dual-stat {
        padding: 1rem;
    }
}

/* ════════════════════════════════════════════════
   PODCAST — breadcrumb de página
════════════════════════════════════════════════ */
.podcast-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    flex-wrap: wrap;
}
.podcast-breadcrumb a {
    color: var(--texto-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.podcast-breadcrumb a:hover { color: var(--azul); }
.podcast-breadcrumb span   { color: #d1d5db; }
.podcast-breadcrumb strong { color: var(--azul); }

/* ════════════════════════════════════════════════
   PODCAST Y VÍDEOS
════════════════════════════════════════════════ */


.video-featured {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.video-featured .video-wrapper,
.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}
.video-featured .video-wrapper iframe,
.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    box-shadow: 0 12px 32px rgba(57,163,212,0.15);
    transform: translateY(-4px);
    border-color: var(--azul);
}
.video-card-body { padding: 1.25rem; }

.ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    background: rgba(57,163,212,0.1);
    color: var(--azul);
    margin-bottom: 0.75rem;
}
/* ════════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════════ */
/* ── Sidebar — mejoras visuales ── */
.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto-muted);
    margin-bottom: 0.2rem;
}
.sidebar-cat-item:hover {
    background-color: rgba(57,163,212,0.07);
    color: var(--azul);
    text-decoration: none;
}
.sidebar-cat-count {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    background: rgba(57,163,212,0.08);
    color: var(--azul);
}
.sidebar-post-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background-color 0.2s;
}
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover { text-decoration: none; }
.sidebar-post-img {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(57,163,212,0.06);
}
.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sidebar-post-item:hover .sidebar-post-img img { transform: scale(1.05); }
.sidebar-post-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto);
    line-height: 1.4;
    transition: color 0.2s;
    margin: 0;
}
.sidebar-post-item:hover .sidebar-post-title { color: var(--azul); }
.sidebar-post-date {
    font-size: 0.7rem;
    color: var(--texto-muted);
}
/* =============================================
   CONTACTO
   ============================================= */
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* CF7 — reset contenedor */
.wpcf7-form p {
    margin: 0 0 1rem 0;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(128,155,140,0.15);
    background: #fff;
}

.wpcf7-form textarea {
    min-height: 130px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--verde);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.03em;
    font-family: inherit;
}

.wpcf7-form input[type="submit"]:hover {
    background: #3d6b58;
    transform: translateY(-1px);
}

.wpcf7-acceptance label {
    font-size: 0.82rem;
    color: #888;
}

.wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: #e05555;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: none !important;
}

/* Radio modalidad */
.wpcf7-radio .wpcf7-list-item {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
}

.wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    background: #fafafa;
    transition: all 0.2s ease;
}

.wpcf7-radio .wpcf7-list-item input[type="radio"] {
    display: none;
}

.wpcf7-radio .wpcf7-list-item input[type="radio"]:checked + span,
.wpcf7-radio .wpcf7-list-item:has(input:checked) label {
    border-color: var(--verde);
    background: rgba(128,155,140,0.1);
    color: #3d6b58;
}

.cf7-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin: 0 0 0.5rem 0 !important;
}

/* =============================================
   PÁGINAS LEGALES
   ============================================= */

/* Índice / TOC */
.legal-toc-link {
    display: block;
    font-size: 0.88rem;
    color: #3d6b58;
    padding: 0.2rem 0;
    text-decoration: none;
    transition: padding-left 0.2s ease;
}
.legal-toc-link:hover {
    padding-left: 6px;
    color: var(--verde);
}
.legal-toc-link::before {
    content: '→ ';
    opacity: 0.5;
}

/* Contenido */
.legal-content {
    font-size: 0.97rem;
    line-height: 1.85;
    color: #444;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3d6b58;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e8f0eb;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #555;
    margin: 1.5rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul, 
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--verde);
    text-decoration: underline;
}

.legal-content strong {
    color: #333;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.legal-content th {
    background: #f0f5f2;
    color: #3d6b58;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #d0e0d8;
}

.legal-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #eee;
}

.legal-content tr:last-child td {
    border-bottom: none;
}

/* =============================================
   BLOG
   ============================================= */
/* ── HERO ── */
.blog-hero {
    background-image: url('https://josecaracuel.com/wp-content/uploads/2026/06/blog.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 4rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 30, 0.85) 0%,
        rgba(57, 163, 212, 0.35) 100%
    );
}
@media (max-width: 639px) {
    .blog-hero {
        background-attachment: scroll;
    }
}

/* ── POST DESTACADO ── */
.post-featured {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 1023px) {
    .post-featured { grid-template-columns: 1fr; }
    .post-featured-img { height: 240px; min-height: 240px; }
}
.post-featured:hover {
    box-shadow: 0 20px 50px rgba(57,163,212,0.15);
    transform: translateY(-4px);
}
.post-featured-img {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}
.post-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-featured:hover .post-featured-img img {
    transform: scale(1.04);
}
.post-featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 639px) {
    .post-featured-body {
        padding: 1.5rem;
    }
}

/* ── TARJETAS DE POST ── */
.post-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 12px 32px rgba(57,163,212,0.12);
    transform: translateY(-4px);
    border-color: var(--azul);
}
.post-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card-img img {
    transform: scale(1.05);
}
.post-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(57,163,212,0.1) 0%, rgba(184,198,38,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--azul);
    opacity: 0.5;
}
.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    transition: gap 0.2s ease;
}
.post-card-link:hover {
    gap: 0.7rem;
    color: var(--azul-dark);
    text-decoration: none;
}

/* ── CATEGORÍA BADGE ── */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    background: rgba(57,163,212,0.1);
    color: var(--azul);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.cat-badge:hover {
    background: var(--azul);
    color: #fff;
    text-decoration: none;
}

/* ── SIDEBAR ── */
.blog-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-widget {
    background: #fff;
    border-radius: 1.25rem;
    border: 2px solid #e5e7eb;
    padding: 1.5rem;
}
.sidebar-widget-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texto-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}
.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto-muted);
}
.sidebar-cat-item:hover {
    background-color: rgba(57,163,212,0.06);
    color: var(--azul);
    text-decoration: none;
}
.sidebar-cat-count {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    background: #f3f4f6;
    color: var(--texto-muted);
}
.sidebar-post-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
}
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 0.625rem;
    overflow: hidden;
    background: rgba(57,163,212,0.08);
}
.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-post-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto);
    line-height: 1.4;
    transition: color 0.2s;
}
.sidebar-post-item:hover .sidebar-post-title { color: var(--azul); }
.sidebar-post-date {
    font-size: 0.7rem;
    color: var(--texto-muted);
    margin-top: 0.3rem;
}

/* ── PAGINACIÓN ── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    color: var(--texto-muted);
    background: #fff;
}
.blog-pagination a:hover {
    border-color: var(--azul);
    color: var(--azul);
    text-decoration: none;
}
.blog-pagination .current {
    background: var(--azul);
    border-color: var(--azul);
    color: #fff;
}

/* ── SIN POSTS ── */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 1.25rem;
    border: 2px dashed #e5e7eb;
}

/*==============================
 * OCULTAR RECAPTCHA
 * =============================*/
.grecaptcha-badge {
    visibility: hidden;
}

/* ═══════════════════════════════════════════
   BOTÓN FLOTANTE WHATSAPP
═══════════════════════════════════════════ */
#whatsapp.whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--azul);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#whatsapp.whatsapp.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#whatsapp.whatsapp:hover {
    transform: scale(1.05);
    color: #ffffff;
    text-decoration: none;
}
#whatsapp.whatsapp.visible:hover {
    transform: translateY(0) scale(1.05);
}
#whatsapp.whatsapp i {
    font-size: 1.25rem;
}
    #whatsapp.whatsapp span {
        display: none;
    }
@media (max-width: 639px) {
    #whatsapp.whatsapp {
        bottom: 1rem;
        right: 1rem;
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    #whatsapp.whatsapp i {
        font-size: 1.4rem;
    }
}