@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/barlow-condensed-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-wght.woff2') format('woff2');
}

:root {
  --navy: #071e34;
  --deep: #041525;
  --blue: #12334c;
  --teal: #5caaa0;
  --gold: #cda978;
  --paper: #f5f3ee;
  --white: #fff;
  --ink: #122a3c;
  --muted: #526575;
  --line: #d8dcd9;
  --display: 'Barlow Condensed', Impact, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  scrollbar-color: #9aafba #edf0ef;
  scrollbar-width: thin;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(4, 21, 37, 0.2);
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #138e9b;
  outline-offset: 4px;
}

::selection {
  background: var(--teal);
  color: #071e34;
}

/* Barra superior institucional */
.announcement {
  background: var(--deep);
  color: #e0be8d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  border-bottom: 1px solid rgba(205, 169, 120, 0.16);
}

.announcement .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
}

/* Header y Navegación con identidad original + botones ovalados Gemini */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 #09253c18, 0 8px 24px rgba(7, 30, 52, 0.05);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 91px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 235px;
  color: #0c2d47;
  font: 700 27px/.9 var(--display);
  letter-spacing: .015em;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 88px;
  height: 61px;
  flex: 0 0 88px;
  overflow: hidden;
}

.brand .brand-symbol img {
  position: absolute;
  display: block;
  max-width: none;
  width: 99px;
  height: 99px;
  left: -5px;
  top: -10px;
  object-fit: cover;
  object-position: center top;
  clip-path: none;
  image-rendering: -webkit-optimize-contrast;
}

.brand small {
  display: block;
  font: 700 9px var(--body);
  letter-spacing: .12em;
  margin-top: 7px;
  color: #355068;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.15vw, 18px);
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a:not(.nav-cta):not(.nav-prereg-link) {
  padding: 6px 2px;
  transition: color .2s ease;
}

.main-nav a:not(.nav-cta):hover,
.main-nav [aria-current=page] {
  color: #956d42;
}

.main-nav .nav-prereg-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(205, 169, 120, 0.75);
  background: rgba(205, 169, 120, 0.14);
  color: #071e34;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.main-nav .nav-prereg-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #071e34;
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(7, 30, 52, 0.16);
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.nav-cta span {
  color: var(--gold);
  margin-left: 10px;
}

.nav-cta:hover {
  background: #1a3d58;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7, 30, 52, 0.25);
}

.menu-button {
  display: none;
}

/* Hero Principal Original + Tarjeta de Evento Vigente a la Derecha */
.hero {
  background:
    linear-gradient(90deg, rgba(4, 17, 32, .96) 0%, rgba(5, 22, 41, .88) 47%, rgba(6, 27, 49, .58) 100%),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=2000&q=85") center 48% / cover no-repeat;
  background-color: #071e34;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#fff1 1px, transparent 1px),
    linear-gradient(90deg, #fff1 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: .17;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 430px);
  gap: clamp(32px, 4vw, 52px);
  align-items: center;
  padding-block: 76px;
}

.eyebrow,
.section-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #986e45;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5bd85;
  margin: 0;
}

.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  font: 700 clamp(68px, 7.6vw, 114px)/.86 var(--display);
  text-transform: uppercase;
  letter-spacing: -.012em;
  margin: 28px 0 24px;
  max-width: 760px;
}

.hero h1 em,
.section-title em,
.closing-section h2 em,
.agenda-hero h1 em,
.contact-hero h1 em,
.speakers-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
  color: #d0dce2;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-quick-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Botones Ovalados Tipo Píldora (20% Mejora UI/UX Gemini) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s ease, background-color .24s ease, color .24s ease, border-color .24s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: #071e34;
  box-shadow: 0 10px 26px rgba(205, 169, 120, 0.25);
}

.button-gold:hover {
  background: #e2c598;
  box-shadow: 0 14px 32px rgba(205, 169, 120, 0.36);
}

.button-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 30, 52, 0.18);
}

.button-dark:hover {
  background: #1c3f5c;
  box-shadow: 0 14px 30px rgba(7, 30, 52, 0.28);
}

.button-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(205, 169, 120, 0.55);
  backdrop-filter: blur(6px);
}

.button-outline-light:hover {
  background: rgba(205, 169, 120, 0.18);
  border-color: var(--gold);
  color: #fff;
}

.button-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(7, 30, 52, 0.28);
}

.button-outline:hover {
  background: rgba(7, 30, 52, 0.06);
  border-color: var(--navy);
}

.button-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 12px;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  transition: color .22s ease, transform .22s ease;
}

.text-link:hover {
  color: #9b7143;
}

.text-link.light {
  color: #e6eff4;
  border-bottom-color: rgba(230, 239, 244, 0.45);
}

.text-link.light:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Tarjeta derecha del Hero: Evento Vigente */
.hero-event-card {
  position: relative;
  background: linear-gradient(160deg, rgba(8, 30, 51, 0.92) 0%, rgba(4, 21, 37, 0.96) 100%);
  border: 1px solid rgba(205, 169, 120, 0.45);
  border-top: 3px solid var(--gold);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 26px 60px rgba(2, 12, 24, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-event-card::before {
  content: '';
  position: absolute;
  right: -65px;
  top: -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(205, 169, 120, 0.18);
  pointer-events: none;
}

.hero-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(205, 169, 120, 0.16);
  border: 1px solid rgba(205, 169, 120, 0.48);
  color: #f2d7a1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(92, 170, 160, 0.22);
}

.hero-event-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-event-title {
  font: 700 clamp(27px, 2.6vw, 34px)/1.04 var(--display);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -.005em;
}

.hero-event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 14px;
}

