/* EMLEX · identidad cinematográfica compartida. Las áreas de trabajo usan
 * superficies claras y reservan el fondo oscuro para la navegación. */
:root {
  --v17-forest: #081719;
  --v17-deep: #175343;
  --v17-gold: #e9bd70;
  --v17-background: #eef2ed;
  --v17-paper: #fffefa;
  --v17-text: #172f2b;
  --v17-border: #d5ded5;
  --emlex-cine-gold-light: #ffdf98;
  --emlex-cine-gold-deep: #d7a656;
  --emlex-cine-secondary: #19332f;
  --emlex-cine-ink: #151609;
  --emlex-cine-muted: #526760;
  --emlex-cine-faint: #f2f6f1;
  --emlex-cine-line: #3d554c;
  --emlex-cine-chrome: radial-gradient(ellipse at 95% 0%, #3f3f2a 0%, transparent 54%),
    linear-gradient(145deg, #071415, #102522 73%, #172820);
  --emlex-cine-button: linear-gradient(127deg, var(--emlex-cine-gold-light), var(--emlex-cine-gold-deep) 90%);
  --emlex-cine-focus: #167664;
}

html:has(body.v17-public){scroll-behavior:smooth}
body.v17-public{background:var(--v17-background)!important;color:var(--v17-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}
body.v17-public > header{background:var(--emlex-cine-chrome)!important;border-bottom:1px solid var(--emlex-cine-line);padding:16px clamp(16px,3vw,32px)!important}
body.v17-public > header img{width:186px!important;height:auto!important;max-height:90px;object-fit:contain}
body.v17-public:not(.v17-landing) > header a{color:#f3e4c6}
body.v17-public > header nav{margin-top:12px;gap:10px}
body.v17-public > header nav a{min-height:44px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:background .15s}
body.v17-public > header nav a:first-child{background:var(--emlex-cine-button)!important;color:var(--emlex-cine-ink)!important}
body.v17-public > header nav a:nth-child(2){background:#fff!important;color:var(--v17-forest)!important}
body.v17-public > header nav a:nth-child(3){border:1px solid var(--v17-gold)!important;color:#f7efdb!important}
body.v17-public > main{width:100%;color:var(--v17-text)}
body.v17-public > main :is(h1,h2,h3,h4){color:var(--v17-text);line-height:1.2}
body.v17-public > main h1{font-size:clamp(28px,4vw,44px)}
body.v17-public > main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#fff;color:#153e2a;border:1px solid #bcd5c5;border-radius:10px;min-height:44px;max-width:100%}
body.v17-public > main :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--v17-deep)}
body.v17-public :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--emlex-cine-focus)!important;outline-offset:3px}
body.v17-public > main :is(button,a){min-height:40px}
body.v17-public > footer{background:var(--v17-forest)!important;color:#c8dacb!important;border-top:1px solid #326043}
body.v17-public > footer a{color:#f6e2b5!important}
body.v17-public.v17-landing > main{padding:24px 0 52px}
body.v17-public.v17-landing > main > section{max-width:1160px;border-radius:18px;margin:0 auto;background:#fff;border:1px solid var(--v17-border);box-shadow:0 6px 28px rgba(5,38,27,.06);padding:clamp(18px,3vw,40px)}
body.v17-public.v17-landing > main p[class*="text-gray-2"],body.v17-public.v17-landing > main p[class*="text-gray-3"]{color:#567461!important}
body.v17-public.v17-landing > main article{border:1px solid var(--v17-border)!important;background:#f6faf7!important;color:var(--v17-text)!important;border-radius:16px!important;box-shadow:none!important}
body.v17-public.v17-landing > main article :is(p,span)[class*="text-gray-"]{color:#526c59!important}
body.v17-public.v17-landing > main :is(a,button).bg-green-700{background:var(--emlex-cine-button)!important;color:var(--emlex-cine-ink)!important;border-radius:11px;font-weight:750}
body.v17-public.v17-landing #chatbot-panel{background:#fff!important;color:#153e2a!important;border-color:var(--v17-border)!important;z-index:100}
body.v17-public.v17-landing #chatbot-panel [class*="bg-green-700"]{background:var(--v17-deep)!important;color:#fff!important}
body.v17-public.v17-auth{background:var(--emlex-cine-chrome)!important}
body.v17-public.v17-auth > main{padding:26px 14px 52px!important}
body.v17-public.v17-auth > main > section{background:var(--v17-paper)!important;color:var(--v17-text)!important;border:1px solid var(--v17-border)!important;border-radius:18px!important;box-shadow:0 18px 50px rgba(4,14,13,.34)!important}
body.v17-public.v17-auth > main > section img{width:min(186px,90%);height:auto!important;max-height:90px;object-fit:contain}
body.v17-public.v17-auth > main > section h1{color:var(--v17-text)!important}
body.v17-public.v17-auth > main button.bg-green-700{background:var(--emlex-cine-button)!important;color:var(--emlex-cine-ink)!important;border-radius:11px;font-weight:750;min-height:48px}
body.v17-public.v17-auth > main a.text-green-800{color:var(--v17-deep)!important}
body.v17-public.v17-secondary > main{max-width:1100px;margin:24px auto 40px;padding:clamp(18px,3vw,32px)!important;background:var(--v17-paper);border:1px solid var(--v17-border);border-radius:18px;box-shadow:0 6px 28px rgba(5,38,27,.06)}
body.v17-public.v17-secondary > main :is(section,article){border-radius:14px;max-width:100%}
body.v17-public.v17-secondary > main h1{margin-bottom:16px}
body.v17-public.v17-secondary > main :is(p,li){line-height:1.65}
body.v17-public.v17-secondary > main :is(a,button).bg-green-700{background:var(--emlex-cine-button)!important;color:var(--emlex-cine-ink)!important;border-radius:10px}
body.v17-public.v17-secondary #videoContainer{max-width:900px}
@media(max-width:600px){
 body.v17-public > header img{width:146px!important;max-height:66px}
 body.v17-public.v17-landing > main{padding:12px}
 body.v17-public.v17-landing > main > section{padding:20px 16px}
 body.v17-public.v17-secondary > main{width:auto;margin:12px;padding:18px!important}
 body.v17-public.v17-auth > main{padding:16px 12px!important}
 body.v17-public.v17-auth > main > section{padding:24px 18px!important}
}
@media(prefers-reduced-motion:reduce){body.v17-public *,body.v17-public *::before,body.v17-public *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Contraste legible al transformar páginas que originalmente tenían fondo oscuro. */
body.v17-public.v17-secondary > main :is(h2,h3,a).text-white{color:#0b5d40!important}
body.v17-public.v17-secondary > main [class*="text-gray-200"],
body.v17-public.v17-secondary > main [class*="text-gray-300"]{color:#526c59!important}
body.v17-public.v17-secondary > main a:focus-visible{text-decoration:underline}

/* Pantallas auxiliares de estudio que no montan el área V17. */
body.v17-public.v17-legacy-info {
  background: var(--emlex-cine-chrome) !important;
}
body.v17-public.v17-legacy-info > main {
  background: var(--v17-paper);
  border: 1px solid var(--v17-border);
  box-shadow: 0 18px 50px rgb(4 14 13 / .34);
}

/* EMLEX · Asistente cinematográfico: estilos heredados y lógica de JS existente. */
.cinematic-chat #chatbot-toggle {
  background: var(--emlex-cine-chrome);
  color: #f6edd8;
  border-color: var(--v17-gold);
  box-shadow: 0 10px 35px rgb(3 12 11 / .46);
}
.cinematic-chat #chatbot-toggle img,
.cinematic-chat .chat-heading img {
  background: var(--emlex-cine-secondary);
  border: 1px solid var(--emlex-cine-line);
}
.cinematic-chat #chatbot-panel {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--v17-paper);
  color: var(--v17-text);
  border-color: var(--emlex-cine-line);
  scrollbar-color: #a69772 var(--v17-paper);
}
.cinematic-chat #chatbot-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
}
.cinematic-chat .chat-heading {
  position: sticky;
  z-index: 1;
  top: 0;
  flex: 0 0 auto;
  background: var(--emlex-cine-chrome);
  border-bottom: 1px solid var(--v17-gold);
  color: #fff8e7;
}
.cinematic-chat .chat-heading .text-green-100 {
  color: #d2dfd8;
}
.cinematic-chat #chatbot-close {
  min-width: 40px;
  min-height: 40px;
}
.cinematic-chat #chatbot-reset {
  min-height: 36px;
  border: 1px solid var(--emlex-cine-line);
  background: var(--emlex-cine-secondary);
}
.cinematic-chat #chatbot-reset:hover,
.cinematic-chat #chatbot-close:hover {
  color: var(--v17-gold);
}
.cinematic-chat #chat-messages {
  height: min(24rem, 52dvh);
  min-height: min(110px, 22dvh);
  background: var(--emlex-cine-faint);
  overflow-wrap: anywhere;
}
.cinematic-chat #chat-messages > .justify-start > div {
  background: var(--v17-paper);
  color: var(--v17-text);
  border-color: var(--v17-border);
}
.cinematic-chat #chat-messages > .justify-end > div {
  background: var(--emlex-cine-secondary);
  color: #f5f6f0;
}
.cinematic-chat :is(.chat-prompts, .chat-privacy, .chat-composer) {
  background: var(--v17-paper);
  border-color: var(--v17-border);
}
.cinematic-chat #chat-quick-actions .chat-quick-question {
  background: var(--emlex-cine-faint);
  color: var(--v17-deep);
  border: 1px solid var(--v17-border);
  min-height: 34px;
}
.cinematic-chat #chat-quick-actions .chat-quick-question:hover {
  border-color: var(--v17-deep);
}
.cinematic-chat .chat-privacy :is(p, label),
.cinematic-chat .chat-prompts > p {
  color: var(--emlex-cine-muted);
}
.cinematic-chat #chat-input {
  background: var(--v17-paper);
  color: var(--v17-text);
  min-height: 46px;
  min-width: 0;
}
.cinematic-chat #btnEnviarPregunta {
  background: var(--emlex-cine-button);
  color: var(--emlex-cine-ink);
  min-height: 46px;
}
.cinematic-chat :is(.chat-heading, #chatbot-toggle):focus-visible,
.cinematic-chat .chat-heading button:focus-visible {
  outline-color: var(--emlex-cine-gold-light) !important;
}
.cinematic-chat #chat-input:focus-visible {
  outline-offset: -3px;
}
@media (max-width: 400px), (max-height: 660px) {
  .cinematic-chat #chatbot-toggle[aria-expanded="true"] {
    display: none;
  }
  .cinematic-chat #chatbot-panel {
    max-height: calc(100dvh - 2rem);
  }
  .cinematic-chat .chat-heading {
    gap: .5rem;
    padding: .625rem;
  }
  .cinematic-chat .chat-heading > div {
    gap: .375rem;
  }
  .cinematic-chat .chat-heading img {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }
  .cinematic-chat #chatbot-reset {
    padding-inline: .5rem;
  }
}


