/* ============================================================
   GLOBAL — Variables, Reset, Tipografía, Header, Footer, Botones
   Clínica Ibiza Theme v1.0.0
   ============================================================ */

/* --- Variables --- */
:root {
    --font: 'DM Sans', sans-serif;
    --navy: #0C1B2A;
    --navy-mid: #142D42;
    --navy-light: #1a3d58;
    --accent: #1D3250;
    --accent-hover: #162842;
    --accent-dark: #1D3250;
    --accent-dark-hover: #162842;
    --accent-light: rgba(60,141,158,0.1);
    --accent-10: rgba(60,141,158,0.10);
    --accent-20: rgba(60,141,158,0.20);
    --hoja: #5BB8C4;
    --text-primary: #0C1B2A;
    --text-secondary: #5F7A8A;
    --text-muted: #8A9DAB;
    --bg-light: #EFF7FA;
    --bg-soft: #F5FAFB;
    --border: #D6E4EB;
    --border-hover: #B8CED8;
    --white: #fff;
    --star: #FBBF24;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* --- Reset --- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text-primary); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* --- Botones --- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: 50px; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,50,80,0.35); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* --- Header sticky transparente --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 28px; display: flex; align-items: center; justify-content: space-between;
    background: transparent; transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
/* Fix WP admin bar empujando el header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    /* backdrop-filter quitado (23-jul-2026): desenfocar una barra fija sobre el
       vídeo del hero obliga a recalcular el blur en cada fotograma → tirones y
       calentón en equipos modestos. Con fondo al 97% el desenfoque no se ve.
       (Mismo criterio que el backdrop-filter ya retirado del hero.) */
    padding: 12px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; overflow: visible; }
.site-header, .header-inner, .site-header__logo-img { overflow: visible !important; }

/* Logo */
.site-header__logo { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: color 0.3s; }
.site-header__logo span { color: var(--hoja); }
.site-header.scrolled .site-header__logo { color: var(--navy); text-shadow: none; }
.site-header--light .site-header__logo { color: var(--navy); text-shadow: none; }

/* Logo image — inversión para fondo oscuro */
.site-header__logo-img img { height: 80px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s, height 0.3s; }
.site-header.scrolled .site-header__logo-img img { filter: none; height: 42px; }
.site-header--light .site-header__logo-img img { filter: none; height: 56px; }