.hero-event-meta li {
  font-size: 13px;
  line-height: 1.55;
  color: #d0dce4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-event-meta strong {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-event-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 17px;
  border-top: 1px solid #ffffff2a;
  color: #b5c6ce;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* Secciones generales */
.section {
  padding: 100px 0;
}

.section-title {
  font: 700 clamp(48px, 5.7vw, 76px)/.95 var(--display);
  text-transform:uppercase;
  letter-spacing: -.012em;
  margin: 18px 0 0;
}

/* Video Institucional 2026 integrado con paleta original */
.edition-video {
  background: linear-gradient(180deg, #ece9e1 0%, var(--paper) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.edition-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 390px);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.edition-video-copy {
  max-width: 640px;
}

.edition-video-copy p:not(.section-index) {
  font-size: 15.5px;
  line-height: 1.8;
  color: #263d50;
  margin: 18px 0;
}

.edition-video-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 28px;
}

.edition-video-highlight {
  background: #fff;
  border: 1px solid #d8e0e2;
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(7, 30, 52, 0.06);
}

.edition-video-highlight strong {
  display: block;
  font: 700 21px/1.05 var(--display);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.edition-video-highlight span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.edition-video-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.edition-video-player {
  max-width: 370px;
  margin-inline: auto;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(205, 169, 120, 0.55);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--navy), var(--deep));
  box-shadow: 0 24px 55px rgba(7, 30, 52, 0.22);
}

.edition-video-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.edition-video-player video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #041525;
  border-radius: 16px;
}

/* Sobre COEPROTEC (Imagen original de fondo sutil + reading-card) */
.intro-section {
  position: relative;
  overflow: hidden;
}

.intro-section:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(32vw, 380px);
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper), rgba(245, 243, 238, .25)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=850&q=80") center / cover;
  opacity: .09;
}

.intro-section .container {
  position: relative;
  z-index: 1;
}

.intro-grid,
.collaboration-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.reading-card {
  position: relative;
  background: rgba(255, 255, 255, .97);
  padding: clamp(28px, 3vw, 43px);
  border: 1px solid rgba(16, 48, 69, .13);
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 24px 65px rgba(9, 31, 50, .12);
  max-width: 590px;
}

.reading-card-label {
  display: block;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  color: #976732;
  margin-bottom: 19px;
}

.reading-card .reading-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
  color: #102a40;
  font-weight: 600;
}

.reading-card .reading-lead strong {
  color: #0c304b;
  font-weight: 800;
}

.reading-card p {
  font-size: 16px;
  line-height: 1.85;
  color: #263d50;
  margin: 0 0 18px;
}

.reading-card p:last-child {
  margin-bottom: 0;
}

.reading-divider {
  height: 1px;
  background: linear-gradient(90deg, #cda978, #dce1e5);
  margin: 22px 0;
}

/* Qué hacemos: Tarjetas mejoradas con fotografías originales en :before */
.services-section {
  background: #edf0ee;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.section-head > p {
  max-width: 355px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.section-head .section-support {
  background: #fff;
  border-left: 3px solid #cda978;
  border-radius: 0 14px 14px 0;
  padding: 17px 20px;
  color: #22394b;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: 0 12px 32px #0a233110;
  max-width: 365px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  padding: 28px 24px 31px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border: 1px solid #d5dede;
  border-top: 3px solid var(--gold);
  box-shadow: 0 14px 34px rgba(9, 30, 52, 0.07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px #091e3422;
  z-index: 2;
}

.service-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 118px;
  z-index: -1;
  opacity: .18;
  background-position: center;
  background-size: cover;
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.service-card:nth-child(1):before {
  background-image: url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=750&q=75");
}

.service-card:nth-child(2):before {
  background-image: url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=750&q=75");
}

.service-card:nth-child(3):before {
  background-image: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=750&q=75");
}

.service-card:nth-child(4):before {
  background-image: url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=750&q=75");
}

.service-mark {
  font: 700 38px var(--display);
  color: #4e9b97;
}

.service-card h3 {
  position: relative;
  font: 700 30px/1.03 var(--display);
  text-transform: uppercase;
  margin: auto 0 15px;
  max-width: 225px;
  color: var(--ink);
}

.service-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #33495b;
  margin: 0;
}

/* Agenda Preview en Portada */
.agenda-preview {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 45%, rgba(255, 255, 255, .72) 100%),
    url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1500&q=82") center / cover;
}

.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.agenda-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 480px;
  margin: 26px 0 28px;
}

.agenda-intro.reading-summary {
  background: rgba(255, 255, 255, .94);
  border-left: 3px solid #cda978;
  border-radius: 0 14px 14px 0;
  color: #17334b;
  padding: 17px 20px;
  font-size: 15px;
  line-height: 1.8;
  box-shadow: 0 12px 32px #0a23310a;
}

