/* ===========================================================
   GROWEX — Hoja de estilos principal
   Paleta de marca, tipografía, layout y componentes.
   Todo el diseño visual vive aquí (separado del HTML y el JS).
   =========================================================== */

/* ---------- 1. Tokens de diseño (variables de marca) ---------- */
:root {
  /* Colores de marca (extraídos del logo Growex) */
  --brand-lime:  #c5d43d;
  --brand-green: #3eb57f;
  --brand-teal:  #1fa98a;
  --brand-deep:  #0f5148;
  --grad-brand:  linear-gradient(120deg, #c5d43d, #3eb57f 55%, #1fa98a);

  /* Fondos y superficies (tema oscuro inmersivo) */
  --bg:          #0b120f;
  --bg-2:        #0c1512;
  --surface:     rgba(255, 255, 255, .04);
  --surface-brd: rgba(255, 255, 255, .09);
  --line:        rgba(255, 255, 255, .08);

  /* Texto */
  --text:        #eef2ee;
  --text-soft:   #b3c1b8;
  --text-mut:    #a9b6ac;
  --text-faint:  #7f8d84;
  --accent-txt:  #8fd68f;

  /* Tipografía */
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;

  /* Radios y layout */
  --r-card: 18px;
  --r-lg:   22px;
  --r-pill: 999px;
  --maxw:   1160px;
  --nav-h:  62px;
}

/* ---------- 2. Reset básico ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-txt); text-decoration: none; }
a:hover { color: var(--brand-lime); }
button { font-family: inherit; }
input, textarea { font-family: inherit; }
::placeholder { color: #6d7b72; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }

/* Utilidades reutilizables */
.container { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  color: var(--accent-txt); margin-bottom: 14px;
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: clamp(56px, 8vw, 96px) 22px; }
.section--line { border-top: 1px solid var(--line); }
.section--tint { background: linear-gradient(180deg, rgba(31,169,138,.06), transparent); }

/* Títulos */
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; margin: 0; }
.h1 { font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.03; }
.h2 { font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; }
.lead { font-size: clamp(16px, 2.4vw, 20px); line-height: 1.55; color: var(--text-soft); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: var(--r-pill);
  cursor: pointer; border: none; transition: filter .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn--primary { background: var(--grad-brand); color: #0c1712; }
.btn--primary:hover { filter: brightness(1.06); color: #0c1712; }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.24); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-txt); color: var(--text); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- 4. Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); background: rgba(11,18,15,.78);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .03em; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-link {
  cursor: pointer; font-weight: 500; font-size: 15px; color: #d7e0d9;
  position: relative; padding: 4px 0; background: none; border: none;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; border-radius: 2px; background: var(--grad-brand);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Botón hamburguesa (móvil) */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 14px 22px 22px; flex-direction: column; gap: 4px; }
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-link { font-size: 18px; font-weight: 600; color: var(--text); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- 5. Páginas (SPA) ---------- */
.view { display: none; }
.view.is-active { display: block; animation: fadeUp .5s ease both; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px,7vw,84px) 22px clamp(40px,5vw,56px); }
.hero__aura {
  position: absolute; top: 2%; left: 50%;
  width: min(920px,120vw); height: min(920px,120vw); border-radius: var(--r-pill);
  background: radial-gradient(circle, rgba(62,181,127,.4), rgba(31,169,138,.1) 40%, transparent 66%);
  animation: auraA 9s ease-in-out infinite; pointer-events: none;
}
.hero__logo-bg {
  position: absolute; top: -120px; right: -100px; width: min(460px,60vw);
  opacity: .09; animation: spin 60s linear infinite; pointer-events: none;
}
.hero__inner { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .2em; color: var(--accent-txt);
  border: 1px solid rgba(143,214,143,.28); padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 26px;
}
.hero h1 { font-weight: 700; font-size: clamp(38px,7vw,68px); line-height: 1.02; margin-bottom: 22px; }
.hero .lead { margin: 0 auto 34px; max-width: 34em; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { text-align: center; margin-top: 26px; font-size: 14px; color: var(--text-faint); }

/* ---------- 7. Marco de video ---------- */
.video-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(0,0,0,.5);
  background: var(--bg-2);
}
.video-frame--hero { max-width: 1000px; margin: clamp(36px,5vw,52px) auto 0; height: clamp(220px,42vw,380px); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Poster de respaldo cuando aún no hay video cargado */
.video-frame__placeholder {
  position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-teal), var(--brand-deep));
}
.video-frame__placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
}
.video-frame__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 82px; height: 82px;
}
.video-frame__play::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.6); animation: pulseRing 2.4s ease-out infinite;
}
.video-frame__play::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94);
  /* triángulo de play */
  background-image: linear-gradient(90deg, transparent 46%, #0c1512 46%);
  -webkit-mask: none;
}
.play-triangle {
  position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%);
  width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  border-left: 21px solid #0c1512; z-index: 2;
}
.video-frame__tag {
  position: absolute; right: 16px; top: 14px; left: auto; bottom: auto; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.9); pointer-events: none;
  background: rgba(0,0,0,.32); padding: 6px 12px; border-radius: 8px;
}

