/* COBA · Entrada cinematográfica. Todo el texto permanece en HTML. */
@property --coba-apertura { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
html.coba-intro-active, html.coba-intro-active body { overflow: hidden !important; }
.coba-intro {
  --coba-gold: #e8c987; --coba-ink: #080c0e;
  --coba-film-opacity: 1; --coba-copy-opacity: 1; --coba-logo-opacity: 0; --coba-logo-caption-opacity: 0;
  position: fixed; inset: 0; z-index: 100000; isolation: isolate;
  width: 100%; height: 100%; overflow: hidden; background: var(--coba-ink); color: #f5f2e9;
  font-family: 'Schibsted Grotesk', 'Inter', Arial, sans-serif; font-weight: 400;
  text-align: left; line-height: 1.4;
  mask-image: linear-gradient(112deg, #000 0%, #000 calc(50% - var(--coba-apertura)), transparent calc(50% - var(--coba-apertura)), transparent calc(50% + var(--coba-apertura)), #000 calc(50% + var(--coba-apertura)), #000 100%);
}
.coba-intro *, .coba-intro *::before, .coba-intro *::after { box-sizing: border-box; }
.coba-intro p, .coba-intro h2, .coba-intro ul { margin: 0; padding: 0; }
.coba-intro button { font: inherit; cursor: pointer; }
.coba-intro button:focus-visible { outline: 2px solid var(--coba-gold); outline-offset: 6px; }
.coba-intro__film {
  opacity: var(--coba-film-opacity);
  position: absolute; z-index: -2; top: 44%; right: -14%; width: min(86vw,130vh); aspect-ratio: 16/9; transform: translateY(-50%);
  display: block;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent);
}
.coba-intro__film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #080c0e 0%, transparent 7%, transparent 95%, #080c0e 100%); pointer-events: none; }
.coba-intro__film video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; border: 0; background: transparent; }
.coba-intro__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080c0e 2%, rgba(8,12,14,.98) 20%, rgba(8,12,14,.42) 45%, transparent 63%); pointer-events: none; }
.coba-intro__grid { position: absolute; z-index: -1; inset: 0; opacity: .17; background-image: linear-gradient(90deg, transparent calc(100% - 1px), #698082 1px); background-size: 25% 100%; mask-image: linear-gradient(180deg, #000, transparent 30%, transparent 75%, #000); }
.coba-intro__top { position: absolute; inset: clamp(20px,4.4vh,48px) 5.2vw auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.coba-intro__brand { display: flex; gap: 20px; align-items: center; }
.coba-intro__brand img { width: 112px; height: 65px; object-fit: contain; }
.coba-intro__brand span { border-left: 1px solid #4a4740; padding-left: 21px; font-size: 12px; letter-spacing: .22em; line-height: 1.7; text-transform: uppercase; }
.coba-intro__online { display: flex; align-items: center; gap: 10px; font-size: 10px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: #d2d9d4; }
.coba-intro__online i { width: 5px; height: 5px; flex: 0 0 5px; background: #e8c987; border-radius: 50%; box-shadow: 0 0 12px #e8c98780; }
.coba-intro__copy { position: absolute; top: 26%; left: 6.5vw; width: 47%; }
.coba-intro__eyebrow { font-size: 10px; letter-spacing: .24em; color: var(--coba-gold); text-transform: uppercase; }
.coba-intro h2 { margin-top: 21px; font-family: 'Schibsted Grotesk', Arial, sans-serif; font-size: clamp(52px,6.8vw,116px); font-weight: 500; line-height: .96; letter-spacing: -.065em; }
.coba-intro h2 span { display: block; }
.coba-intro h2 em { display: block; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.04em; line-height: 1.12; color: var(--coba-gold); }
.coba-intro__promise { max-width: 390px; margin-top: 24px !important; font-size: clamp(15px,1.35vw,20px); line-height: 1.5; color: #caccc7; text-wrap: pretty; }
.coba-intro__promise strong { color: #f5f2e9; font-weight: 500; }
.coba-intro__trust { display: flex; gap: 22px; margin-top: 27px !important; color: #b6bdb9; font-size: 11px; letter-spacing: .075em; list-style: none; }
.coba-intro__trust li { padding-top: 10px; border-top: 1px solid #555b53; }
.coba-intro__signature { position: absolute; right: 6.5vw; bottom: 23%; color: #d9c59f; font-size: 9px; letter-spacing: .16em; writing-mode: vertical-rl; }
.coba-intro__copy, .coba-intro__brand, .coba-intro__signature { opacity: var(--coba-copy-opacity); }
.coba-intro__metamorphosis { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.coba-intro__identity { position: absolute; z-index: 2; left: 50%; top: 43%; width: min(52vw,660px); transform: translate(-50%,-50%); text-align: center; pointer-events: none; }
.coba-intro__identity-mark { display: block; width: 100%; height: auto; opacity: var(--coba-logo-opacity); }
.coba-intro__identity-kicker { font: 500 12px/1.4 Arial,sans-serif; letter-spacing: .48em; color: #e8c987; margin: 0 0 18px !important; opacity: var(--coba-logo-caption-opacity); }
.coba-intro__identity-promise { font: 400 clamp(14px,1.4vw,20px)/1.65 Arial,sans-serif; color: #c4c9c3; margin: 24px 0 0 !important; opacity: var(--coba-logo-caption-opacity); }
.coba-intro__identity-promise strong { color: #f1e5cc; font-weight: 400; }
.coba-intro__bottom { z-index: 3; }
.coba-intro__top { z-index: 3; }
.coba-intro__review { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #111817eb; border: 1px solid #c3a06466; }
.coba-intro__review span { font: 9px Arial,sans-serif; letter-spacing: .1em; color: #b5ac99; }
.coba-intro__review button { font: 11px Arial,sans-serif; color: #ead4ac; background: transparent; border: 0; padding: 8px 3px; }
.coba-intro__bottom { position: absolute; left: 6.5vw; right: 6.5vw; bottom: max(26px,5vh); }
.coba-intro__areas { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding-bottom: 20px; }
.coba-intro__area-label { font-size: 9px; letter-spacing: .17em; color: #bdc1b9; line-height: 1.8; text-transform: uppercase; flex: 0 0 120px; }
.coba-intro__area-list { list-style: none; display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; }
.coba-intro__area-list li { font-size: clamp(13px,1.3vw,20px); font-weight: 400; white-space: nowrap; }
.coba-intro__area-list small { font: inherit; }
.coba-intro__track { position: relative; height: 1px; background: #ffffff26; }
.coba-intro__track i { position: absolute; inset: 0; background: var(--coba-gold); transform: scaleX(var(--coba-progress,0)); transform-origin: left; }
.coba-intro__utility { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; gap: 20px; }
.coba-intro__utility p { font-size: 9px; letter-spacing: .17em; color: #b3bcb6; text-transform: uppercase; }
.coba-intro__controls { display: flex; gap: 24px; align-items: center; }
.coba-intro__controls button { border: 0; border-radius: 0; background: transparent; padding: 9px 0; color: #faf5e7; min-height: 36px; font-size: 11px; letter-spacing: .05em; text-transform: none; box-shadow: none; }
.coba-intro__controls button:hover { color: var(--coba-gold); }
.coba-intro__controls button:last-child span { margin-left: 16px; color: var(--coba-gold); }
.coba-intro__flare { position: fixed; z-index: 100001; inset: 0; overflow: hidden; pointer-events: none; }
.coba-intro__beam { position: absolute; inset: -40% 50%; pointer-events: none; width: 1px; opacity: 0; background: #f7e0ae; box-shadow: 0 0 35px 6px #e8c98766; transform: rotate(22deg); }
.coba-intro.is-opening { animation: coba-open 900ms cubic-bezier(.76,0,.24,1) forwards; }
.coba-intro.is-opening > :not(.coba-intro__film):not(.coba-intro__shade):not(.coba-intro__grid) { opacity: 0; transition: opacity 300ms; }
.coba-intro__beam.is-opening { animation: coba-beam 900ms ease-in-out forwards; }
.coba-intro.is-ready .coba-intro__eyebrow { animation: coba-in 600ms both; }
.coba-intro.is-ready h2 { animation: coba-in 800ms 60ms both; }
.coba-intro.is-ready .coba-intro__promise { animation: coba-in 700ms 240ms both; }
.coba-intro.is-ready .coba-intro__trust { animation: coba-in 700ms 350ms both; }
.coba-intro.is-ready .coba-intro__area-list li { animation: coba-in 600ms calc(400ms + var(--i)*65ms) both; }
.coba-replay { display: block; margin: 24px auto; border: 1px solid #807150; color: inherit; background: transparent; padding: 12px 20px; font: 500 12px Arial,sans-serif; cursor: pointer; border-radius: 0; }
.coba-replay:hover { background: #b8943b18; }
.coba-replay:focus-visible { outline: 2px solid #bd9439; outline-offset: 4px; }
@keyframes coba-in { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes coba-open { from { --coba-apertura: 0%; } to { --coba-apertura: 80%; } }
@keyframes coba-beam { 0% { opacity: 0; } 16% { opacity: .8; } 100% { opacity: 0; transform: rotate(22deg) scaleX(150); } }
@media (min-width: 1600px) { .coba-intro__promise { max-width: 460px; } }
@media (max-width: 900px) {
  .coba-intro__identity { width: min(76vw,580px); }
  .coba-intro__top { inset: 20px 6vw auto; }
  .coba-intro__brand img { width: 78px; height: 46px; }
  .coba-intro__brand span { font-size: 9px; padding-left: 14px; }
  .coba-intro__brand { gap: 14px; }
  .coba-intro__online { font-size: 8px; letter-spacing: .1em; }
  .coba-intro__copy { top: 17%; left: 6vw; width: 65%; }
  .coba-intro h2 { font-size: clamp(50px,8.7vw,76px); margin-top: 12px; }
  .coba-intro__eyebrow { font-size: 9px; }
  .coba-intro__promise { max-width: 310px; font-size: 14px; margin-top: 16px !important; }
  .coba-intro__trust { font-size: 9px; gap: 16px; margin-top: 18px !important; }
  .coba-intro__film { top: 48%; right: -23%; width: 98vw; }
  .coba-intro__shade { background: linear-gradient(90deg,#080c0e 0%, #080c0eb3 25%,transparent 60%); }
  .coba-intro__areas { align-items: flex-start; flex-direction: column; gap: 12px; }
  .coba-intro__area-label { flex: none; }
  .coba-intro__area-label br { display: none; }
  .coba-intro__area-list { width: 100%; gap: 12px; }
  .coba-intro__area-list li { font-size: 13px; }
}
@media (max-width: 600px) and (min-height: 601px) {
  .coba-intro__identity { width: 84vw; top: 44%; }
  .coba-intro__identity-kicker { font-size: 10px; margin-bottom: 20px !important; }
  .coba-intro__identity-promise { font-size: 14px; margin-top: 25px !important; }
  .coba-intro__review { top: 64px; width: max-content; gap: 10px; padding: 4px 10px; }
  .coba-intro__review span { display: none; }
  .coba-intro__top { inset: max(16px,env(safe-area-inset-top)) 6vw auto; }
  .coba-intro__brand img { width: 68px; height: 40px; }
  .coba-intro__brand span { font-size: 8px; }
  .coba-intro__online { max-width: 96px; font-size: 8px; }
  .coba-intro__copy { top: 12%; width: 88%; }
  .coba-intro__eyebrow { font-size: 8px; letter-spacing: .2em; }
  .coba-intro h2 { font-size: clamp(43px,12.5vw,70px); margin-top: 10px; }
  .coba-intro h2 span, .coba-intro h2 em { display: inline; }
  .coba-intro h2 em::before { content: '\A'; white-space: pre; }
  .coba-intro__promise { max-width: 310px; font-size: 12px; line-height: 1.45; margin-top: 10px !important; }
  .coba-intro__trust { display: none; }
  .coba-intro__film { inset: 33% auto auto 50%; width: min(100vw,47vh); height: min(100vw,47vh); transform: translateX(-50%); mask-image: linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
  .coba-intro__film video { object-fit: contain; }
  .coba-intro__film::after { background: linear-gradient(180deg,#080c0e 0%,transparent 10%,transparent 96%,#080c0e 100%); }
  .coba-intro__shade { display: none; }
  .coba-intro__signature { bottom: 35%; right: 4vw; font-size: 7px; }
  .coba-intro__bottom { left: 6vw; right: 6vw; bottom: max(16px,env(safe-area-inset-bottom)); }
  .coba-intro__areas { gap: 8px; padding-bottom: 12px; }
  .coba-intro__area-label { font-size: 8px; }
  .coba-intro__area-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px 12px; }
  .coba-intro__area-list li { font-size: 12px; }
  .coba-intro__area-list li:nth-child(3n+2) { text-align: center; }
  .coba-intro__area-list li:nth-child(3n) { text-align: right; }
  .coba-intro__utility { margin-top: 7px; }
  .coba-intro__utility p { max-width: 100px; line-height: 1.7; font-size: 7px; }
  .coba-intro__controls { gap: 18px; }
  .coba-intro__controls button { min-height: 44px; font-size: 10px; }
  .coba-intro__controls button:last-child span { margin-left: 7px; }
}
@media (max-width: 600px) and (min-height: 601px) and (max-height: 740px) {
  .coba-intro__film { top: 36%; width: 40vh; height: 40vh; }
}
@media (max-height: 600px) {
  .coba-intro__identity { width: min(48vw,60vh); top: 43%; }
  .coba-intro__identity-kicker { font-size: 9px; margin-bottom: 8px !important; }
  .coba-intro__identity-promise { margin-top: 8px !important; font-size: 12px; }
  .coba-intro__review { top: 48px; }
  .coba-intro__top { top: 12px; }
  .coba-intro__brand img { width: 62px; height: 36px; }
  .coba-intro__copy { top: 20%; width: 50%; }
  .coba-intro h2 { font-size: clamp(36px,5.8vw,70px); margin-top: 9px; }
  .coba-intro__promise { margin-top: 10px !important; font-size: 12px; max-width: 310px; }
  .coba-intro__trust { display: none; }
  .coba-intro__film { inset: 45% -12% auto auto; width: min(82vw,120vh); height: auto; transform: translateY(-50%); }
  .coba-intro__bottom { bottom: 8px; }
  .coba-intro__areas { flex-direction: row; gap: 15px; padding-bottom: 9px; }
  .coba-intro__area-label { font-size: 7px; }
  .coba-intro__area-list { gap: 10px; }
  .coba-intro__area-list li { font-size: 10px; }
  .coba-intro__utility { margin-top: 1px; }
  .coba-intro__signature { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .coba-intro, .coba-intro__beam { display: none !important; }
  .coba-replay { display: none; }
}

/* ADVOCO (9-nov-2026): el lema es más largo que «Soluciones jurídicas.»; la segunda línea va más chica para que quepa en un renglón. */
.coba-intro[data-marca="ADVOCO"] h2 em { line-height: 1.15; letter-spacing: -.02em; }

/* ADVOCO · manual de identidad (9-nov-2026): oro plano #BD9439, negro, Source Sans 3 y Source Serif 4,
   y el logotipo de la esquina a no menos de 140 px visibles. */
.coba-intro[data-marca="ADVOCO"] { --coba-gold: #BD9439; --coba-ink: #000; font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; }
.coba-intro[data-marca="ADVOCO"] h2 { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-weight: 600; letter-spacing: -.03em; font-size: clamp(44px,5.6vw,96px); }
.coba-intro[data-marca="ADVOCO"] h2 em { font-family: "Source Serif 4", Georgia, serif; }
.coba-intro[data-marca="ADVOCO"] .coba-intro__brand img { width: 172px; height: auto; margin-left: -20px; }
.coba-intro[data-marca="ADVOCO"] .coba-intro__online i { background: #BD9439; box-shadow: 0 0 12px #BD943980; }
.coba-intro[data-marca="ADVOCO"] .coba-intro__identity-promise { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; color: #d9d4ca; }
.coba-intro[data-marca="ADVOCO"] .coba-intro__identity-promise strong { color: #BD9439; font: 400 italic 1.08em/1.3 "Source Serif 4", Georgia, serif; }
.coba-intro[data-marca="ADVOCO"] .coba-intro__signature { color: #BD9439; }
@media (max-width: 600px) {
  .coba-intro[data-marca="ADVOCO"] .coba-intro__brand img { width: 160px; margin-left: -18px; }
  /* El logotipo con ABOGADOS necesita 280 px visibles: 90vw del lienzo deja unos 297 px en un celular de 375. */
  .coba-intro[data-marca="ADVOCO"] .coba-intro__identity { width: 90vw; }
}