.agenda-panel {
  background:
    linear-gradient(rgba(6, 24, 43, .89), rgba(6, 24, 43, .94)),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1000&q=80") center / cover;
  color: #fff;
  min-height: 450px;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(205, 169, 120, 0.35);
  box-shadow: 0 24px 55px rgba(7, 30, 52, 0.22);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.agenda-panel:before {
  content: '';
  position: absolute;
  right: -70px;
  top: 28px;
  border: 1px solid #d7b47b37;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
}

.agenda-panel-label,
.agenda-panel-foot {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 700;
  color: #d4b589;
}

.agenda-line {
  height: 1px;
  background: #ffffff43;
  margin-top: 22px;
}

.agenda-empty {
  position: relative;
  margin: auto 0;
  padding-block: 18px;
}

.agenda-empty-icon {
  font: 500 96px/.8 var(--display);
  color: #72b3a8;
}

.agenda-empty h3 {
  font: 700 clamp(34px, 3.8vw, 46px)/1.03 var(--display);
  text-transform: uppercase;
  margin: 14px 0 12px;
}

.agenda-empty p {
  font-size: 14px;
  line-height: 1.75;
  color: #c5d6de;
  max-width: 420px;
  margin: 0 0 16px;
}

.agenda-next-date {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #d4b589;
  margin-top: 4px;
}

.agenda-panel-foot {
  border-top: 1px solid #ffffff43;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Colaboración y Cierre Dorado Original */
.collaboration-section {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(245, 243, 238, .98) 0%, rgba(245, 243, 238, .96) 52%, rgba(245, 243, 238, .76) 100%),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.collaboration-grid {
  align-items: end;
}

.collaboration-grid p:not(.section-index) {
  font-size: 16px;
  line-height: 1.8;
  color: #283f50;
  margin: 0 0 17px;
}

.collaboration-grid .text-link {
  margin-top: 12px;
}

.closing-section {
  background:
    linear-gradient(90deg, rgba(205, 169, 120, .95), rgba(205, 169, 120, .88)),
    url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1500&q=80") center / cover;
  color: #08263d;
  padding: 78px 0;
}

.closing-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 45px;
}

.closing-section .section-index {
  color: #654b2c;
}

.closing-section h2 {
  font: 700 clamp(55px, 6.2vw, 84px)/.95 var(--display);
  text-transform: uppercase;
  margin: 14px 0;
}

.closing-section h2 em {
  color: #fff;
}

.closing-section p:not(.section-index) {
  font-size: 15px;
  line-height: 1.75;
  max-width: 530px;
}

.closing-section .button {
  margin-top: 14px;
}

/* Footer Original */
.footer {
  background: var(--deep);
  color: #b8c8d0;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-brand {
  font: 700 34px var(--display);
  color: #fff;
  display: inline-block;
}

.footer-brand small {
  display: block;
  color: var(--gold);
  font: 700 10px var(--body);
  letter-spacing: .14em;
  margin-top: 4px;
}

.footer p {
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 330px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 12.5px;
}

.footer-grid > div:not(:first-child) > span {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #ffffff26;
  margin-top: 45px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}

/* Agenda (inscripciones.html) */
.agenda-hero {
  background:
    linear-gradient(90deg, rgba(4, 20, 36, .96), rgba(9, 31, 52, .68)),
    url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1800&q=85") center / cover;
  color: #fff;
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
}

.agenda-hero:after {
  content: '↗';
  position: absolute;
  right: 5%;
  top: -100px;
  color: #ffffff0c;
  font: 600 500px var(--display);
  pointer-events: none;
}

.agenda-hero .container {
  position: relative;
  z-index: 1;
}

.agenda-hero h1 {
  font: 700 clamp(76px, 10vw, 132px)/.88 var(--display);
  text-transform: uppercase;
  margin: 30px 0 20px;
}

.agenda-hero p:last-child {
  font-size: 16px;
  line-height: 1.8;
  color: #c9d7dd;
  max-width: 575px;
}

.events-section {
  background: #fff;
}

.gold-dot {
  color: var(--gold);
}

.events-list {
  border-top: none;
  display: grid;
  gap: 24px;
}

.events-empty {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 70px 35px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(241, 244, 242, .98), rgba(241, 244, 242, .84)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1200&q=80") center / cover;
  border: 1px solid var(--line);
}

.events-empty-symbol {
  font: 500 155px/.85 var(--display);
  color: #4b9a96;
}

.empty-kicker {
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 700;
  color: #9c754a;
}

.events-empty h3 {
  font: 700 clamp(37px, 4vw, 55px)/1 var(--display);
  text-transform: uppercase;
  margin: 15px 0;
}

.events-empty p {
  max-width: 575px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 22px;
}

.event-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding: 32px;
  background: #fff;
  border: 1px solid #d9e0e5;
  border-top: 4px solid #cda978;
  border-radius: 20px;
  box-shadow: 0 15px 38px #092d4014;
  transition: transform .25s ease, box-shadow .25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px #092d4024;
}

.event-date {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  border-radius: 16px;
  align-self: start;
}

.event-date strong {
  font: 700 68px/.9 var(--display);
}

.event-date span {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .16em;
}

.event-content h3 {
  font: 700 clamp(30px, 3.4vw, 42px)/1.08 var(--display);
  text-transform: uppercase;
  max-width: 730px;
  margin: 8px 0;
}

