/* ============================================================================
   Therapy World Center — estilos one-page v2
   Layouts editoriales sobre tema Flatsome. Tipografías las maneja Customizer.
   ============================================================================ */

:root {
    --twc-ink:      #0A1F4D;
    --twc-primary:  #1B3FA0;
    --twc-soft:     #EEF2FB;
    --twc-warm:     #3A6FE0;
    --twc-cream:    #FFFFFF;
    --twc-mono:     ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
    --twc-pad-x:    40px;
    --twc-pad-y:    120px;
    --twc-maxw:     1280px;
}

/* Reset suave dentro de nuestras secciones */
.twc-section *,
.twc-hero * {
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.twc-section img, .twc-hero img { max-width: 100%; height: auto; }
.twc-section p, .twc-hero p { max-width: 100%; }
.twc-hero__lead, .twc-secHead__lead, .twc-services__desc, .twc-special__lead,
.twc-convenios__desc, .twc-contact__lead, .twc-b2b__desc, .twc-pillars__desc,
.twc-facilities__desc, .twc-bignum-foot, .twc-contact__track p {
    max-width: 100%;
}

/* ---- Wrap global ---- */
.twc-wrap {
    max-width: 1280px !important;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 40px !important;
    position: relative;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .twc-wrap { padding: 0 24px !important; }
}
@media (max-width: 480px) {
    .twc-wrap { padding: 0 18px !important; }
}

/* Match Flatsome header container width to our wrap so they align */
body.home .header-main > .flex-row,
body.home .header-bottom > .flex-row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    body.home .header-main > .flex-row,
    body.home .header-bottom > .flex-row { padding: 0 24px; }
}

.twc-section {
    padding: var(--twc-pad-y) 0;
    position: relative;
}
.twc-section--white { background: #FFFFFF; }
.twc-section--soft  { background: var(--twc-soft); }
.twc-section--dark  { background: var(--twc-ink); color: var(--twc-cream); }

/* ---- Atoms ---- */
.twc-eyebrow {
    font-family: var(--twc-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--twc-primary);
    font-weight: 500;
    display: inline-block;
}
.twc-eyebrow--warm   { color: var(--twc-warm); }
.twc-eyebrow--muted  { color: rgba(10,31,77,0.55); }
.twc-section--dark .twc-eyebrow { color: rgba(245,247,251,0.6); }
.twc-section--dark .twc-eyebrow--warm { color: var(--twc-warm); }

.twc-on-dark        { color: var(--twc-cream) !important; }
.twc-on-dark-muted  { color: rgba(245,247,251,0.55) !important; }

.twc-marker {
    font-family: var(--twc-mono);
    font-size: 10px;
    color: var(--twc-primary);
    letter-spacing: 0.1em;
    margin-right: 10px;
    opacity: 0.7;
    display: inline-block;
}
.twc-section--dark .twc-marker { color: var(--twc-warm); opacity: 0.9; }

.twc-display {
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--twc-ink);
    text-wrap: balance;
    margin: 0;
}
.twc-display--xl { font-size: clamp(44px, 6.5vw, 96px); line-height: 0.94; }
.twc-display--lg { font-size: clamp(36px, 5vw, 72px); }
.twc-display--md { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.05; }
.twc-display em,
.twc-display i { font-style: italic; color: var(--twc-primary); }
.twc-on-dark.twc-display em,
.twc-on-dark.twc-display i { color: var(--twc-warm); }

/* Buttons */
.twc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    border: none; cursor: pointer; white-space: nowrap;
}
.twc-btn--lg { padding: 16px 30px; font-size: 14px; }
.twc-btn:hover { transform: translateY(-1px); }
.twc-btn--primary { background: var(--twc-primary); color: var(--twc-cream); }
.twc-btn--primary:hover { background: var(--twc-ink); color: var(--twc-cream); }
.twc-btn--ink     { background: var(--twc-ink); color: var(--twc-cream); }
.twc-btn--ink:hover { background: var(--twc-primary); color: var(--twc-cream); }
.twc-btn--warm    { background: var(--twc-warm); color: var(--twc-ink); }
.twc-btn--warm:hover { background: var(--twc-cream); color: var(--twc-ink); }
.twc-btn--ghost   { background: transparent; color: var(--twc-ink); border: 1px solid rgba(10,31,77,0.25); }
.twc-btn--ghost:hover { background: var(--twc-ink); color: var(--twc-cream); border-color: var(--twc-ink); }
.twc-btn--link    { background: transparent; padding: 14px 8px; text-decoration: underline !important; text-underline-offset: 6px; color: var(--twc-ink); }
.twc-btn--link:hover { color: var(--twc-primary); }