/* ---------- 8. Grids y tarjetas ---------- */
.grid { display: grid; gap: 18px; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--auto-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--auto-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--surface-brd);
  border-radius: var(--r-card); padding: 26px; transition: transform .25s, border-color .25s;
}
.card--link { cursor: pointer; }
.card--link:hover { transform: translateY(-4px); border-color: rgba(143,214,143,.4); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand); margin-bottom: 18px; }
.card h3 { font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--text-mut); margin: 0 0 14px; }
.card__tags { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--text-faint); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.link-arrow { cursor: pointer; color: var(--brand-lime); font-weight: 600; white-space: nowrap; background: none; border: none; }

/* Diferenciales */
.diff { border-top: 2px solid rgba(143,214,143,.35); padding-top: 20px; }
.diff__n { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin-bottom: 10px; }
.diff h3 { font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.diff p { font-size: 15px; line-height: 1.5; color: var(--text-mut); margin: 0; }

/* Chips de método */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.chip {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: 14px;
}
.chip__n { color: var(--accent-txt); font-family: var(--font-mono); font-size: 12px; margin-right: 7px; }

/* Mission / vision / valores / esencia */
.mvp-card { border-radius: var(--r-lg); padding: 30px; background: var(--surface); border: 1px solid var(--surface-brd); }
.mvp-card__label { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.mvp-card p { font-size: 16px; line-height: 1.6; color: #c3cfc7; margin: 0; }

.value { display: flex; gap: 14px; align-items: flex-start; }
.value__n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-txt); padding-top: 2px; min-width: 24px; }
.value h3 { font-weight: 600; font-size: 17px; margin-bottom: 5px; }
.value p { font-size: 14px; line-height: 1.5; color: var(--text-mut); margin: 0; }

/* Método (lista de pasos) */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px,4vw,40px); min-width: 56px; line-height: 1; }
.step h3 { font-weight: 600; font-size: clamp(20px,3vw,26px); margin-bottom: 8px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--text-mut); margin: 0; max-width: 44em; }

/* Bloque destacado IA */
.feature {
  max-width: var(--maxw); margin: 0 auto; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(143,214,143,.28);
  background: linear-gradient(135deg, rgba(197,212,61,.12), rgba(31,169,138,.14));
  position: relative;
}
.feature__glow { position: absolute; top: -100px; right: -60px; width: 360px; height: 360px; border-radius: var(--r-pill); background: radial-gradient(circle, rgba(62,181,127,.4), transparent 68%); pointer-events: none; }
.feature__inner { position: relative; padding: clamp(28px,4vw,48px); }
.pill-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: rgba(11,18,15,.5); border: 1px solid rgba(143,214,143,.3); border-radius: var(--r-pill); padding: 9px 16px; font-weight: 600; font-size: 14px; }