.event-content > p:not(.event-meta) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 680px;
}

.event-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #927045;
  text-transform: uppercase;
}

.event-type {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f0e2c9;
  color: #554021;
  border: 1px solid #d3b17b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.event-type-light {
  background: #d7b77922;
  color: #f2d7a1;
  border-color: #e9c48770;
}

.event-organizer {
  font-size: 12.5px !important;
  font-weight: 700;
  color: #344b5d !important;
}

.event-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.event-content .text-link {
  background: #0b2944;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  margin-top: 12px;
  margin-right: 10px;
  box-shadow: 0 8px 20px rgba(7, 30, 52, 0.14);
}

.event-content .text-link.event-speakers-link {
  background: #f5efe4;
  color: #071e34;
  border: 1px solid #d3b17b;
  box-shadow: none;
}

.event-content .text-link:hover {
  background: #234c6a;
  color: #fff;
  transform: translateY(-2px);
}

.event-content .text-link.event-speakers-link:hover {
  background: var(--gold);
  color: #071e34;
}

.event-status {
  display: inline-block;
  border: 1px solid #bbc7c9;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  color: #526575;
}

.agenda-explain {
  background: #e8ebe8;
}

.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.explain-steps {
  border-top: 1px solid #b8c3c4;
}

.explain-steps > div {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #b8c3c4;
  padding: 21px 0;
}

.explain-steps span {
  font: 700 30px var(--display);
  color: #4c9994;
}

.explain-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.explain-steps strong {
  display: block;
  color: var(--ink);
  font: 700 23px var(--display);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Trayectoria (Heritage Section con fotografía ilustrativa original, SIN flyer) */
.heritage-section {
  background: #091e33;
  color: #fff;
}

.heritage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.heritage-copy .section-title {
  color: #fff;
  margin-bottom: 24px;
}

.heritage-copy > p:not(.section-index) {
  color: #cbd7e2;
  font-size: 15px;
  line-height: 1.85;
}

.heritage-copy .heritage-note {
  color: #adbac7 !important;
  font-size: 12px !important;
}

.heritage-copy .button {
  margin: 15px 0 16px;
}

.heritage-photo {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  border-radius: 20px;
  background:
    linear-gradient(0deg, #05182bd9, #05182b22),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1100&q=85") center / cover;
  border: 1px solid #d4af6755;
  color: inherit;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.heritage-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px #0005;
}

.heritage-photo span {
  color: #e9c88c;
  letter-spacing: .15em;
  font-weight: 800;
  font-size: 12px;
}

/* Contacto y Ponentes (Fotografías originales de main) */
.contact-hero,
.speakers-hero {
  padding: 95px 0;
  background:
    linear-gradient(90deg, rgba(4, 20, 36, .96), rgba(7, 26, 48, .72)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=85") center / cover;
  color: #fff;
}

.speakers-hero {
  background-image:
    linear-gradient(90deg, rgba(4, 20, 36, .96), rgba(7, 26, 48, .72)),
    url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1800&q=85");
}

.contact-hero h1,
.speakers-hero h1 {
  font: 700 clamp(65px, 9vw, 112px)/.93 var(--display);
  text-transform: uppercase;
  margin: 20px 0;
}

.contact-hero p:last-child,
.speakers-hero p:last-child {
  max-width: 680px;
  line-height: 1.8;
  color: #e3e9ef;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.contact-info-panel,
.contact-message-panel,
.speaker-showcase {
  background: #fff;
  border: 1px solid #dce1e3;
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 22px 50px #0d23310c;
}

.contact-info-panel h2,
.contact-message-panel h2 {
  font: 700 45px/1 var(--display);
  text-transform: uppercase;
  margin: 14px 0 22px;
}

.contact-info-panel p,
.contact-message-panel p {
  line-height: 1.8;
  color: #526575;
}

.contact-method-new {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid #dce1e3;
}

.contact-method-new > span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #081f35;
  color: var(--gold);
  font-size: 22px;
  flex-shrink: 0;
}

.contact-method-new small {
  display: block;
  color: #7a8994;
  text-transform:uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  margin-bottom: 5px;
}

.contact-method-new strong {
  color: #10283a;
  overflow-wrap: anywhere;
}

.contact-message-panel label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin: 16px 0;
  color: #22384a;
}

.contact-message-panel input,
.contact-message-panel textarea,
.contact-message-panel select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c5ced2;
  padding: 14px;
  font: inherit;
  background: #f9faf9;
  border-radius: 10px;
  color: #10283a;
}

.contact-message-panel textarea {
  min-height: 135px;
  resize: vertical;
}

.contact-message-panel .button {
  border: 0;
  cursor: pointer;
}

.contact-note {
  font-size: 12px;
}

.speaker-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.speaker-image {
  min-height: 330px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(6, 27, 46, .16), rgba(6, 27, 46, .33)),
    url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=850&q=80") center / cover;
}

.speaker-showcase h2 {
  font: 700 55px/1 var(--display);
  text-transform: uppercase;
  margin: 18px 0;
}

.speaker-showcase p {
  line-height: 1.8;
  color: #526575;
}

.speaker-showcase .button {
  margin-top: 14px;
}

.speaker-profile-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 38px;
}