/* Section head pattern (eyebrow izq + display der) */
.twc-secHead {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 64px;
}
.twc-secHead__left {
    position: sticky;
    top: 100px;
    align-self: start;
}
.twc-secHead__kicker {
    font-family: var(--twc-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    margin-top: 14px;
    color: var(--twc-ink);
    opacity: 0.6;
    line-height: 1.5;
}
.twc-section--dark .twc-secHead__kicker { color: rgba(245,247,251,0.55); opacity: 1; }
.twc-secHead__kicker em { font-style: italic; color: var(--twc-primary); opacity: 1; }
.twc-section--dark .twc-secHead__kicker em { color: var(--twc-warm); }
.twc-secHead__lead {
    font-size: 17px;
    line-height: 1.55;
    margin-top: 24px;
    max-width: 640px;
    color: var(--twc-ink);
    opacity: 0.78;
}
.twc-section--dark .twc-secHead__lead { color: rgba(245,247,251,0.78); opacity: 1; }

/* ============================================================================
   HERO
   ============================================================================ */

.twc-hero {
    position: relative;
    padding: 140px 0 0;
    background: var(--twc-cream);
    overflow: hidden;
}
.twc-hero__topbar {
    display: flex; justify-content: space-between;
    font-family: var(--twc-mono); font-size: 11px;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--twc-ink); opacity: 0.55;
    padding-bottom: 32px;
}
.twc-hero__inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 60px;
    align-items: end;
    padding-bottom: 80px;
}
.twc-hero__title {
    font-weight: 400;
    font-size: clamp(56px, 8.5vw, 152px);
    line-height: 0.9;
    letter-spacing: -0.035em;
    color: var(--twc-ink);
    margin: 18px 0 0;
    text-wrap: balance;
}
.twc-hero__title em,
.twc-hero__title i { font-style: italic; color: var(--twc-primary); }
.twc-hero__lead {
    font-size: 18px; line-height: 1.55;
    color: var(--twc-ink); opacity: 0.78;
    max-width: 520px;
    margin-top: 32px;
}
.twc-hero__ctas {
    display: flex; gap: 16px; margin-top: 40px;
    align-items: center; flex-wrap: wrap;
}
.twc-hero__collage {
    position: relative;
    min-height: 580px;
}
.twc-hero__img {
    background-size: cover; background-position: center;
    background-color: var(--twc-soft);
    border: 1px solid rgba(10,31,77,0.08);
}
.twc-hero__img--main {
    position: absolute; top: 0; right: 0;
    width: 100%; height: 440px;
}
.twc-hero__img--alt {
    position: absolute; bottom: 0; left: -40px;
    width: 60%; height: 240px;
    background-color: var(--twc-ink);
    z-index: 2;
}
.twc-hero__stat {
    position: absolute;
    top: 320px; right: -10px;
    background: var(--twc-cream);
    border: 1px solid rgba(10,31,77,0.12);
    padding: 22px 26px; max-width: 270px;
    box-shadow: 0 30px 60px -25px rgba(10,31,77,0.32);
    z-index: 3;
}
.twc-hero__stat-num {
    font-size: 64px; line-height: 1; color: var(--twc-ink);
    margin-top: 8px; letter-spacing: -0.03em;
}
.twc-hero__stat-desc {
    font-size: 13px; opacity: 0.7; margin-top: 8px;
    line-height: 1.4;
}