/* Prototipos / demos */
.demo { border-radius: var(--r-card); overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.demo__media { position: relative; height: 200px; overflow: hidden; }
.demo__media video { width: 100%; height: 100%; object-fit: cover; }
.demo__badge { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: #0c1712; background: var(--grad-brand); padding: 5px 11px; border-radius: var(--r-pill); font-weight: 700; z-index: 3; }
.demo__body { padding: 22px; }
.demo__body h3 { font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.demo__body p { font-size: 15px; line-height: 1.5; color: var(--text-mut); margin: 0; }

/* ---------- 9. Contacto ---------- */
.contact-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 14px; color: var(--text); background: var(--surface); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; }
.contact-item:hover { border-color: rgba(143,214,143,.5); color: var(--text); }
.contact-item__ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.contact-item small { display: block; font-size: 13px; color: var(--accent-txt); }
.contact-item strong { font-weight: 600; }

.form-card { background: var(--surface); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: clamp(24px,3vw,34px); }
.form-card h3 { font-weight: 700; font-size: 22px; margin-bottom: 22px; }
.field-label { display: block; font-size: 13px; color: var(--accent-txt); margin-bottom: 7px; }
.field {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 13px 15px; color: var(--text); font-size: 15px;
  margin-bottom: 16px; outline: none;
}
.field:focus { border-color: rgba(143,214,143,.5); }
/* Evita que el autocompletado de Chrome pinte los campos de blanco */
.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #16211c inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
textarea.field { resize: vertical; margin-bottom: 22px; }
.form-card .btn { width: 100%; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success__check { width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--grad-brand); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #0c1712; }
.form-success h3 { font-weight: 700; font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--text-mut); margin: 0 0 20px; }
.is-hidden { display: none !important; }

/* ---------- 10. Pre-footer + footer ---------- */
.cta-band { padding: clamp(48px,7vw,80px) 22px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(31,169,138,.08)); }
.cta-band__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-band h2 { font-weight: 700; font-size: clamp(28px,4.5vw,42px); line-height: 1.05; margin-bottom: 16px; }
.cta-band p { color: var(--text-mut); font-size: 17px; margin: 0 0 28px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: clamp(40px,6vw,60px) 22px 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); }
.footer-about { max-width: 22em; }
.footer-about p { color: var(--text-mut); font-size: 14px; line-height: 1.55; margin: 0; }
.footer-col__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-col__links a, .footer-col__links button { color: #c3cfc7; background: none; border: none; text-align: left; cursor: pointer; padding: 0; font-size: 14px; }
.footer-col__links a:hover, .footer-col__links button:hover { color: #fff; }
.footer-contact { display: flex; align-items: center; gap: 10px; }
.footer-ic { width: 18px; height: 18px; flex: none; }
.footer-social { display: flex; gap: 12px; margin-top: 5px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #c3cfc7; transition: color .18s, background .18s, border-color .18s; }
.footer-social a svg { width: 19px; height: 19px; }
.footer-social a:hover { color: #0c1712; background: var(--brand-lime); border-color: var(--brand-lime); }
.footer-bottom { max-width: var(--maxw); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-faint); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 899px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .section-head { align-items: flex-start; }
}
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* Grids específicos */
.grid--mv { grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); gap: 20px; }
.grid--values { grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 16px; }
.grid--demos { grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); gap: 20px; }

/* ---------- 12. Animaciones ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes auraA { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .5; } 50% { transform: translate(-50%,-50%) scale(1.16); opacity: .78; } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}


/* ---------- 12. Popup de evento ---------- */
[hidden] { display: none !important; }

.evt-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(6, 12, 9, .74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s ease;
}
.evt-overlay.is-open { opacity: 1; }

.evt-card {
  position: relative;
  width: 100%; max-width: 1000px; max-height: 92vh; overflow-x: hidden; overflow-y: auto;
  display: grid; grid-template-columns: 1.12fr .88fr;
  background: #fff; border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  font-family: 'Poppins', var(--font-body);
  transform: translateY(18px) scale(.985); opacity: 0;
  transition: transform .34s cubic-bezier(.2,.8,.25,1), opacity .34s ease;
}
.evt-overlay.is-open .evt-card { transform: none; opacity: 1; }

.evt-x {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: #10130f;
  font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.evt-x:hover { background: #fff; }

.evt-copy { padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; }

.evt-brand { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 34px); }
.evt-brand img { width: 38px; height: 38px; }
.evt-brand span { font-weight: 700; font-size: 22px; letter-spacing: .02em; color: #10130f; }

.evt-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #147a63; margin-bottom: 14px;
}
.evt-title {
  margin: 0 0 18px; font-weight: 700; color: #10130f;
  font-size: clamp(27px, 3.3vw, 44px); line-height: 1.08; letter-spacing: -.01em;
  text-wrap: balance;
}
.evt-title em { font-style: normal; color: var(--brand-teal); }
.evt-desc { margin: 0 0 26px; font-size: clamp(14.5px, 1.2vw, 17px); line-height: 1.55; color: #5c6a63; text-wrap: pretty; }

.evt-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  padding: 18px 0; margin-bottom: clamp(22px, 3vw, 32px);
  border-top: 1px solid #e2e8e3; border-bottom: 1px solid #e2e8e3;
}
.evt-meta__item { display: flex; flex-direction: column; gap: 6px; }
.evt-meta__item small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #9aa79f; }
.evt-meta__item strong { font-size: clamp(15px, 1.4vw, 20px); font-weight: 700; color: #10130f; }

.evt-actions { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; margin-top: auto; }
.evt-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border-radius: 3px;
  background: var(--brand-grad, linear-gradient(120deg, #c5d43d, #3eb57f 55%, #1fa98a));
  color: #0c1712 !important; font-weight: 700; font-size: clamp(15px, 1.2vw, 17px);
  transition: filter .2s ease, transform .2s ease;
}
.evt-cta:hover { filter: brightness(1.06); transform: translateY(-1px); color: #0c1712 !important; }
.evt-cta__arrow { font-size: 1.1em; }
.evt-dismiss {
  border: 0; background: none; cursor: pointer; padding: 8px 2px;
  font-size: clamp(15px, 1.2vw, 17px); color: #5c6a63;
  border-bottom: 1px solid #c8d1ca;
}
.evt-dismiss:hover { color: #10130f; border-bottom-color: #10130f; }

/* Las fotos van absolutas: así no imponen su altura intrínseca a la tarjeta
   y la columna de imagen sigue la altura del texto. El object-position está
   calibrado al rostro de cada persona; los nombres son texto HTML encima. */
.evt-media { position: relative; display: block; overflow: hidden; min-height: 0; background: #0b120f; }
.evt-photo { position: absolute; left: 0; margin: 0; width: 100%; height: calc(50% - 2px); overflow: hidden; }
.evt-photo--a { top: 0; }
.evt-photo--b { bottom: 0; }
.evt-photo img { width: 100%; height: 100%; object-fit: cover; }
.evt-photo--a img { object-position: 50% 26%; }
.evt-photo--b img { object-position: 50% 12%; }

.evt-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 8px;
  padding: 34px 20px 14px;
  background: linear-gradient(to top, rgba(6, 12, 9, .82), rgba(6, 12, 9, .38) 55%, rgba(6, 12, 9, 0));
  pointer-events: none;
}
.evt-cap--stack { flex-direction: column; align-items: flex-start; gap: 1px; }
.evt-cap strong { color: #fff; font-weight: 700; font-size: clamp(14px, 1.35vw, 19px); line-height: 1.2; }
.evt-cap span { color: var(--brand-lime); font-weight: 500; font-size: clamp(12px, 1.05vw, 14.5px); }

/* Pantallas de poca altura (laptops 13", ventanas reducidas) */
@media (min-width: 861px) and (max-height: 760px) {
  .evt-copy { padding: 26px 30px 28px; }
  .evt-brand { margin-bottom: 16px; }
  .evt-brand img { width: 32px; height: 32px; }
  .evt-brand span { font-size: 19px; }
  .evt-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
  .evt-desc { font-size: 14.5px; margin-bottom: 18px; }
  .evt-meta { padding: 14px 0; margin-bottom: 20px; }
  .evt-meta__item strong { font-size: 16px; }
  .evt-cta { padding: 14px 24px; }
}

@media (max-width: 860px) {
  .evt-card { grid-template-columns: 1fr; max-height: 90vh; }
  .evt-media { height: 190px; order: -1; }
  .evt-photo { width: calc(50% - 2px); height: 100%; }
  .evt-photo--a { left: 0; top: 0; }
  .evt-photo--b { left: auto; right: 0; top: 0; bottom: auto; }
  .evt-photo--a img { object-position: 50% 22%; }
  .evt-photo--b img { object-position: 50% 15%; }
  .evt-cap { padding: 28px 14px 11px; }
  .evt-card { border-radius: 16px; }
}
@media (max-width: 560px) {
  .evt-overlay { padding: 12px; }
  .evt-media { height: 132px; }
  .evt-meta { grid-template-columns: 1fr; gap: 14px; }
  .evt-actions { gap: 16px; }
  .evt-cta { flex: 1; justify-content: center; padding: 16px 20px; }
}