.speaker-profile-card {
  background: #fff;
  border: 1px solid #dce1e3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(7, 30, 52, 0.06);
  transition: transform .24s ease, box-shadow .24s ease;
}

.speaker-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px #102b3b20;
}

.speaker-profile-card .photo {
  height: 185px;
  background-size: cover;
  background-position: center;
}

.speaker-profile-card:nth-child(1) .photo {
  background-image: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=650&q=75");
}

.speaker-profile-card:nth-child(2) .photo {
  background-image: url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=650&q=75");
}

.speaker-profile-card:nth-child(3) .photo {
  background-image: url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=650&q=75");
}

.speaker-profile-card div:last-child {
  padding: 24px;
}

.speaker-profile-card h3 {
  font: 700 28px/1.1 var(--display);
  text-transform: uppercase;
  margin: 10px 0;
}

.speaker-profile-card p {
  line-height: 1.65;
  color: #526575;
  font-size: 13.5px;
}

/* Archivo Histórico COEPROTEC 2025: 6 Ponentes con Monogramas y 3 Videos de YouTube */
.historic-hero {
  background:
    linear-gradient(90deg, #061b30ee, #092a44b5),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1700&q=85") center / cover;
}

.historic-facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.historic-facts span {
  border: 1px solid #d5ac7290;
  background: rgba(4, 21, 37, 0.45);
  border-radius: 999px;
  color: #f4dfc0;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
}

.historic-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.historic-intro .reading-card {
  padding: 34px;
  background: #fff;
  border-left: 4px solid #cda978;
}

.historic-intro .reading-card p {
  color: #233b4e;
  line-height: 1.75;
}

.historic-intro .reading-card .reading-lead {
  font-weight: 700;
}

.archive-source-note {
  font-size: .94rem;
  line-height: 1.65;
  color: #4a5b6e;
  margin: 18px 0 0;
  max-width: 760px;
}

.historic-speakers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 35px;
}

.historic-speaker {
  background: #fff;
  border: 1px solid #d9dfdf;
  border-top: 3px solid #cda978;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px #061b3010;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease;
}

.historic-speaker:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(7, 30, 52, 0.13);
}

.historic-speaker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.speaker-monogram {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--deep));
  border: 1px solid rgba(205, 169, 120, 0.55);
  color: var(--gold);
  font: 700 22px/1 var(--display);
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(7, 30, 52, 0.16);
}

.historic-speaker .event-type {
  margin-bottom: 0;
}

.historic-speaker.featured {
  grid-column: 1 / -1;
  padding: 35px;
  background: #102b46;
  color: #fff;
  border-color: #cda978;
}

.historic-speaker h3 {
  font: 700 clamp(28px, 2.8vw, 36px)/1.08 var(--display);
  text-transform: uppercase;
  margin: 8px 0 10px;
  color: #102c42;
}

.historic-speaker.featured h3 {
  color: #fff;
  font-size: clamp(40px, 4vw, 56px);
}

.historic-speaker p {
  font-size: 14px;
  line-height: 1.75;
  color: #526575;
  margin: 0;
}

.historic-speaker.featured p {
  color: #d1dce8;
  max-width: 790px;
}

/* Videoteca 2025: 3 Videos Oficiales de YouTube con Miniaturas Reales y Botón Moderno */
.historic-media {
  background: #e9eeed;
}

.archive-video-intro {
  max-width: 760px;
  color: #3b5061;
  font-size: 15px;
  line-height: 1.75;
  margin: 22px 0 30px;
}

.archive-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.archive-video {
  background: #fff;
  border: 1px solid #d5dfdf;
  border-top: 3px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 14px 34px #102f4013;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease;
}

.archive-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(7, 30, 52, 0.16);
}

.archive-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #071e34;
  overflow: hidden;
}

.archive-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #071e34;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
  transition: transform .35s ease, opacity .25s ease;
}

.yt-facade:hover img {
  transform: scale(1.04);
  opacity: .96;
}

.yt-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 21, 37, 0.15) 0%, rgba(4, 21, 37, 0.68) 100%);
  pointer-events: none;
}

.yt-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(7, 30, 52, 0.9);
  border: 1px solid var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

.yt-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #071e34;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.yt-facade:hover .yt-play-btn {
  background: var(--gold);
  color: #071e34;
  transform: translate(-50%, -50%) scale(1.05);
}

.yt-facade:hover .yt-play-icon {
  background: #071e34;
  color: var(--gold);
}

.archive-video-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-video-content h3 {
  font: 700 28px/1.07 var(--display);
  text-transform: uppercase;
  color: #102c42;
  margin: 10px 0;
}

.archive-video-content p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #526575;
  margin: 0 0 16px;
}

.archive-video-content .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.historic-media-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  margin-top: 32px;
}

.archive-photo-placeholder {
  margin-top: 45px;
}

.historic-media-cover {
  min-height: 360px;
  padding: 30px;
  border-radius: 18px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(0deg, #061b30e8, #061b3020),
    url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1100&q=82") center / cover;
}

.historic-media-cover span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #e7cb92;
}