/* Marquee bar — sticky below header */
.twc-marquee-bar {
    position: sticky;
    top: 90px;
    z-index: 40;
    width: 100%;
    background: var(--twc-primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: top 0.3s ease;
    box-shadow: 0 4px 16px -8px rgba(10,31,77,0.25);
}
.twc-marquee-bar .twc-marquee { border: none; padding: 14px 0; }
.twc-marquee-bar .twc-marquee__track { color: #FFFFFF !important; }
.twc-marquee-bar .twc-marquee__item { color: #FFFFFF !important; }
body.has-scrolled .twc-marquee-bar { top: 70px; }
@media (max-width: 850px) {
    .twc-marquee-bar { top: 70px; }
    body.has-scrolled .twc-marquee-bar { top: 60px; }
}

/* Marquee */
.twc-marquee {
    padding: 18px 0;
    border-top: 1px solid rgba(10,31,77,0.12);
    border-bottom: 1px solid rgba(10,31,77,0.12);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}
.twc-marquee__track {
    display: inline-flex; gap: 48px; white-space: nowrap;
    animation: twc-marquee 50s linear infinite;
    font-family: var(--twc-mono); font-size: 12px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--twc-ink);
    padding-left: 48px;
    will-change: transform;
}
.twc-marquee__item { flex-shrink: 0; }
@keyframes twc-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================================
   B2B HOSPITALES
   ============================================================================ */

.twc-b2b__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 80px;
}
.twc-b2b__media {
    position: relative;
    min-height: 640px;
}
.twc-b2b__photo {
    background-size: cover; background-position: center;
    background-color: var(--twc-ink);
}
.twc-b2b__photo--big {
    position: absolute; top: 0; right: 0;
    width: 80%; height: 480px;
}
.twc-b2b__photo--small {
    position: absolute; bottom: 0; left: 0;
    width: 55%; height: 280px;
    z-index: 2;
}
.twc-b2b__badge {
    position: absolute; bottom: 80px; right: 40px;
    background: var(--twc-cream);
    padding: 24px 28px;
    box-shadow: 0 30px 60px -25px rgba(10,31,77,0.35);
    z-index: 3;
    max-width: 280px;
}
.twc-b2b__badgeBig {
    font-size: 36px; line-height: 1; color: var(--twc-ink);
    margin: 12px 0; letter-spacing: -0.02em;
}
.twc-b2b__badgeBig em { font-style: italic; color: var(--twc-primary); }
.twc-b2b__badgeFoot {
    font-family: var(--twc-mono); font-size: 10px;
    letter-spacing: 0.1em; color: var(--twc-ink); opacity: 0.65;
}
.twc-b2b__pillars { display: grid; gap: 32px; }
.twc-b2b__pillar {
    padding: 24px 0;
    border-top: 1px solid rgba(10,31,77,0.15);
}
.twc-b2b__pillar:last-of-type { border-bottom: 1px solid rgba(10,31,77,0.15); }
.twc-b2b__title {
    font-size: 22px; line-height: 1.2; color: var(--twc-ink);
    margin: 6px 0 8px; font-weight: 500; letter-spacing: -0.01em;
}
.twc-b2b__desc {
    font-size: 15px; line-height: 1.55; opacity: 0.72;
    color: var(--twc-ink); margin: 0;
}
.twc-b2b__cta { margin-top: 24px; align-self: flex-start; }

.twc-b2b__case {
    background: var(--twc-cream);
    padding: 48px;
    border: 1px solid rgba(10,31,77,0.15);
}
.twc-b2b__case .twc-eyebrow { margin-bottom: 24px; display: block; }
.twc-stats--inverted {
    border-top: 1px solid rgba(10,31,77,0.15);
    border-bottom: 1px solid rgba(10,31,77,0.15);
    margin-top: 0;
}

/* ============================================================================
   STATS + PILLARS (la marca)
   ============================================================================ */

.twc-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid rgba(10,31,77,0.15);
    margin: 0 0 64px;
}
.twc-section--dark .twc-stats { border-top-color: rgba(245,247,251,0.15); }
.twc-stats__cell {
    padding: 36px 24px;
    border-right: 1px solid rgba(10,31,77,0.15);
    border-bottom: 1px solid rgba(10,31,77,0.15);
}
.twc-section--dark .twc-stats__cell {
    border-right-color: rgba(245,247,251,0.15);
    border-bottom-color: rgba(245,247,251,0.15);
}
.twc-stats__cell:last-child { border-right: none; }
.twc-stats__num {
    font-size: clamp(56px, 6vw, 96px);
    line-height: 0.9; letter-spacing: -0.04em;
    color: var(--twc-ink);
}
.twc-section--dark .twc-stats__num { color: var(--twc-cream); }
.twc-stats__label {
    font-size: 13px; opacity: 0.7; margin-top: 14px;
    color: var(--twc-ink); line-height: 1.4;
}
.twc-section--dark .twc-stats__label { color: rgba(245,247,251,0.75); }

.twc-pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
    margin-bottom: 64px;
}
.twc-pillars__head { display: flex; align-items: center; gap: 8px; }
.twc-pillars__title {
    font-size: 28px; line-height: 1.15; color: var(--twc-ink);
    margin: 16px 0 12px; font-weight: 400; letter-spacing: -0.015em;
}
.twc-pillars__desc {
    font-size: 15px; line-height: 1.6; opacity: 0.72;
    margin: 0; color: var(--twc-ink);
}

.twc-marca__photo {
    height: 420px;
    background-size: cover; background-position: center;
    background-color: var(--twc-soft);
    border: 1px solid rgba(10,31,77,0.08);
}

/* ============================================================================
   SERVICIOS
   ============================================================================ */