/* Nav */
.site-header__nav { display: flex; gap: 4px; align-items: center; }
.site-header__nav > a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: color 0.2s; padding: 10px 16px; white-space: nowrap; }
.site-header__nav > a:hover { color: #fff; }
.site-header.scrolled .site-header__nav > a { color: var(--text-secondary); text-shadow: none; }
.site-header.scrolled .site-header__nav > a:hover { color: var(--text-primary); }
.site-header--light .site-header__nav > a { color: var(--text-secondary); text-shadow: none; }

/* --- Dropdown triggers --- */
.nav-dd { position: static; display: flex; align-items: center; }
.nav-dd__trigger { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: color 0.2s; padding: 10px 16px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-dd__trigger:hover { color: #fff; }
.site-header.scrolled .nav-dd__trigger { color: var(--text-secondary); text-shadow: none; }
.site-header.scrolled .nav-dd__trigger:hover { color: var(--text-primary); }
.site-header--light .nav-dd__trigger { color: var(--text-secondary); text-shadow: none; }
.nav-dd__chevron { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.3s; }
.nav-dd:hover .nav-dd__chevron { transform: rotate(-135deg); }

/* --- Dropdown panel --- */
.nav-dd__panel {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--white); border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 16px; opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    pointer-events: none; max-width: calc(100vw - 48px);
}
/* Puente invisible grande para no perder el hover al bajar el ratón */
.nav-dd__panel::before { content: ''; position: absolute; top: -40px; left: -20px; right: -20px; height: 40px; }
.nav-dd:hover .nav-dd__panel { opacity: 1; visibility: visible; pointer-events: auto; }

/* --- Grid layouts --- */
.nav-dd__grid { display: grid; gap: 12px; }
.nav-dd__grid--3 { grid-template-columns: repeat(3, 210px) 260px; }
.nav-dd__grid--1 { grid-template-columns: 280px 260px; }

/* --- Service cards --- */
.svc-card { padding: 20px 18px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none; display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.svc-card:hover { border-color: var(--hoja); background: var(--bg-soft); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,184,196,0.1); }
.svc-card__img { width: 100%; height: 100px; border-radius: 10px; margin-bottom: 14px; background-size: cover; background-position: center; flex-shrink: 0; }
.svc-card__img--faciales    { background: url('/wp-content/uploads/2026/05/menu-faciales-clinica-ibiza-madrid.webp') center/cover no-repeat; }
.svc-card__img--hialuronico { background: url('/wp-content/uploads/2026/05/menu-acido-hialuronico-clinica-ibiza-madrid.webp') center/cover no-repeat; }
.svc-card__img--corporales  { background: url('/wp-content/uploads/2026/05/menu-tratamientos-corporales-clinica-ibiza-madrid.webp') center/cover no-repeat; }
.svc-card__img--cirugia     { background: url('/wp-content/uploads/2026/05/menu-cirugia-estetica-clinica-ibiza-madrid.webp') center/cover no-repeat; }
.svc-card__img--injerto     { background: url('/wp-content/uploads/2026/05/menu-injerto-capilar-clinica-ibiza-madrid.webp') center/cover no-repeat; }
.svc-card__img--tratcap     { background: url('/wp-content/uploads/2026/05/menu-tratamientos-capilares-clinica-ibiza-madrid.webp') center/cover no-repeat; }
.svc-card__title { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.svc-card__desc { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.svc-card__count { font-size: 0.72rem; font-weight: 700; color: #4A9DA8; transition: color 0.3s; }
.svc-card:hover .svc-card__count { color: var(--hoja); }

/* Highlights card (Capilar > Destacados) */
.svc-card--highlights { justify-content: flex-start; gap: 2px; }
.svc-card__label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.svc-sub { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; transition: all 0.3s; }
.svc-sub:hover { background: var(--bg-light); }
.svc-sub__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.3s; }
.svc-sub:hover .svc-sub__dot { background: var(--hoja); }
.svc-sub strong { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }

/* Promo image */
.nav-dd__promo { border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; grid-row: 1 / -1; }
.nav-dd__grid--3 .nav-dd__promo { grid-column: 4; }
.nav-dd__grid--1 .nav-dd__promo { grid-column: 2; }
/* Fondo de respaldo si por lo que sea no hay oferta (la tarjeta .menuoffer cubre esto cuando existe) */
.nav-dd__promo--tratamientos,
.nav-dd__promo--cirugia,
.nav-dd__promo--capilar { background: linear-gradient(160deg, var(--navy-mid, #1d3250), var(--navy, #0c1b2a)); }

/* === Tarjeta "oferta viva" del menú (desktop mega-menú + acordeón móvil) === */
.menuoffer { position: relative; display: block; width: 100%; height: 100%; min-height: 190px; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; }
.mnav-sub__promo .menuoffer { min-height: 0; aspect-ratio: 4 / 3; }
.menuoffer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease, ease); }
.menuoffer:hover .menuoffer__img { transform: scale(1.05); }
.menuoffer__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 15px 13px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(to top, rgba(12,27,42,.93) 35%, rgba(12,27,42,.55) 70%, rgba(12,27,42,0)); }
.menuoffer__badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #e8763a; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 14px rgba(232,118,58,.45); }
.menuoffer__name { font-size: 0.98rem; font-weight: 800; line-height: 1.2; color: #fff; }
.menuoffer__price { font-size: 0.95rem; color: #fff; margin-top: 2px; }
.menuoffer__price s { opacity: .6; font-size: 0.78rem; margin-right: 6px; }
.menuoffer__price b { font-weight: 800; }
.menuoffer__save { align-self: flex-start; margin-top: 7px; font-size: 0.72rem; font-weight: 800; color: #0c1b2a; background: var(--hoja, #5bb8c4); padding: 3px 10px; border-radius: 999px; }
.menuoffer__cta { margin-top: 9px; font-size: 0.76rem; font-weight: 700; color: #fff; opacity: .92; }
.menuoffer:hover .menuoffer__cta { text-decoration: underline; }

/* Bottom CTA row */
.nav-dd__bottom { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.nav-dd__grid--3 .nav-dd__bottom { grid-column: 1 / 4; }
.nav-dd__grid--1 .nav-dd__bottom { grid-column: 1 / 2; }
.nav-dd__cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 50px; background: var(--navy); color: var(--white); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.3s; white-space: nowrap; position: relative; }
.nav-dd__cta:hover { background: var(--navy-mid); }
.nav-dd__cta--destacado { background: var(--navy); }
.nav-dd__cta--destacado:hover { background: var(--navy-mid); }
.nav-dd__cta--destacado svg { color: var(--hoja); }
.nav-dd__cta-badge { position: absolute; top: -8px; right: -6px; background: var(--hoja); color: var(--white); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(12,27,42,0.18); line-height: 1; }

/* Actions (phone + CTA) */
.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-header__phone { color: rgba(255,255,255,0.6); font-size: 0.88rem; font-weight: 500; padding: 9px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.18); transition: all 0.3s; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.site-header__phone:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.site-header.scrolled .site-header__phone { color: var(--text-secondary); border-color: var(--border); }
.site-header.scrolled .site-header__phone:hover { color: var(--text-primary); border-color: var(--text-muted); }
.site-header--light .site-header__phone { color: var(--text-secondary); border-color: var(--border); }

/* CTA */
.site-header__cta {
    font-size: 13px; font-weight: 700; padding: 11px 26px; border-radius: 50px;
    background: var(--hoja); color: var(--navy); border: none; cursor: pointer;
    font-family: var(--font); transition: all 0.3s; text-decoration: none; white-space: nowrap;
}
.site-header__cta:hover { background: #4A9DA8; transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s ease; border-radius: 2px; }
.site-header.scrolled .hamburger span,
.site-header--light .hamburger span { background: var(--navy); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .site-header__nav { display: none; }
    .site-header__actions { display: none; }
    .hamburger { display: block; }
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
    background: var(--navy);
    display: flex; flex-direction: column; padding: 80px 0 0;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.mobile-menu.active { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.mobile-nav { flex: 1; padding: 8px 20px 0; overflow-y: auto; }
.mnav-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mnav-item:last-child { border-bottom: none; }
.mnav-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 16px 0;
    font-family: var(--font); font-size: 17px; font-weight: 600;
    color: #fff; letter-spacing: -0.01em;
    background: none; border: none; cursor: pointer;
    text-decoration: none; transition: color 0.2s;
}
.mnav-trigger:active { color: var(--hoja); }
.mnav-trigger__count {
    font-size: 11px; font-weight: 500; color: var(--hoja);
    background: rgba(91,184,196,0.15); padding: 2px 8px;
    border-radius: 20px; margin-left: 8px; letter-spacing: 0.02em;
}
.mnav-trigger__chevron {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border-radius: 8px; flex-shrink: 0;
    transition: background 0.2s, transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.mnav-trigger__chevron svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.5); transition: stroke 0.2s, transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94); }
.mnav-item.open .mnav-trigger__chevron { background: rgba(91,184,196,0.15); }
.mnav-item.open .mnav-trigger__chevron svg { stroke: var(--hoja); transform: rotate(180deg); }
a.mnav-trigger .mnav-trigger__arrow { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
a.mnav-trigger .mnav-trigger__arrow svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.2); transition: stroke 0.2s, transform 0.2s; }
a.mnav-trigger:active .mnav-trigger__arrow svg { stroke: var(--hoja); transform: translateX(3px); }
.mnav-sub { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }
.mnav-item.open .mnav-sub { max-height: 800px; }
.mnav-sub__inner { padding: 0 0 12px; }
.mnav-sub__link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin-bottom: 2px; border-radius: 12px; text-decoration: none; transition: background 0.2s; }
.mnav-sub__link:active { background: rgba(255,255,255,0.08); }
.mnav-sub__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hoja); flex-shrink: 0; opacity: 0.6; }
.mnav-sub__text { flex: 1; }
.mnav-sub__text strong { display: block; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.8); letter-spacing: -0.01em; }
.mnav-sub__text span:not(.mnav-sub__count) { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.5); margin-top: 1px; line-height: 1.3; }
.mnav-sub__count { display: inline-block; font-size: 11px; font-weight: 500; color: var(--hoja); background: rgba(91,184,196,0.15); padding: 2px 8px; border-radius: 20px; margin-top: 3px; letter-spacing: 0.02em; }
.mnav-sub__arrow { width: 14px; height: 14px; stroke: rgba(255,255,255,0.2); flex-shrink: 0; transition: stroke 0.2s; }
.mnav-sub__link:active .mnav-sub__arrow { stroke: var(--hoja); }
.mnav-sub__sep { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 14px; }
.mnav-sub__label { display: block; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 14px 4px; }
.mnav-sub__promo { width: 100%; aspect-ratio: 4/3; border-radius: 12px; background-size: cover; background-position: center; margin: 8px 0 0; }
.mnav-sub__cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 12px 16px; background: rgba(91,184,196,0.15); border: 1px solid rgba(91,184,196,0.2); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--hoja); text-decoration: none; transition: background 0.2s; position: relative; }
.mnav-sub__cta:active { background: rgba(91,184,196,0.25); border-color: rgba(91,184,196,0.4); }
.mnav-sub__cta svg { width: 14px; height: 14px; stroke: var(--hoja); flex-shrink: 0; }
.mnav-sub__cta--destacado { background: var(--navy); border-color: var(--navy); color: var(--white); }
.mnav-sub__cta--destacado:active { background: var(--navy-mid); border-color: var(--navy-mid); }
.mnav-sub__cta--destacado svg { stroke: var(--hoja); }
.mnav-sub__cta-badge { position: absolute; top: -8px; right: 12px; background: var(--hoja); color: var(--white); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(12,27,42,0.18); line-height: 1; }
.mobile-cta { padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--navy) 60%, transparent); position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 10px; }
.mobile-cta__primary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; background: var(--hoja); border-radius: 12px; font-family: var(--font); font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: -0.01em; transition: background 0.2s, transform 0.1s; box-shadow: 0 4px 24px rgba(91,184,196,0.3); }
.mobile-cta__primary:active { transform: scale(0.98); background: #4da8b4; }
.mobile-cta__primary svg { width: 16px; height: 16px; stroke: #fff; }
.mobile-cta__row { display: flex; gap: 10px; }
.mobile-cta__secondary { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; font-family: var(--font); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); text-decoration: none; transition: background 0.2s; }
.mobile-cta__secondary:active { background: rgba(255,255,255,0.2); }
.mobile-cta__secondary svg { width: 15px; height: 15px; flex-shrink: 0; }

/* --- Footer --- */
.site-footer {
    background: var(--navy); color: rgba(255,255,255,0.5); padding: 48px 0 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand__name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand__name span { color: var(--hoja); }
.footer-brand__desc { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-social svg { width: 16px; height: 16px; color: rgba(255,255,255,0.7); }

.footer-col__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-contact__item { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.footer-contact__item svg { width: 16px; height: 16px; color: var(--hoja); flex-shrink: 0; }
.footer-contact__item a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact__item a:hover { color: #fff; }

.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom__copy { font-size: 12px; }
.footer-bottom__copy strong { color: #fff; }
.footer-bottom__legal { display: flex; gap: 16px; }
.footer-bottom__legal a { font-size: 12px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-bottom__legal a:hover { color: #fff; }

/* --- Floating CTA Bar --- */
.floating-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: rgba(255,255,255,0.97);
    /* backdrop-filter quitado (23-jul-2026): barra fija con blur se recalcula en
       cada frame de scroll/vídeo → tirones en equipos modestos. Se sube el fondo
       de 0.95 a 0.97 para compensar; visualmente equivalente. */
    border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 12px 0; transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.floating-cta-bar.visible { transform: translateY(0); }
.floating-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.floating-cta-inner > span { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.floating-cta-buttons { display: flex; gap: 10px; }
.floating-cta-buttons .btn-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-size: 15px; font-weight: 600;
    padding: 14px 32px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.floating-cta-buttons .btn-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.floating-cta-buttons .btn-cta--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.floating-cta-buttons .btn-cta--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 0 30px rgba(29,50,80,0.25); transform: translateY(-2px); }
.floating-cta-buttons .btn-cta--wa { background: #25D366; color: #fff; border-color: #25D366; }
.floating-cta-buttons .btn-cta--wa:hover { background: #1EBE5A; border-color: #1EBE5A; box-shadow: 0 0 30px rgba(37,211,102,0.25); transform: translateY(-2px); }
@media (max-width: 768px) {
    .floating-cta-inner { flex-direction: column; gap: 8px; }
    .floating-cta-inner > span { font-size: 0.82rem; }
    .floating-cta-buttons { width: 100%; }
    .floating-cta-buttons .btn-cta { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }
}

/* --- Honeypot (invisible para bots) --- */
.ci-hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --- Form Feedback --- */
.ci-form-feedback { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-top: 10px; }
.ci-form-feedback svg { width: 16px; height: 16px; flex-shrink: 0; }
.ci-form-feedback--error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.ci-form-feedback--success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }

/* --- Entry Content (base — aplica en page.php y cualquier template) --- */
.entry-content p { color: var(--navy); margin-bottom: 16px; line-height: 1.8; font-size: 16px; }
.entry-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.entry-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.entry-content ul, .entry-content ol { color: var(--navy); margin-bottom: 16px; line-height: 1.8; font-size: 16px; padding-left: 24px; }
.entry-content ul li, .entry-content ol li { margin-bottom: 6px; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content strong { font-weight: 700; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 16px 20px; margin: 24px 0; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--bg-light); font-weight: 700; font-size: 13px; }

/* --- Stars --- */
.stars { color: var(--star); letter-spacing: 1px; }

/* --- Privacy Modal (global — sin enlace rastreable) --- */
.ci-privacy-trigger { color: var(--accent); text-decoration: underline; cursor: pointer; }
.ci-privacy-trigger:hover { color: var(--accent-hover); }
.ci-privacy-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.ci-privacy-modal.open { display: flex; }
.ci-privacy-modal__backdrop { position: absolute; inset: 0; background: rgba(12,27,42,0.5); }
.ci-privacy-modal__dialog { position: relative; background: #fff; border-radius: 12px; max-width: 520px; width: calc(100% - 32px); max-height: 80vh; overflow-y: auto; padding: 28px 28px 24px; box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.ci-privacy-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.ci-privacy-modal__close:hover { color: var(--text-primary); }
.ci-privacy-modal__title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.ci-privacy-modal__body p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 10px; }
.ci-privacy-modal__body p:last-child { margin-bottom: 0; }
.ci-privacy-modal__body strong { color: var(--text-primary); }

/* ============ MODAL EQUIPO (ficha del doctor) ============ */
.ci-equipo-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.ci-equipo-modal.open { display: flex; }
.ci-equipo-modal__backdrop { position: absolute; inset: 0; background: rgba(12,27,42,0.55); animation: ciFadeIn .2s ease; }
.ci-equipo-modal__dialog {
    position: relative; background: #fff; border-radius: 16px;
    max-width: 560px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto;
    padding: 0; box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    animation: ciModalUp .25s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes ciFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ciModalUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.ci-equipo-modal__close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 32px; color: var(--text-muted);
    cursor: pointer; line-height: 1; z-index: 2;
}
.ci-equipo-modal__close:hover { color: var(--text-primary); }

.ci-equipo-modal__header {
    display: flex; gap: 18px; padding: 28px 28px 20px; align-items: center;
    background: linear-gradient(135deg, #F0F7FF 0%, #fff 100%);
    border-radius: 16px 16px 0 0;
}
.ci-equipo-modal__photo {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--accent-20);
    flex-shrink: 0;
}
.ci-equipo-modal__heading { flex: 1; }
.ci-equipo-modal__name { font-size: 20px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px; letter-spacing: -0.3px; }
.ci-equipo-modal__role { font-size: 13px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 8px; }
.ci-equipo-modal__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
.ci-equipo-modal__experience, .ci-equipo-modal__colegiado {
    background: var(--white); border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 50px; font-weight: 600;
}
.ci-equipo-modal__colegiado { color: var(--accent); }
.ci-equipo-modal__experience:empty, .ci-equipo-modal__colegiado:empty { display: none; }

.ci-equipo-modal__body { padding: 20px 28px 28px; }
.ci-equipo-modal__bio { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 16px; }
.ci-equipo-modal__bio:empty { display: none; }
.ci-equipo-modal__row {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 0; border-top: 1px solid var(--border);
}
.ci-equipo-modal__row--hidden { display: none; }
.ci-equipo-modal__row-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--accent);
}
.ci-equipo-modal__row-value { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.ci-equipo-modal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ci-equipo-modal__tags:empty { display: none; }
.ci-equipo-modal__tags span {
    font-size: 11px; font-weight: 500; color: var(--accent);
    background: #F0F7FF; border: 1px solid var(--border);
    padding: 4px 10px; border-radius: 50px;
}

/* Card como button — solo reset de estilos nativos del <button>,
   el resto del layout (width, padding, text-align) hereda de .team-card */
button.team-card.ci-equipo-trigger {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.team-card.ci-equipo-trigger:hover .team-card__cta svg { transform: translateX(3px); }

.team-card__cta {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    width: 100%;
    font-size: 12px; font-weight: 700; color: var(--accent);
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.team-card__cta svg { width: 12px; height: 12px; transition: transform .2s; }

.team-section__footer { text-align: center; margin-top: 32px; }

@media (max-width: 520px) {
    .ci-equipo-modal__header { flex-direction: column; text-align: center; gap: 14px; padding: 28px 20px 18px; }
    .ci-equipo-modal__meta { justify-content: center; }
    .ci-equipo-modal__body { padding: 18px 20px 24px; }
}

/* --- Screen readers --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   DOCTOR PROFILE (single-equipo.php)
   ============================================================ */
.doctor-profile { padding: 120px 0 72px; }
.doctor-profile__header {
    display: flex; gap: 40px; align-items: flex-start;
    max-width: 800px; margin: 0 auto 48px;
}
.doctor-profile__photo-wrap { flex-shrink: 0; }
.doctor-profile__photo {
    width: 180px; height: 180px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--accent-20);
}
.doctor-profile__name {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
}
.doctor-profile__role {
    font-size: 14px; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.doctor-profile__formation { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.doctor-profile__member { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.doctor-profile__meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.doctor-profile__exp { font-size: 13px; color: var(--text-muted); }
.doctor-profile__badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: var(--accent);
    background: var(--accent-10); padding: 4px 12px; border-radius: 50px;
}
.doctor-profile__badge svg { width: 12px; height: 12px; }
.doctor-profile__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.doctor-profile__tag {
    font-size: 12px; font-weight: 500; color: var(--accent);
    border: 1px solid var(--accent-20); padding: 4px 14px; border-radius: 50px;
}
.doctor-profile__cv {
    max-width: 800px; margin: 0 auto;
    border-top: 1px solid var(--border); padding-top: 32px;
}
.doctor-profile__cv h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 20px;
}
.doctor-profile__cv .article-content h3 {
    font-size: 14px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 24px; margin-bottom: 6px;
}
.doctor-profile__cv .article-content h3:first-child { margin-top: 0; }
.doctor-profile__cv .article-content p {
    font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 8px;
}
@media (max-width: 768px) {
    .doctor-profile__header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .doctor-profile__photo { width: 140px; height: 140px; }
    .doctor-profile__meta { justify-content: center; }
    .doctor-profile__tags { justify-content: center; }
}