.historic-media-message {
  background: #fff;
  padding: 35px;
  border-radius: 18px;
  border: 1px solid #d5dfdf;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.historic-media-message h3 {
  font: 700 36px/1 var(--display);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.historic-media-message p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.historic-media-message .button {
  align-self: flex-start;
  margin-top: 14px;
}

/* Evento Aliado UPC en ponentes.html */
.ally-speakers {
  background: #edf0ee;
}

.ally-speakers .historic-speaker.featured {
  margin-bottom: 24px;
}

.ally-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ally-table {
  background: #fff;
  padding: 30px;
  border: 1px solid #d7dfdf;
  border-top: 4px solid #cda978;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(7, 30, 52, 0.06);
}

.ally-table h3 {
  font: 700 29px/1.05 var(--display);
  text-transform: uppercase;
  color: #102c42;
  margin: 0;
}

.ally-table p {
  font-size: 13px;
  color: #87663e;
  font-weight: 700;
}

.ally-table ul {
  padding-left: 20px;
}

.ally-table li {
  font-size: 14px;
  line-height: 1.65;
  color: #314658;
  margin: 15px 0;
}

.ally-source {
  font-size: 12px;
  line-height: 1.75;
  color: #5c6c78;
  max-width: 850px;
  margin: 24px 0;
}

/* Prerregistro COEPROTEC integrado en estética original */
.prereg-section {
  background: #eceae3;
  border-top: 1px solid var(--line);
}

.prereg-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 52px;
  align-items: start;
}

.prereg-copy p:not(.section-index) {
  font-size: 15.5px;
  line-height: 1.8;
  color: #263d50;
  margin: 18px 0;
}

.prereg-benefits {
  padding-left: 20px;
  margin: 20px 0;
  color: #22384a;
  font-size: 14.5px;
  line-height: 1.75;
}

.prereg-benefits li {
  margin-bottom: 10px;
}

.prereg-legal-meta {
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  color: #395062 !important;
}

.prereg-card {
  padding: 36px;
  background: #fff;
  border: 1px solid #d5dede;
  border-top: 4px solid var(--gold);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(7, 30, 52, 0.1);
}

.prereg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f3e8d4;
  border: 1px solid #d5b47f;
  color: #59411f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.prereg-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e9b97;
}

.prereg-card h3 {
  font: 700 38px/1.02 var(--display);
  text-transform: uppercase;
  color: var(--ink);
  margin: 14px 0 8px;
}

.prereg-card > p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
}

.prereg-card fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.prereg-card fieldset:disabled {
  opacity: .7;
}

.prereg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.prereg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prereg-field.full {
  grid-column: 1 / -1;
}

.prereg-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1c3447;
}

.prereg-field label span {
  color: #9b6c35;
}

.prereg-fields input,
.prereg-fields select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #bdcbd4;
  border-radius: 10px;
  background: #fbfbfa;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.prereg-fields input:focus,
.prereg-fields select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(92, 170, 160, 0.25);
  background: #fff;
}

.prereg-consents {
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.prereg-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #2c4355;
  cursor: pointer;
}

.prereg-check input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.prereg-check a {
  color: #0b2944;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prereg-turnstile-wrap {
  margin: 16px 0;
  min-height: 65px;
}

.prereg-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.prereg-status {
  font-size: 13px;
  line-height: 1.6;
  color: #4d6170;
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 12px;
  background: #f4f6f7;
  border-left: 3px solid #9aafba;
}

.prereg-status.is-error {
  background: #fdf2f2;
  border-left-color: #b91c1c;
  color: #7f1d1d;
  font-weight: 600;
}

.prereg-status.is-success {
  background: #eef8f6;
  border-left-color: #2c7a7b;
  color: #134e4a;
  font-weight: 600;
}

.prereg-status.is-loading {
  background: #f6f1e7;
  border-left-color: var(--gold);
  color: #554021;
}

/* Página de Privacidad */
.privacy-doc-card {
  max-width: 920px;
  margin-inline: auto;
}

.privacy-list {
  padding-left: 20px;
  color: #263d50;
  line-height: 1.8;
}

.privacy-list li {
  margin-bottom: 10px;
}

.privacy-mail-box {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f3e8d4;
  border: 1px solid var(--gold);
  font-weight: 700;
}

/* Iconos SVG y Animaciones Suaves al Desplazar */
.link-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  transition: transform .2s ease;
}

a:hover .link-icon,
button:hover .link-icon {
  transform: translate(2px, -2px);
}

a:hover .link-icon-down {
  transform: translateY(3px);
}

.nav-cta .link-icon {
  width: 18px;
  height: 18px;
}

.motion-ready {
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--motion-delay, 0ms);
  opacity: .01;
  transform: translateY(22px);
}

.motion-ready.motion-in {
  opacity: 1;
  transform: none;
}

/* Ajustes Responsive para Escritorio, Tablet y Móvil (1440px, 1000px, 760px, 390px) */
@media (min-width: 1000px) {
  .intro-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: center;
  }
  .intro-grid .section-title {
    font-size: clamp(51px, 5vw, 78px);
  }
  .intro-grid .reading-card {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: clamp(30px, 3vw, 44px) clamp(34px, 4vw, 58px);
  }
}