/* Chatbot EMLEX: capa estrictamente estética sobre los tamaños y el scroll existentes. */
.cinematic-chat {
  --chat-night: #081d18;
  --chat-night-2: #132f27;
  --chat-gold: #e1c18a;
  --chat-ink: #eef5ed;
  --chat-soft: #c8d7ca;
  bottom: max(16px, env(safe-area-inset-bottom));
}
.cinematic-chat #chatbot-toggle {
  border: 1px solid rgba(226,186,115,.82);
  border-radius: 999px;
  background: linear-gradient(132deg,#15362b,#09231e 87%);
  color: #f7ecd8;
  box-shadow: 0 12px 38px rgba(0,0,0,.49),inset 0 1px rgba(255,248,214,.12);
  gap: 11px;
  font-weight: 700;
  letter-spacing: .015em;
}
.cinematic-chat #chatbot-toggle:hover {
  border-color: #f6d79c;
  box-shadow: 0 14px 42px rgba(0,0,0,.55),0 0 20px rgba(213,172,103,.13);
}
.cinematic-chat .chat-emlex-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  padding: 11px;
  color: #183226;
  border-radius: 50%;
  background: linear-gradient(135deg,#f2d89f,#c69b58);
}
.cinematic-chat #chatbot-panel {
  border-radius: 20px;
  border: 1px solid rgba(217,177,109,.8);
  background: var(--chat-night);
  color: var(--chat-ink);
  box-shadow: 0 30px 82px rgba(0,0,0,.59),0 0 24px rgba(214,165,82,.08);
}
.cinematic-chat .chat-heading {
  background: radial-gradient(ellipse at 18% 0%,rgba(58,129,96,.36),transparent 71%),linear-gradient(133deg,#153d2f,#09231c 88%);
  color: #fff2df;
  border-bottom-color: rgba(213,178,110,.52);
}
.cinematic-chat .chat-emlex-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  border: 1px solid rgba(222,185,119,.5);
  background: linear-gradient(133deg,#294c3c,#0b2920);
  color: var(--chat-gold);
}
.cinematic-chat .chat-emlex-avatar svg { width: 22px; height: 22px; }
.cinematic-chat .chat-heading .font-bold {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .016em;
  color: #fff1d7;
}
.cinematic-chat .chat-heading .text-green-100 { color: #cbdacf; }
.cinematic-chat #chatbot-reset {
  border-radius: 11px;
  border-color: rgba(224,196,148,.44);
  background: rgba(9,39,29,.72);
  color: #f3e9d7;
}
.cinematic-chat #chatbot-close { color: #f4eada; }
.cinematic-chat #chatbot-reset:hover,
.cinematic-chat #chatbot-close:hover { color: var(--chat-gold); }
.cinematic-chat #chat-messages {
  color: #eef5eb;
  background: radial-gradient(ellipse at 100% 0%,#14362d,transparent 68%),#091c17;
  scrollbar-color: #829b8c #0b251c;
}
.cinematic-chat #chat-messages > .justify-start > div,
.cinematic-chat #chatbot-typing > div {
  background: linear-gradient(142deg,#244336,#153128);
  color: #eff5ee;
  border: 1px solid rgba(163,201,173,.31);
  border-radius: 14px 14px 14px 4px;
}
.cinematic-chat #chat-messages > .justify-end > div {
  background: linear-gradient(128deg,#f2deba,#d9b47b);
  color: #213426;
  border: 1px solid rgba(247,220,170,.92);
  border-radius: 14px 14px 4px 14px;
}
.cinematic-chat #chat-messages > .justify-start > div > p:first-child { color: var(--chat-gold); opacity: 1; }
.cinematic-chat #chat-messages > .justify-end > div > p:first-child { color: #30503a; opacity: 1; }
.cinematic-chat #chat-messages :is(p,li) { line-height: 1.6; }
.cinematic-chat #chat-messages :is(a,button).bg-green-700 {
  background: linear-gradient(130deg,#efd9ac,#c9a16b);
  color: #1c3125;
  border-radius: 9px;
}
.cinematic-chat #chat-messages button.bg-gray-100 {
  background: #294639;
  border: 1px solid rgba(220,190,132,.45);
  color: #f8ebd1;
}
.cinematic-chat #chat-messages .border-gray-200 { border-color: rgba(236,213,168,.3); }
.cinematic-chat #chat-messages .text-gray-500 { color: #d4e0d4; }
.cinematic-chat #chat-messages .text-gray-700 { color: #f2f5ed; }
.cinematic-chat #chat-messages .bg-amber-100 { background: #59432a; color: #ffe5b4; }
.cinematic-chat :is(.chat-prompts,.chat-privacy,.chat-composer) {
  background: #0f281f;
  border-color: rgba(218,185,121,.28);
}
.cinematic-chat .chat-prompts > p { color: #bfcfc3; letter-spacing: .12em; }
.cinematic-chat #chat-quick-actions .chat-quick-question {
  border-radius: 999px;
  border: 1px solid rgba(222,186,120,.54);
  background: #19382d;
  color: #f4e8ce;
  font-weight: 650;
}
.cinematic-chat #chat-quick-actions .chat-quick-question:hover {
  border-color: #efcc8d;
  background: #2c493b;
}
.cinematic-chat .chat-privacy :is(p,label) { color: #d1dbd2; line-height: 1.55; }
.cinematic-chat #chat-remember-choice { accent-color: #dfbd84; }
.cinematic-chat #chat-input {
  border: 1px solid rgba(199,217,198,.58);
  border-radius: 11px;
  background: #213e32;
  color: #f2f7f0;
}
.cinematic-chat #chat-input::placeholder { color: #c4d3c7; opacity: 1; }
.cinematic-chat #btnEnviarPregunta {
  background: linear-gradient(127deg,#f4dba4,#c69b59 90%);
  color: #162a20;
  border-radius: 10px;
  font-weight: 800;
}
.cinematic-chat #btnEnviarPregunta:hover { filter: brightness(1.05); }
.cinematic-chat #btnEnviarPregunta:disabled { opacity: .64; }
.cinematic-chat :is(button,input,a):focus-visible {
  outline: 3px solid #ffde9f !important;
  outline-offset: 2px;
}
@media(max-width:400px) {
  .cinematic-chat .chat-emlex-avatar { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }
  .cinematic-chat .chat-emlex-avatar svg { width: 19px; height: 19px; }
  .cinematic-chat .chat-heading .font-bold { font-size: 15px; }
}
@media(prefers-reduced-motion:reduce){
  .cinematic-chat *, .cinematic-chat *::before, .cinematic-chat *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}