.twc-services {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
    margin-bottom: 96px;
    align-items: start;
}
.twc-services__intro { display: flex; flex-direction: column; gap: 24px; }
.twc-services__photo {
    height: 320px;
    background-size: cover; background-position: center;
    background-color: rgba(245,247,251,0.1);
}
.twc-services__introBox {
    background: rgba(58,111,224,0.08);
    padding: 28px;
    border-left: 3px solid var(--twc-warm);
}
.twc-services__desc {
    font-size: 16px; line-height: 1.6; opacity: 0.78;
    color: rgba(245,247,251,0.85); margin: 16px 0 0;
}
.twc-services__list { display: flex; flex-direction: column; }
.twc-services__row {
    display: flex; align-items: center; gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(245,247,251,0.12);
    text-decoration: none !important; color: rgba(245,247,251,0.88);
    transition: padding-left .25s ease, color .25s ease, background .25s ease;
}
.twc-services__row:first-child { border-top: 1px solid rgba(245,247,251,0.12); }
.twc-services__row:hover { padding-left: 16px; color: var(--twc-cream); background: rgba(58,111,224,0.06); }
.twc-services__num {
    font-family: var(--twc-mono); font-size: 11px;
    color: rgba(245,247,251,0.45); letter-spacing: 0.1em; min-width: 32px;
    transition: color .25s;
}
.twc-services__row:hover .twc-services__num { color: var(--twc-warm); }
.twc-services__title {
    font-size: 24px; flex: 1; letter-spacing: -0.015em;
    font-family: inherit;
    transition: font-style .25s;
    line-height: 1.2;
}
.twc-services__row:hover .twc-services__title { font-style: italic; }
.twc-services__cta {
    font-family: var(--twc-mono); font-size: 11px;
    color: rgba(245,247,251,0.45); letter-spacing: 0.1em;
    opacity: 0; transition: opacity .25s;
}
.twc-services__row:hover .twc-services__cta { opacity: 1; }