@media (max-width: 1100px) {
  .brand {
    min-width: unset;
    font-size: 24px;
  }
  .brand-symbol {
    width: 76px;
    height: 53px;
    flex-basis: 76px;
  }
  .brand .brand-symbol img {
    width: 87px;
    height: 87px;
    left: -5px;
    top: -9px;
  }
  .nav-shell {
    min-height: 82px;
    gap: 12px;
  }
  .main-nav {
    gap: 11px;
    font-size: 12px;
  }
  .nav-cta {
    padding: 11px 16px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }
  .historic-speakers {
    grid-template-columns: repeat(2, 1fr);
  }
  .archive-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .prereg-grid,
  .edition-video-layout {
    grid-template-columns: 1fr;
  }
  .edition-video-player {
    max-width: 340px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, 1200px);
  }
  .announcement .container span:last-child {
    display: none;
  }
  .nav-shell {
    min-height: 76px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-symbol {
    width: 70px;
    height: 49px;
    flex-basis: 70px;
  }
  .brand .brand-symbol img {
    width: 80px;
    height: 80px;
    left: -5px;
    top: -8px;
  }
  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid #d5dede;
    border-radius: 999px;
    background: #fff;
    margin-left: auto;
  }
  .menu-button span {
    width: 20px;
    height: 2px;
    background: var(--navy);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px 24px;
    box-shadow: 0 18px 32px #06182530;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav > a:not(.nav-cta):not(.nav-prereg-link) {
    padding: 12px 8px;
    border-bottom: 1px solid #eef2f3;
  }
  .main-nav .nav-prereg-link {
    margin-top: 8px;
    justify-content: center;
    padding: 12px 16px;
  }
  .main-nav .nav-cta {
    margin-top: 8px;
    padding: 14px;
  }
  .hero {
    background-position: 60% center;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: unset;
    padding-block: 54px 44px;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(54px, 12.5vw, 84px);
    margin: 20px 0 18px;
  }
  .hero-bottom span:last-child {
    display: none;
  }
  .section {
    padding: 72px 0;
  }
  .intro-section:after {
    display: none;
  }
  .intro-grid,
  .agenda-grid,
  .collaboration-grid,
  .explain-grid,
  .heritage-layout,
  .contact-page-grid,
  .speaker-showcase,
  .historic-intro,
  .historic-media-grid,
  .ally-tables {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-head {
    display: block;
  }
  .section-head > p,
  .section-head .section-support {
    margin-top: 17px;
    max-width: none;
  }
  .reading-card {
    max-width: none;
  }
  .speaker-profile-cards,
  .historic-speakers,
  .archive-video-grid {
    grid-template-columns: 1fr;
  }
  .historic-speaker.featured {
    grid-column: auto;
  }
  .agenda-panel {
    min-height: 380px;
  }
  .heritage-photo,
  .historic-media-cover {
    min-height: 270px;
  }
  .event-card {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 16px;
  }
  .event-date {
    min-height: 82px;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    padding-inline: 20px;
  }
  .event-date strong {
    font-size: 44px;
  }
  .contact-hero,
  .speakers-hero,
  .agenda-hero {
    padding: 72px 0;
  }
  .agenda-hero h1,
  .contact-hero h1,
  .speakers-hero h1 {
    font-size: clamp(56px, 12.5vw, 88px);
  }
  .contact-info-panel,
  .contact-message-panel,
  .speaker-showcase,
  .prereg-card {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 21px;
    min-width: 0;
  }
  .brand small {
    font-size: 8px;
  }
  .hero h1 {
    font-size: clamp(48px, 13.5vw, 66px);
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-intro {
    font-size: 14.5px;
  }
  .hero-event-card {
    padding: 22px 18px;
  }
  .hero-event-actions .button {
    width: 100%;
  }
  .section-title {
    font-size: clamp(42px, 11.5vw, 52px);
  }
  .service-grid,
  .edition-video-highlights,
  .prereg-fields {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 240px;
  }
  .service-card h3 {
    margin-top: 27px;
  }
  .agenda-panel {
    padding: 24px 20px;
  }
  .closing-section h2 {
    font-size: clamp(46px, 12vw, 58px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .events-empty {
    display: block;
    padding: 35px 24px;
  }
  .events-empty-symbol {
    font-size: 80px;
    margin-bottom: 20px;
  }
  .prereg-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .prereg-card-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .motion-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card:hover,
  .speaker-profile-card:hover,
  .heritage-photo:hover,
  .event-card:hover,
  .historic-speaker:hover,
  .archive-video:hover,
  .button:hover,
  .nav-cta:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  :root {
    scrollbar-color: auto;
  }
}

/* Restauración del arte de flechas original en el hero; sin tarjeta de evento */
.hero-art{position:relative;width:330px;height:370px;border:1px solid #d9be8e48;display:grid;place-items:center;overflow:hidden;background:#ffffff08}.hero-art:before{content:'';position:absolute;inset:26px;border:1px solid #d9be8e2d}.orbit{position:absolute;border:1px solid #d9be8e75;border-radius:50%;width:270px;height:270px}.orbit-one{transform:translate(50px,50px)}.orbit-two{transform:translate(-72px,-68px);width:330px;height:330px;border-color:#6bada088}.art-arrow{position:relative;font:500 270px/.8 var(--display);color:#deb981;transform:rotate(-7deg);text-shadow:20px 19px 0 #5caaa06b}.hero-art span{position:absolute;bottom:25px;left:27px;color:#c2d1d8;font-size:10px;line-height:1.65;font-weight:700;letter-spacing:.16em}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 260px; }
  .hero-art { width: 260px; height: 320px; }
  .art-arrow { font-size: 230px; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* Registro integrado con la misma jerarquía visual de las demás secciones */
.prereg-card { border-top: 1px solid var(--line, #d9e0e2); border-radius: 16px; box-shadow: 0 12px 32px rgba(7,30,52,.065); }
.prereg-badge { background: transparent; border: 0; border-radius: 0; padding: 0; color: var(--navy); }
.prereg-legal-meta { background: transparent; border: 0; box-shadow: none; padding: 0; }
.prereg-legal-meta::before { display: none; }
.prereg-legal-meta .text-link { color: var(--navy); }
.privacy-dialog { width: min(720px, calc(100% - 24px)); max-height: min(85vh, 900px); border: 1px solid #d4dee2; border-radius: 18px; padding: 0; color: #071e34; box-shadow: 0 30px 85px rgba(3,15,27,.35); }
.privacy-dialog::backdrop { background: rgba(2,13,25,.72); }
.privacy-dialog-inner { display: flex; flex-direction: column; max-height: 85vh; }
.privacy-dialog-header,.privacy-dialog-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; background: white; }
.privacy-dialog-header { border-bottom: 1px solid #dce4e8; }
.privacy-dialog-header h2 { margin: 0; font: 700 clamp(24px,3vw,34px)/1.1 var(--display); text-transform: uppercase; }
.privacy-dialog-close { border: 0; background: #eff3f4; border-radius: 50%; font-size: 26px; width: 40px; height: 40px; cursor: pointer; }
.privacy-dialog-body { overflow-y: auto; padding: 8px 24px 24px; line-height: 1.65; }
.privacy-dialog-body h2 { font-size: 19px; margin: 24px 0 10px; }
.privacy-dialog-body p,.privacy-dialog-body li { font-size: 14px; }
.privacy-dialog-body .privacy-warning { padding: 13px; background: #fff5dd; border-left: 3px solid #cda978; }
.privacy-dialog-footer { border-top: 1px solid #dce4e8; justify-content: flex-end; }
.privacy-dialog-footer .button { cursor: pointer; }


/* El enlace de registro usa exactamente el estilo de los demás enlaces del menú. */
.main-nav a[href$="#prerregistro"]:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.main-nav a[href$="#prerregistro"]:not(.nav-cta):hover { color: #956d42; }
.video-unmute-button { display: inline-flex; margin-top: 15px; cursor: pointer; }

/* Footer institucional: composición del rediseño Gemini con la paleta original de COEPROTEC */
.footer { border-top: 3px solid var(--teal); padding-top: 72px; }
.footer-grid { grid-template-columns: minmax(280px, 1.7fr) minmax(160px, 1fr) minmax(180px, 1fr); gap: clamp(30px, 5vw, 76px); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; font-size: 30px; line-height: 1; margin-bottom: 16px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; flex: 0 0 50px; }
.footer-brand small { margin-top: 8px; }
.footer-grid > div:not(:first-child) > span { font-size: 11px; }
.footer-grid > div:not(:first-child) { gap: 14px; font-size: 13px; }
.footer a { color: #cbd8dd; transition: color .2s ease; }
.footer a:hover { color: var(--gold); }
.footer-bottom { color: #a9bdc8; }
@media (max-width: 850px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer { padding-top: 54px; } .footer-grid { grid-template-columns: 1fr; gap: 30px; } .footer-grid > div:first-child { grid-column: auto; } .footer-bottom { flex-direction: column; gap: 8px; } }

/* Footer definitivo: cuatro columnas equilibradas, redes integradas en una fila. */
.footer { padding-block: 64px 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(265px, 1.75fr) minmax(145px, 1fr) minmax(165px, 1fr) minmax(135px, .85fr);
  align-items: start;
  column-gap: clamp(24px, 3.5vw, 54px);
  row-gap: 30px;
}
.footer-grid > div:first-child { min-width: 0; }
.footer-grid > .official-socials {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  font-size: 13px;
}
.footer-grid > .official-socials > span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-grid > .official-socials a { width: auto; }
.footer-bottom { margin-top: 42px; }
@media (max-width: 1050px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > .official-socials { grid-column: auto; }
}
@media (max-width: 680px) {
  .footer { padding-block: 50px 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > .official-socials { grid-column: auto; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* Header: proporción y nitidez del isotipo de Gemini, manteniendo la paleta institucional. */
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 235px; font-size: 25px; line-height: 1; }
.brand-symbol { position: relative; display: grid; place-items: center; width: 55px; height: 55px; flex: 0 0 55px; overflow: visible; padding: 5px; border-radius: 13px; background: #f4f7f7; border: 1px solid #dce5e9; }
.brand .brand-symbol img, .brand-symbol img { position: static; display: block; width: 44px; height: 44px; max-width: 100%; object-fit: contain; clip-path: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand small { margin-top: 5px; color: #1b756f; font-size: 10px; letter-spacing: .12em; }
@media (max-width: 760px) {
  .brand { gap: 9px; min-width: 0; font-size: 23px; }
  .brand-symbol { width: 49px; height: 49px; flex-basis: 49px; padding: 4px; }
  .brand .brand-symbol img, .brand-symbol img { width: 40px; height: 40px; }
  .brand small { font-size: 8px; }
}