/* EMLEX · Páginas corporativas cinematográficas: aviso legal y contacto (solo visual). */
body.v17-public.v17-secondary.emlex-info-page {
  --info-gold: #e8c48b;
  --info-border: rgba(219,187,129,.32);
  --info-muted: #c2d0c4;
  background: radial-gradient(ellipse at 83% 2%,#1b4435 0%,transparent 38%),#071715 !important;
  color: #edf3e9 !important;
  overflow-x: hidden;
}
body.v17-public.emlex-info-page > header.emlex-info-nav {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 0 !important;
  background: rgba(5,19,17,.95) !important;
  border-bottom: 1px solid rgba(230,189,112,.28);
  backdrop-filter: blur(18px);
}
.emlex-info-page .emlex-info-nav-inner {
  width: min(1180px,calc(100% - 48px));
  min-height: 83px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.emlex-info-page .emlex-info-home { display: inline-flex; align-items: center; max-width: 60%; }
.emlex-info-page .emlex-info-logo {
  width: clamp(172px,19vw,234px) !important;
  max-width: 100%;
  height: auto !important;
  max-height: 60px;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(198,168,111,.12));
}
.emlex-info-page .emlex-info-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(221,185,124,.55);
  border-radius: 10px;
  color: #f1e1c4 !important;
  background: rgba(17,47,36,.55);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.emlex-info-page .emlex-info-back:hover {
  background: #244538;
  border-color: #eed09c;
}
body.v17-public.v17-secondary.emlex-info-page > main.emlex-info-main {
  width: min(1180px,calc(100% - 48px));
  max-width: 1180px !important;
  margin: 0 auto 48px !important;
  padding: 34px 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #eff4e9 !important;
}
.emlex-info-page .emlex-info-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 310px;
  padding: clamp(27px,5.5vw,70px);
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid rgba(220,188,119,.34);
  background: linear-gradient(130deg,#0d2c24,#0b1d1a);
  box-shadow: 0 22px 65px rgba(0,0,0,.22);
}
.emlex-info-page .emlex-info-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(90deg,rgba(5,21,18,.93) 0%,rgba(6,25,22,.73) 43%,rgba(6,25,22,.32) 100%),
    linear-gradient(0deg,rgba(6,20,17,.85),transparent 75%),
    url("emlex-cinematic-journey-emlex.svg");
  background-position: center,center,center 46%;
  background-size: cover;
  filter: saturate(.77);
}
.emlex-info-page .emlex-info-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 95% 85%,rgba(232,184,105,.10),transparent 50%);
}
.emlex-info-page .emlex-info-hero-content { position: relative; max-width: 870px; }
.emlex-info-page .emlex-info-eyebrow {
  margin: 0 0 18px;
  color: #a9ceb0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.emlex-info-page .emlex-info-eyebrow span { color: #d7b77e; margin: 0 7px; }
body.v17-public.emlex-info-page > main .emlex-info-hero h1 {
  margin: 0 0 26px;
  color: #fff3dd !important;
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 500;
  font-size: clamp(35px,5.2vw,63px) !important;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-align: left;
  text-wrap: balance;
}
.emlex-info-page .emlex-info-gold-rule {
  height: 2px;
  width: 78px;
  background: linear-gradient(90deg,#f7d799,#b78947,transparent);
  box-shadow: 0 0 20px rgba(228,189,109,.3);
}
body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-document {
  position: relative;
  width: min(100% - 44px,1020px);
  max-width: 1020px;
  margin: -30px auto 0;
  padding: clamp(25px,5vw,65px);
  border: 1px solid var(--info-border);
  border-radius: 18px;
  background: linear-gradient(158deg,rgba(20,47,39,.98),rgba(8,28,25,.99));
  box-shadow: 0 22px 75px rgba(0,0,0,.25);
}
body.v17-public.v17-secondary.emlex-info-page > main.emlex-info-main .emlex-info-document h2.text-white {
  margin: 36px 0 18px;
  padding: 0 0 0 18px;
  border-left: 3px solid #dbb875;
  color: #f4d8a7 !important;
  font-size: clamp(16px,2.3vw,21px);
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: .015em;
}
body.v17-public.emlex-info-page .emlex-info-document h2:first-child { margin-top: 0; }
body.v17-public.emlex-info-page .emlex-info-document p {
  margin: 0 0 1.25em;
  color: #d9e2d9;
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
  overflow-wrap: anywhere;
}
body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-contact-grid {
  width: min(100% - 44px,1020px);
  max-width: 1020px;
  display: grid;
  grid-template-columns: 1fr .78fr;
  gap: 18px;
  margin: -30px auto 0;
  position: relative;
  border-radius: 17px;
}
body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-contact-card {
  min-width: 0;
  min-height: 325px;
  display: flex;
  align-items: center;
  padding: clamp(25px,4vw,48px);
  background: linear-gradient(150deg,#17382d,#0b2420);
  border: 1px solid var(--info-border);
  border-radius: 17px;
  box-shadow: 0 20px 65px rgba(0,0,0,.25);
}
.emlex-info-page .emlex-info-contact-card > div { width: 100%; min-width: 0; }
.emlex-info-page .emlex-info-contact-card p {
  margin: 0 0 28px;
  color: #e9f0e8;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.emlex-info-page .emlex-info-contact-card p:last-child { margin-bottom: 0; }
.emlex-info-page .emlex-info-contact-card strong {
  display: block;
  margin-bottom: 7px;
  color: #e4c183;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.v17-public.v17-secondary.emlex-info-page > main.emlex-info-main .emlex-info-contact-card a.text-white {
  color: #f5e5c7 !important;
  text-decoration-color: rgba(242,203,138,.7);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
body.v17-public.v17-secondary.emlex-info-page > main.emlex-info-main .emlex-info-contact-card a.text-white:hover { color: #ffdfa0 !important; }
.emlex-info-page .emlex-info-contact-scene {
  min-height: 325px;
  border: 1px solid var(--info-border);
  border-radius: 17px;
  background-image: linear-gradient(0deg,rgba(5,26,19,.53),rgba(6,26,23,.16)),
    url("emlex-cinematic-seguimiento-emlex.svg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 65px rgba(0,0,0,.20);
}
body.v17-public.emlex-info-page > footer.emlex-info-footer {
  width: 100%;
  margin-top: auto;
  padding: 26px 20px !important;
  color: #b9c9be !important;
  background: #071715 !important;
  border-top: 1px solid rgba(219,183,117,.28);
  font-size: 12px;
  line-height: 1.8;
}
body.v17-public.emlex-info-page > footer.emlex-info-footer a {
  color: #eacb94 !important;
  text-decoration: none;
}
body.v17-public.emlex-info-page > footer.emlex-info-footer a:hover { text-decoration: underline; }
.emlex-info-page :is(a,button):focus-visible { outline: 3px solid #f2d598 !important; outline-offset: 3px; }
@media (max-width: 700px) {
  .emlex-info-page .emlex-info-nav-inner { width: calc(100% - 30px); min-height: 72px; gap: 9px; }
  .emlex-info-page .emlex-info-logo { width: clamp(148px,38vw,184px) !important; }
  .emlex-info-page .emlex-info-back { font-size: 12px; padding: 9px 11px; }
  body.v17-public.v17-secondary.emlex-info-page > main.emlex-info-main {
    width: calc(100% - 24px);
    padding-top: 14px !important;
  }
  .emlex-info-page .emlex-info-hero { padding: 26px; min-height: 245px; border-radius: 15px; }
  .emlex-info-page .emlex-info-eyebrow { letter-spacing: .14em; font-size: 10px; }
  body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-document,
  body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-contact-grid { width: calc(100% - 18px); margin-top: -20px; }
  body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-document { padding: 24px 21px; }
  .emlex-info-page .emlex-info-document p { font-size: 14px; }
  body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-contact-grid { grid-template-columns: 1fr; }
  body.v17-public.v17-secondary.emlex-info-page > main .emlex-info-contact-card { min-height: 235px; padding: 28px 25px; }
  .emlex-info-page .emlex-info-contact-scene { min-height: 185px; }
}
@media (max-width: 360px) {
  .emlex-info-page .emlex-info-back { font-size: 11px; padding: 9px 8px; }
  .emlex-info-page .emlex-info-logo { width: 140px !important; }
  .emlex-info-page .emlex-info-hero { min-height: 225px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .emlex-info-page *, .emlex-info-page *::before, .emlex-info-page *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* EMLEX · Acceso cinematográfico de dos etapas. Exclusivo de login.html;
   no altera el registro cerrado ni los componentes de otras páginas. */
body.v17-public.v17-auth.emlex-login {
  background: radial-gradient(ellipse at 15% 15%, #153b32 0%, transparent 48%),
    radial-gradient(ellipse at 87% 87%, #453b26 0%, transparent 35%), #061313 !important;
}
body.v17-public.v17-auth.emlex-login > main.emlex-login-main {
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 52px) !important;
}
.emlex-login .emlex-login-shell {
  width: min(1120px, 100%);
  min-width: 0;
  min-height: min(710px, calc(100dvh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  overflow: hidden;
  border: 1px solid rgba(231,192,121,.52);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0,0,0,.5), 0 0 85px rgba(175,140,79,.08);
}
.emlex-login .emlex-login-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 560px;
  padding: clamp(28px, 4.2vw, 52px);
  background-image:
    linear-gradient(180deg, rgba(4,19,17,.70) 0%, rgba(6,24,21,.16) 39%, rgba(4,17,16,.92) 100%),
    linear-gradient(95deg, rgba(5,21,19,.6), transparent 80%),
    url("emlex-cinematic-hero-emlex.svg");
  background-position: center;
  background-size: cover;
  color: #edf2e9;
}
.emlex-login .emlex-login-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 55%, rgba(231,189,110,.15), transparent 58%);
}
.emlex-login .emlex-login-brand { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; }
.emlex-login .emlex-login-logo {
  width: clamp(160px, 22vw, 228px);
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.26));
}
.emlex-login .emlex-login-scene-copy { max-width: 480px; }
.emlex-login .emlex-login-kicker,
.emlex-login .emlex-login-panel-kicker {
  display: block;
  margin-bottom: 22px;
  color: #e8c98d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .23em;
  line-height: 1.5;
}
.emlex-login .emlex-login-rule {
  display: block;
  width: 68px;
  height: 2px;
  margin-bottom: 25px;
  background: linear-gradient(90deg,#f8d99d,#b18a4e,transparent);
}
body.v17-public.emlex-login > main .emlex-login-scene h2 {
  margin: 0 0 24px;
  color: #fff2d9 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4.2vw, 59px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.emlex-login .emlex-login-scene-copy p {
  margin: 0;
  max-width: 365px;
  font-size: 15px;
  line-height: 1.8;
  color: #e1e9dd;
}
.emlex-login .emlex-login-scene-footer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.7;
  color: #e5d7b6;
}
.emlex-login .emlex-login-scene-footer span { margin: 0 8px; color: #d0b27d; }
body.v17-public.v17-auth.emlex-login > main .emlex-login-panel {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.8vw, 66px) !important;
  border: 0 !important;
  border-left: 1px solid rgba(216,184,124,.32) !important;
  border-radius: 0 !important;
  background: linear-gradient(160deg, #12342b 0%, #091f1b 72%, #071a18 100%) !important;
  box-shadow: none !important;
  color: #f4f1e7 !important;
}
.emlex-login .emlex-login-heading { text-align: left; margin-bottom: 25px; }
.emlex-login .emlex-login-panel-kicker { margin-bottom: 10px; color: #d8b57b; }
body.v17-public.emlex-login > main .emlex-login-panel h1 {
  margin: 0 0 12px;
  color: #fff0d8 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(34px, 3.5vw, 47px);
  letter-spacing: -.018em;
}
body.v17-public.emlex-login > main .emlex-login-panel #login-subtitle {
  margin: 0;
  color: #c5d6c8 !important;
  font-size: 14px;
  line-height: 1.7;
}
.emlex-login .emlex-login-progress {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}
.emlex-login .emlex-login-progress > span:not(.emlex-login-progress-line) {
  color: #c7d3c5;
  font-size: 10px;
  letter-spacing: .07em;
  font-weight: 700;
  white-space: nowrap;
}
.emlex-login .emlex-login-progress > span.is-active { color: #f9d89b; }
.emlex-login .emlex-login-progress-line { flex: 1; height: 1px; background: rgba(214,179,116,.35); }
.emlex-login .emlex-login-field { margin-bottom: 19px; }
.emlex-login .emlex-login-field label {
  color: #eef3e8;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}
body.v17-public.emlex-login > main .emlex-login-panel input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(181,213,189,.56);
  background: rgba(8,29,24,.7);
  color: #f5f7ed;
  font-size: 15px;
}
body.v17-public.emlex-login > main .emlex-login-panel input::placeholder { color: #b9c7ba; opacity: 1; }
body.v17-public.emlex-login > main .emlex-login-panel input:focus-visible,
body.v17-public.emlex-login > main :is(a,button):focus-visible {
  outline: 3px solid #ffd991 !important;
  outline-offset: 3px;
}
.emlex-login .emlex-login-field p,
.emlex-login .emlex-login-mfa-info {
  color: #d2dfd2 !important;
  line-height: 1.65;
}
.emlex-login .emlex-login-mfa-info { margin: 0 0 23px; font-size: 14px; }
body.v17-public.emlex-login > main .emlex-login-panel button.bg-green-700 {
  display: block;
  min-height: 52px;
  margin-top: 24px;
  background: linear-gradient(128deg,#ffe3a7,#cda365 90%) !important;
  border: 1px solid #edc98a;
  border-radius: 10px;
  color: #172b23 !important;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(218,166,86,.17);
  transition: transform .18s ease,box-shadow .18s ease;
}
.emlex-login .emlex-login-panel button.bg-green-700:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(218,166,86,.26); }
.emlex-login .emlex-login-panel button:disabled { opacity: .63; cursor: wait; transform: none; }
.emlex-login .emlex-login-alternative {
  margin: 19px 0;
  text-align: center;
  color: #d2d9c9;
  font-size: 12px;
}
.emlex-login .emlex-login-back {
  display: block;
  margin: 16px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(230,198,139,.4);
  border-radius: 9px;
  background: transparent;
  color: #f3d49f;
  font-size: 13px;
  cursor: pointer;
}
.emlex-login .emlex-login-back:hover { border-color: #f8d69d; }
.emlex-login .emlex-login-links { margin-top: 28px; border-top: 1px solid rgba(216,191,147,.25); padding-top: 15px; }
.emlex-login .emlex-login-links p { color: #d8e1d6; line-height: 1.6; }
body.v17-public.emlex-login > main .emlex-login-links a {
  color: #f5d29a !important;
  text-underline-offset: 4px;
}
.emlex-login .emlex-login-security-note {
  margin: 22px 0 0;
  text-align: center;
  color: #b5c8b6;
  font-size: 11px;
  letter-spacing: .06em;
}
.emlex-login #login-mfa-step[hidden],
.emlex-login #login-credentials-step[hidden] { display: none !important; }
.emlex-login #msg {
  color: #fff4e5 !important;
  border-color: rgba(255,195,148,.62);
  background: #693428;
  line-height: 1.55;
}
.emlex-login #msg.border-green-300 {
  color: #ecf9e9 !important;
  border-color: #a3d1af;
  background: #254635;
}
@media (max-width: 800px) {
  .emlex-login .emlex-login-shell { grid-template-columns: 1fr; min-height: 0; }
  .emlex-login .emlex-login-scene { min-height: 230px; padding: 28px; gap: 25px; }
  .emlex-login .emlex-login-scene-copy { display: none; }
  .emlex-login .emlex-login-scene-footer { font-size: 9px; }
  body.v17-public.v17-auth.emlex-login > main .emlex-login-panel {
    border-left: 0 !important;
    border-top: 1px solid rgba(216,184,124,.32) !important;
    padding: clamp(25px,6vw,45px) !important;
  }
}
@media (max-width: 430px) {
  body.v17-public.v17-auth.emlex-login > main.emlex-login-main { padding: 10px !important; }
  .emlex-login .emlex-login-shell { border-radius: 15px; }
  .emlex-login .emlex-login-scene { min-height: 156px; padding: 21px; }
  .emlex-login .emlex-login-logo { width: 156px; }
  .emlex-login .emlex-login-scene-footer { letter-spacing: .085em; }
  .emlex-login .emlex-login-progress { gap: 7px; }
  .emlex-login .emlex-login-progress > span:not(.emlex-login-progress-line) { font-size: 9px; letter-spacing: 0; }
  body.v17-public.v17-auth.emlex-login > main .emlex-login-panel { padding: 26px 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .emlex-login * { transition: none !important; animation: none !important; }
}

/* EMLEX · FAQ académica ampliada, página pública sin dependencias de JS.
   Reutiliza el contenedor corporativo de Aviso legal / Contacto. */
body.v17-public.v17-secondary.emlex-info-page > main .emlex-faq-document {
  padding: clamp(25px, 4.4vw, 55px) !important;
}
.emlex-info-page .emlex-faq-document .emlex-faq-intro {
  max-width: 800px;
  color: #e0eadb;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.85;
}
.emlex-info-page .emlex-faq-intro strong { color: #f8dca9; font-weight: 800; }
.emlex-info-page .emlex-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 21px 0 22px;
  margin: 14px 0 15px;
  border-top: 1px solid rgba(221, 181, 114, .23);
  border-bottom: 1px solid rgba(221, 181, 114, .23);
}
body.v17-public.emlex-info-page .emlex-faq-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(212, 183, 120, .36);
  border-radius: 99px;
  background: rgba(16, 44, 37, .85);
  color: #edddbc !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.emlex-info-page .emlex-faq-nav a:hover,
.emlex-info-page .emlex-faq-nav a:focus-visible {
  background: rgba(73, 78, 54, .6);
  border-color: #edcd93;
}
.emlex-info-page .emlex-faq-group {
  padding-top: 30px;
  margin-top: 6px;
  scroll-margin-top: 24px;
}
.emlex-info-page .emlex-faq-group + .emlex-faq-group {
  border-top: 1px solid rgba(221, 181, 114, .17);
  margin-top: 28px;
}
body.v17-public.emlex-info-page .emlex-faq-group-heading h2 {
  margin: 0 0 9px;
  padding: 0;
  color: #f5d7a0 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
}
body.v17-public.emlex-info-page .emlex-faq-group-heading p {
  margin: 0 0 25px;
  color: #c8d6c9;
  font-size: 14px;
  line-height: 1.75;
}
.emlex-info-page .emlex-faq-answer {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid rgba(194, 210, 187, .22);
  border-radius: 12px;
  background: rgba(3, 22, 19, .48);
  overflow: hidden;
}
.emlex-info-page .emlex-faq-answer[open] {
  border-color: rgba(230, 191, 124, .64);
  background: rgba(5, 30, 25, .84);
}
.emlex-info-page .emlex-faq-answer summary {
  position: relative;
  display: block;
  min-height: 53px;
  padding: 16px 52px 16px 19px;
  color: #f3f2e9;
  font-size: clamp(14px, 1.32vw, 16px);
  font-weight: 680;
  line-height: 1.5;
  letter-spacing: .004em;
  cursor: pointer;
  list-style: none;
}
.emlex-info-page .emlex-faq-answer summary::-webkit-details-marker { display: none; }
.emlex-info-page .emlex-faq-answer summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #f5d398;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}
.emlex-info-page .emlex-faq-answer[open] summary::after { content: "−"; }
.emlex-info-page .emlex-faq-answer summary:hover {
  background: rgba(227, 181, 105, .07);
}
.emlex-info-page .emlex-faq-answer summary:focus-visible,
.emlex-info-page .emlex-faq-document a:focus-visible {
  outline: 3px solid #ffd894;
  outline-offset: 3px;
}
.emlex-info-page .emlex-faq-response {
  padding: 0 19px 17px;
  border-top: 1px solid rgba(216, 189, 143, .15);
}
body.v17-public.emlex-info-page .emlex-faq-response p {
  margin: 14px 0 0;
  max-width: 790px;
  color: #d9e5dc;
  font-size: 14px;
  line-height: 1.85;
}
body.v17-public.emlex-info-page .emlex-faq-response a {
  color: #ffdfa7 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.emlex-info-page .emlex-faq-final {
  margin-top: 42px;
  padding: clamp(23px, 3.6vw, 37px);
  border: 1px solid rgba(227, 190, 128, .54);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(39, 76, 56, .63), rgba(11, 36, 32, .94));
}
body.v17-public.emlex-info-page .emlex-faq-final h2 {
  margin: 0 0 13px;
  color: #f7d9a2 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
}
body.v17-public.emlex-info-page .emlex-faq-final p {
  max-width: 680px;
  margin: 0 0 22px;
}
body.v17-public.emlex-info-page .emlex-faq-final a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 23px;
  border-radius: 8px;
  background: linear-gradient(128deg, #f9deaa, #c89b5d);
  color: #132821 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 600px) {
  .emlex-info-page .emlex-faq-nav { gap: 7px; padding: 15px 0; }
  body.v17-public.emlex-info-page .emlex-faq-nav a { font-size: 11px; padding: 10px 12px; }
  .emlex-info-page .emlex-faq-group { padding-top: 24px; }
  .emlex-info-page .emlex-faq-answer summary { padding: 16px 44px 16px 14px; }
  .emlex-info-page .emlex-faq-answer summary::after { right: 14px; }
  .emlex-info-page .emlex-faq-response { padding: 0 14px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .emlex-info-page .emlex-faq-nav a { transition: none; }
}