.twc-special {}
.twc-special__lead {
    font-size: 16px; line-height: 1.55;
    color: rgba(245,247,251,0.72); margin-top: 16px; max-width: 540px;
}
.twc-special__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(245,247,251,0.12);
    border: 1px solid rgba(245,247,251,0.12);
}
.twc-special__cell {
    background: var(--twc-ink);
    padding: 28px 24px; min-height: 220px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background .25s;
    position: relative; overflow: hidden;
}
.twc-special__cell::after {
    content: '';
    position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px;
    background: var(--twc-warm); transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.twc-special__cell:hover { background: rgba(27,63,160,0.45); }
.twc-special__cell:hover::after { transform: scaleX(1); }
.twc-special__top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.twc-special__tag {
    font-family: var(--twc-mono); font-size: 10px;
    color: var(--twc-warm); letter-spacing: 0.15em;
}
.twc-special .twc-icon {
    width: 32px; height: 32px;
    color: var(--twc-warm);
    transition: transform .35s ease, color .25s ease;
}
.twc-special__cell:hover .twc-icon {
    transform: scale(1.15) rotate(-3deg);
    color: var(--twc-cream);
}
.twc-special__title { font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; color: var(--twc-cream); }
.twc-special__note { font-family: var(--twc-mono); font-size: 11px; color: rgba(245,247,251,0.55); margin-top: 8px; letter-spacing: 0.05em; }

/* ============================================================================
   INSTALACIONES
   ============================================================================ */

/* Instalaciones header: text izq + bignum derecho */
.twc-instHead {
    display: grid; grid-template-columns: 1fr auto; gap: 80px;
    margin-bottom: 64px; align-items: end;
}
.twc-instHead__left { max-width: 640px; }
.twc-instHead__right { text-align: right; }
@media (max-width: 900px) {
    .twc-instHead { grid-template-columns: 1fr; gap: 32px; }
    .twc-instHead__right { text-align: left; }
}

.twc-bignum-block { margin-top: 24px; }
.twc-bignum {
    font-size: clamp(88px, 10vw, 160px);
    line-height: 0.85;
    color: var(--twc-primary);
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.twc-bignum sup { font-size: 0.36em; vertical-align: super; margin-left: 2px; line-height: 1; }
.twc-bignum-foot {
    font-size: 13px; opacity: 0.65;
    margin-top: 12px; color: var(--twc-ink);
    max-width: 220px; line-height: 1.45;
}

.twc-facilities__big {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
    margin-bottom: 24px;
}
.twc-facilities__row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-bottom: 56px;
}
.twc-facilities__photo {
    background-size: cover; background-position: center;
    background-color: var(--twc-soft);
    border: 1px solid rgba(10,31,77,0.08);
    position: relative;
    overflow: hidden;
}
.twc-facilities__photo--lg { height: 480px; }
.twc-facilities__photo--md { height: 280px; }
.twc-facilities__photo--dark { background-color: var(--twc-ink); }
.twc-facilities__caption {
    position: absolute;
    bottom: 16px; left: 16px;
    background: rgba(255,255,255,0.92);
    color: var(--twc-ink);
    padding: 6px 12px;
    font-family: var(--twc-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.twc-facilities__photo--dark .twc-facilities__caption {
    background: rgba(10,31,77,0.85);
    color: var(--twc-cream);
}

.twc-facilities__index {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
    border-top: 1px solid rgba(10,31,77,0.15); padding-top: 32px;
}
.twc-facilities__item .twc-marker { display: inline-block; margin-bottom: 8px; }
.twc-facilities__title { font-size: 15px; font-weight: 500; color: var(--twc-ink); margin: 0 0 8px; letter-spacing: -0.005em; }
.twc-facilities__desc { font-size: 13px; line-height: 1.55; opacity: 0.65; color: var(--twc-ink); margin: 0; }

/* ============================================================================
   SUCURSALES (tabs + mapas)
   ============================================================================ */

.twc-locs__tabs {
    display: flex; gap: 0;
    border-top: 1px solid rgba(10,31,77,0.2);
    border-bottom: 1px solid rgba(10,31,77,0.2);
}
.twc-locs__tab {
    flex: 1; padding: 24px 28px; text-align: left;
    background: transparent; color: var(--twc-ink);
    border: none; border-right: 1px solid rgba(10,31,77,0.2);
    cursor: pointer;
    display: flex; flex-direction: column; gap: 6px;
    transition: background .2s, color .2s;
}
.twc-locs__tab:last-child { border-right: none; }
.twc-locs__tab:hover { background: rgba(27,63,160,0.04); }
.twc-locs__tab.is-active { background: var(--twc-ink); color: var(--twc-cream); }
.twc-locs__tab-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.twc-locs__tab-num { font-family: var(--twc-mono); font-size: 10px; letter-spacing: 0.15em; opacity: 0.6; }
.twc-locs__tab-name { font-size: 22px; letter-spacing: -0.015em; line-height: 1.15; }
.twc-locs__tab-tag {
    font-family: var(--twc-mono); font-size: 10px;
    letter-spacing: 0.1em; opacity: 0.55; text-transform: uppercase;
    margin-top: 4px;
}
.twc-locs__tab-status {
    font-family: var(--twc-mono); font-size: 9px;
    padding: 3px 8px; letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid currentColor; opacity: 0.75;
    border-radius: 2px;
}

.twc-locs__panels {
    background: var(--twc-cream);
    border: 1px solid rgba(10,31,77,0.15);
    border-top: none;
}
.twc-locs__panel { display: none; grid-template-columns: 1.2fr 1fr; }
.twc-locs__panel.is-active { display: grid; }
.twc-locs__map { min-height: 480px; background: var(--twc-soft); position: relative; }
.twc-locs__map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
.twc-locs__map-img { width: 100%; height: 100%; min-height: 480px; background-size: cover; background-position: center; background-color: var(--twc-soft); }
.twc-locs__info {
    padding: 48px 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    gap: 28px;
}
.twc-locs__name {
    font-size: clamp(32px, 3.5vw, 48px); line-height: 1; color: var(--twc-ink);
    letter-spacing: -0.025em; margin: 16px 0 28px; font-weight: 400;
}
.twc-locs__dl { display: grid; gap: 0; margin: 0; }
.twc-locs__dl dt {
    font-family: var(--twc-mono); font-size: 10px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--twc-primary);
    padding-top: 14px;
}
.twc-locs__dl dd { font-size: 16px; color: var(--twc-ink); margin: 4px 0 14px; line-height: 1.4; border-bottom: 1px solid rgba(10,31,77,0.1); padding-bottom: 14px; }
.twc-locs__dl dd:last-of-type { border-bottom: none; }
.twc-locs__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.twc-locs__soon { font-size: 14px; opacity: 0.65; font-style: italic; color: var(--twc-ink); }

/* ============================================================================
   CONVENIOS + ASEGURADORAS
   ============================================================================ */

.twc-convenios {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-bottom: 56px;
}
.twc-convenios__card {
    padding: 48px; min-height: 380px;
    display: flex; flex-direction: column; gap: 14px;
    background-size: cover; background-position: center;
}
.twc-convenios__card--dark {
    color: var(--twc-cream);
    background-size: cover;
    background-position: center;
}
.twc-convenios__card--dark * { color: inherit; }
.twc-convenios__card--soft { background: var(--twc-soft); color: var(--twc-ink); }
.twc-convenios__title { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.05; margin: 12px 0 8px; font-weight: 400; letter-spacing: -0.025em; }
.twc-convenios__title--ink { color: var(--twc-ink); }
.twc-convenios__desc { font-size: 15px; line-height: 1.6; opacity: 0.85; max-width: 460px; margin: 0; }
.twc-convenios__card--dark .twc-convenios__desc { color: rgba(255,255,255,0.92); }
.twc-convenios__desc--ink { color: var(--twc-ink); opacity: 0.78; }
.twc-convenios__card a.twc-btn { align-self: flex-start; margin-top: auto; }

.twc-insurers {
    padding: 32px 0;
    border-top: 1px solid rgba(10,31,77,0.15);
    border-bottom: 1px solid rgba(10,31,77,0.15);
}
.twc-insurers__head { margin-bottom: 24px; }
.twc-insurers__grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
    align-items: center;
}
.twc-insurers__cell {
    height: 60px;
    display: flex; align-items: center; justify-content: center;
    filter: grayscale(1); opacity: 0.6;
    transition: filter .25s ease, opacity .25s ease;
}
.twc-insurers__cell:hover { filter: none; opacity: 1; }
.twc-insurers__cell img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ============================================================================
   CONTACTO
   ============================================================================ */

.twc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.twc-contact__lead { font-size: 17px; line-height: 1.55; opacity: 0.82; margin-top: 28px; max-width: 480px; color: rgba(255,255,255,0.92); }
.twc-contact__tracks {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-top: 36px;
}
.twc-contact__track {
    padding: 22px;
    border: 1px solid rgba(245,247,251,0.15);
    background: rgba(245,247,251,0.03);
}
.twc-contact__track p {
    font-size: 14px; line-height: 1.5; opacity: 0.78;
    margin: 12px 0 0; color: rgba(255,255,255,0.88);
}
.twc-contact__dl { margin-top: 36px; display: grid; gap: 16px; }
.twc-contact__dl dt {
    font-family: var(--twc-mono); font-size: 10px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--twc-warm);
}
.twc-contact__dl dd { margin: 4px 0 0; font-size: 16px; color: var(--twc-cream); }
.twc-contact__dl dd a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

.twc-contact__form {
    background: rgba(245,247,251,0.04);
    border: 1px solid rgba(245,247,251,0.15);
    padding: 40px;
}
.twc-contact__placeholder { font-family: var(--twc-mono); font-size: 12px; color: rgba(245,247,251,0.6); }
.twc-contact__placeholder code { background: rgba(245,247,251,0.1); padding: 2px 6px; }

/* CF7 overrides */
.twc-contact .wpcf7 { color: var(--twc-cream); }
.twc-contact .wpcf7 p { margin: 0 0 22px; }
.twc-contact .wpcf7 label {
    font-family: var(--twc-mono); font-size: 10px;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(245,247,251,0.7); display: block; margin-bottom: 10px;
    font-weight: 500;
}
.twc-contact .wpcf7 input[type="text"],
.twc-contact .wpcf7 input[type="email"],
.twc-contact .wpcf7 input[type="tel"] {
    width: 100%; background: transparent !important; border: none;
    border-bottom: 1px solid rgba(245,247,251,0.3);
    color: var(--twc-cream) !important; padding: 8px 0;
    font-size: 20px; outline: none; border-radius: 0;
    box-shadow: none !important; line-height: 1.4;
}
.twc-contact .wpcf7 input:focus { border-bottom-color: var(--twc-warm); }
.twc-contact .wpcf7 textarea {
    width: 100%; background: transparent !important;
    border: 1px solid rgba(245,247,251,0.2);
    color: var(--twc-cream) !important; padding: 14px;
    font-size: 14px; outline: none; resize: vertical; min-height: 110px;
    box-shadow: none !important;
}
.twc-contact .wpcf7 input[type="submit"] {
    width: 100%; padding: 18px; background: var(--twc-warm);
    color: var(--twc-ink); border: none; cursor: pointer;
    font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
    transition: background .2s, color .2s;
}
.twc-contact .wpcf7 input[type="submit"]:hover { background: var(--twc-cream); color: var(--twc-ink); }
.twc-contact .wpcf7 .wpcf7-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.twc-contact .wpcf7 .wpcf7-radio .wpcf7-list-item { margin: 0 !important; flex: 1; min-width: 90px; }
.twc-contact .wpcf7 .wpcf7-radio .wpcf7-list-item label {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 16px;
    border: 1px solid rgba(245,247,251,0.2); cursor: pointer;
    font-size: 13px; letter-spacing: 0; text-transform: none;
    color: var(--twc-cream); transition: all .2s;
    margin: 0; font-family: inherit;
}
.twc-contact .wpcf7 .wpcf7-radio input[type="radio"] { display: none; }
.twc-contact .wpcf7 .wpcf7-radio .wpcf7-list-item:has(input:checked) label {
    background: var(--twc-warm); color: var(--twc-ink); border-color: var(--twc-warm);
}
.twc-contact .wpcf7-not-valid-tip {
    font-family: var(--twc-mono); font-size: 11px;
    color: #FCA5A5; letter-spacing: 0.05em; margin-top: 4px;
}
.twc-contact .wpcf7-response-output {
    border: 1px solid rgba(245,247,251,0.2) !important;
    padding: 14px 18px !important; margin: 24px 0 0 !important;
    color: var(--twc-cream); font-size: 14px;
}

.twc-footer-legal {
    margin-top: 80px; padding-top: 28px;
    border-top: 1px solid rgba(245,247,251,0.15);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-family: var(--twc-mono); font-size: 10px;
    letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.55;
}

/* ============================================================================
   HEADER (Flatsome integration) + Full-bleed override
   ============================================================================ */

#wrapper { overflow-x: hidden; }
body.home #content,
body.home #content .page-wrapper,
body.home .entry-content,
body.home article.page,
body.home article.page > .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.home article.page { box-shadow: none !important; }
body.home #main { padding: 0 !important; }
body.home #main .page-wrapper { padding: 0 !important; max-width: none !important; }
body.home #header.transparent { background: transparent; }
body.home.has-scrolled #header {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10,31,77,0.08);
}
#header.stuck { background: rgba(255,255,255,0.96) !important; backdrop-filter: blur(14px); }

.header-main .nav > li > a {
    font-family: var(--twc-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--twc-ink);
    font-weight: 500;
}
.header-main .nav > li > a:hover { color: var(--twc-primary); }

/* Anchor offset for sticky header */
section[id], .twc-section[id], .twc-hero[id] { scroll-margin-top: 90px; }

/* ============================================================================
   WHATSAPP flotante
   ============================================================================ */

.twc-wa {
    position: fixed; right: 24px; bottom: 24px; z-index: 9999;
    display: flex; align-items: center; gap: 12px;
    background: #25D366; color: #fff;
    padding: 12px 20px 12px 12px; border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 16px 40px -12px rgba(37,211,102,0.5);
    transform: translateY(20px); opacity: 0;
    transition: transform .35s ease, opacity .35s ease, background .2s;
    font-size: 14px; font-weight: 500;
    max-width: 320px;
}
.twc-wa.is-visible { transform: translateY(0); opacity: 1; }
.twc-wa:hover { background: #1ebe5b; color: #fff; }
.twc-wa__icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.twc-wa__icon svg { width: 20px; height: 20px; fill: #25D366; }
.twc-wa__label { white-space: nowrap; }
.twc-wa__bubble {
    position: absolute; bottom: calc(100% + 14px); right: 0;
    background: var(--twc-cream); color: var(--twc-ink);
    padding: 16px 18px; border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(10,31,77,0.28);
    font-size: 13px; line-height: 1.45; max-width: 260px;
    opacity: 0; transform: translateY(8px) scale(0.96);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.twc-wa__bubble strong {
    display: block; font-size: 11px; color: var(--twc-primary);
    letter-spacing: 0.08em; margin-bottom: 6px; text-transform: uppercase;
}
.twc-wa.is-bubble .twc-wa__bubble { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1100px) {
    :root { --twc-pad-y: 80px; }
    .twc-secHead { grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 48px; }
    .twc-secHead__left { position: static; }
}

@media (max-width: 900px) {
    :root { --twc-pad-x: 24px; --twc-pad-y: 72px; }
    .twc-hero { padding: 110px 0 0; }
    .twc-hero__topbar { display: none; }
    .twc-hero__inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
    .twc-hero__title { font-size: clamp(44px, 11vw, 80px); }
    .twc-hero__lead { font-size: 16px; max-width: 100%; }
    .twc-hero__collage { min-height: auto; display: grid; grid-template-columns: 1fr; gap: 16px; }
    .twc-hero__img--main { position: static; width: 100%; height: 280px; }
    .twc-hero__img--alt { position: static; width: 100%; height: 180px; left: 0; }
    .twc-hero__stat { position: static; max-width: 100%; }

    .twc-marquee__track { font-size: 11px; gap: 32px; padding-left: 24px; }

    .twc-secHead { grid-template-columns: 1fr; gap: 24px; }
    .twc-secHead__lead { font-size: 16px; margin-top: 16px; }

    .twc-stats { grid-template-columns: repeat(2, 1fr); }
    .twc-stats__cell { padding: 24px 16px; }
    .twc-stats__cell:nth-child(2) { border-right: none; }
    .twc-stats__num { font-size: clamp(48px, 14vw, 72px); }

    .twc-pillars { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
    .twc-marca__photo { height: 280px; }

    .twc-b2b__split { grid-template-columns: 1fr; gap: 32px; }
    .twc-b2b__media { min-height: auto; display: grid; gap: 16px; }
    .twc-b2b__photo--big { position: static; width: 100%; height: 320px; }
    .twc-b2b__photo--small { position: static; width: 80%; height: 220px; margin-top: -60px; margin-left: auto; }
    .twc-b2b__badge { position: static; align-self: flex-start; }
    .twc-b2b__case { padding: 32px 24px; }

    .twc-services { grid-template-columns: 1fr; gap: 32px; }
    .twc-services__photo { height: 240px; }
    .twc-services__title { font-size: 20px; }
    .twc-services__cta { display: none; }
    .twc-services__row { padding: 18px 0; gap: 16px; }

    .twc-special__grid { grid-template-columns: repeat(2, 1fr); }
    .twc-special__cell { padding: 24px 18px; min-height: 160px; }
    .twc-special__title { font-size: 17px; }

    .twc-facilities__big { grid-template-columns: 1fr; }
    .twc-facilities__row { grid-template-columns: 1fr; }
    .twc-facilities__photo--lg, .twc-facilities__photo--md { height: 260px; }
    .twc-facilities__index { grid-template-columns: 1fr 1fr; gap: 24px; }

    .twc-locs__tabs { flex-direction: column; }
    .twc-locs__tab { border-right: none; border-bottom: 1px solid rgba(10,31,77,0.15); padding: 18px 20px; }
    .twc-locs__tab-name { font-size: 18px; }
    .twc-locs__panel.is-active { grid-template-columns: 1fr; }
    .twc-locs__map, .twc-locs__map iframe, .twc-locs__map-img { min-height: 280px; }
    .twc-locs__info { padding: 32px 24px; gap: 24px; }
    .twc-locs__name { margin: 12px 0 20px; }

    .twc-convenios { grid-template-columns: 1fr; }
    .twc-convenios__card { padding: 32px 24px; min-height: auto; }

    .twc-insurers__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

    .twc-contact { grid-template-columns: 1fr; gap: 40px; }
    .twc-contact__tracks { grid-template-columns: 1fr; gap: 16px; }
    .twc-contact__form { padding: 28px 22px; }
    .twc-contact .wpcf7 input[type="text"],
    .twc-contact .wpcf7 input[type="email"],
    .twc-contact .wpcf7 input[type="tel"] { font-size: 18px; }

    .twc-footer-legal { flex-direction: column; gap: 8px; align-items: flex-start; }

    .twc-wa { right: 16px; bottom: 16px; padding: 10px 18px 10px 10px; font-size: 13px; }
    .twc-wa__icon { width: 28px; height: 28px; }
    .twc-wa__icon svg { width: 16px; height: 16px; }
}

@media (max-width: 600px) {
    :root { --twc-pad-x: 20px; }
    html, body { overflow-x: hidden !important; width: 100%; max-width: 100vw !important; margin: 0 !important; }
    #wrapper, #main, article.page, .entry-content { overflow-x: hidden !important; max-width: 100vw !important; }
    .twc-section, .twc-hero {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    .twc-wrap {
        max-width: 100vw !important;
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
    }
    .twc-section *, .twc-hero * { max-width: 100% !important; }
    /* Kill grid/flex children min-content overflow */
    .twc-hero__inner, .twc-hero__type, .twc-hero__collage,
    .twc-secHead, .twc-secHead__left, .twc-secHead__right,
    .twc-services, .twc-services__intro, .twc-services__list,
    .twc-b2b__split, .twc-b2b__pillars, .twc-b2b__media, .twc-b2b__pillar,
    .twc-pillars, .twc-pillars__item, .twc-stats__cell,
    .twc-facilities__big, .twc-facilities__row, .twc-facilities__index, .twc-facilities__item,
    .twc-special__grid, .twc-special__cell, .twc-special__head,
    .twc-instHead, .twc-instHead__left, .twc-instHead__right,
    .twc-convenios, .twc-convenios__card,
    .twc-contact, .twc-contact__left, .twc-contact__form, .twc-contact__tracks, .twc-contact__track,
    .twc-locs__tab, .twc-locs__panel, .twc-locs__info,
    .twc-insurers__grid, .twc-insurers__cell {
        min-width: 0 !important;
    }
    .twc-hero__lead, .twc-secHead__lead, .twc-pillars__desc, .twc-b2b__desc,
    .twc-services__desc, .twc-special__lead, .twc-special__title,
    .twc-convenios__desc, .twc-convenios__title, .twc-contact__lead,
    .twc-contact__track p, .twc-locs__name, .twc-locs__dl dd,
    .twc-facilities__desc, .twc-stats__label, .twc-bignum-foot,
    .twc-b2b__title, .twc-pillars__title, .twc-display, .twc-hero__title,
    .twc-b2b__badgeBig {
        overflow-wrap: break-word;
        word-break: normal;
    }
    .twc-display--xl { font-size: clamp(34px, 9vw, 56px) !important; }
    .twc-display--lg { font-size: clamp(28px, 8vw, 44px) !important; }
    .twc-display--md { font-size: clamp(24px, 7vw, 36px) !important; }
    .twc-hero__title { font-size: clamp(40px, 12vw, 72px) !important; line-height: 0.95 !important; }
    .twc-pillars__title { font-size: 22px; }
    .twc-b2b__title { font-size: 19px; }
    .twc-b2b__badgeBig { font-size: 28px; }
    .twc-special__grid { grid-template-columns: 1fr !important; }
    .twc-special__title { font-size: 18px; }
    .twc-facilities__index { grid-template-columns: 1fr !important; }
    .twc-insurers__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .twc-wa { padding: 10px 14px 10px 8px; }
    .twc-wa__label { font-size: 12px; }
    .twc-bignum { font-size: clamp(72px, 22vw, 120px); }
    .twc-locs__name { font-size: clamp(26px, 7vw, 38px); }
    .twc-convenios__title { font-size: clamp(26px, 7vw, 38px); }
    .twc-stats__cell { padding: 20px 14px; }
}
