*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #042643;
  --navy-dark: #0e2547;
  --blue:      #48a1d3;
  --cream:     #f4f2ee;
  --white:     #ffffff;
  --gray:      #606060;
  --border:    #d8d5d0;
}

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--cream); color: var(--navy-dark); overflow-x: hidden; }

/* ── CONTAINER (ancho único para todas las secciones) ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 7%;
  padding-right: 7%;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 35px 0;
  background: var(--navy);
  transition: padding .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1),
              background .35s ease;
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
}

/* Estado "scrolled" — nav compacto */
nav.is-scrolled {
  padding: 14px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  background: rgba(4, 38, 67, 0.96);
  backdrop-filter: blur(6px);
}

.nav-logo {
  display: flex; align-items: center; gap: 15px; justify-content: flex-start;
}
.nav-logo-abut,
.nav-logo-plus,
.nav-logo-inviu {
  width: auto;
  display: block;
  transition: height .35s cubic-bezier(.4,0,.2,1);
}
.nav-logo-abut  { height: 48px; }
.nav-logo-plus  { height: 29px; opacity: 0.95; }
.nav-logo-inviu { height: 37px; }

/* Logos achicados en scroll */
nav.is-scrolled .nav-logo { gap: 10px; }
nav.is-scrolled .nav-logo-abut  { height: 28px; }
nav.is-scrolled .nav-logo-plus  { height: 16px; }
nav.is-scrolled .nav-logo-inviu { height: 22px; }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  font-weight: 400; letter-spacing: 0.01em;
  opacity: 0.9; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 1px; transition: all .3s; }

/* ── HERO ── */
#inicio {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}
#inicio .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}

.hero-text h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(3.4rem, 5.8vw, 5rem);
  line-height: 1.1;
  color: var(--white);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.hero-text h1 .blue {
  font-size: 5.75rem;
  color: var(--blue);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.hero-divider {
  width: 85%;
  height: 2px;
  background: var(--cream);
  margin: 24px 0 28px;
}

.hero-desc {
  font-family: 'Roboto', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 100%;
  margin-bottom: 32px;
  font-weight: 300;
}
.hero-desc strong { font-weight: 600; color: var(--white); }

.hero-ctas { display: flex; gap: 12px; align-items: center; }

.btn-fill {
  background: var(--blue);
  color: var(--white);
  padding: 10px 50px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
  white-space: nowrap;
}
.btn-fill:hover { background: #5bb3e0; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 10px 50px; border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem; font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  cursor: pointer; transition: border-color .2s, transform .15s;
  display: inline-block; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-1px); }

/* Speaker card */
.speaker-card {
  background: transparent;
  border-radius: 10px; overflow: hidden;
  width: 330px; flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
}
.speaker-photo {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}
.speaker-info {
  padding: 14px 18px 16px;
  background: var(--white);
  text-align: center;
}
.speaker-info h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 2px;
}
.speaker-info p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem; color: var(--navy-dark); font-weight: 400;
}

/* ── EVENT BAR ── */
.event-wrap {
  background: transparent;
  position: relative;
  overflow: hidden;
  padding: 0;
  transform: translate(0px, -50%);
}
.event-wrap .container {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
/* Side decorative horizontal lines */
.event-wrap::before,
.event-wrap::after {
  content: '';
  position: absolute; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.18) 0,
    rgba(255,255,255,0.18) 6px,
    transparent 6px,
    transparent 12px
  );
  pointer-events: none;
}
.event-wrap::before {
  left: 0; right: calc(50% + 350px);
}
.event-wrap::after {
  left: calc(50% + 350px); right: 0;
}

.event-bar-inner {
  display: flex; align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: var(--white);
  position: relative; z-index: 2;
}

.event-item {
  flex: 1; padding: 18px 24px; text-align: center;
  background: var(--white);
  position: relative;
}
  .event-item:after {
    content: "";
    width: 1px;
    height: 70%;
    background-color: var(--navy-dark);
    position: absolute;
    right: 0;
    top: 15%;
  }
.event-item:last-child { border-right: none; }
.event-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem; color: var(--gray);
  letter-spacing: 0.01em; margin-bottom: 3px;
  font-weight: 400;
  text-transform: uppercase;
}
.event-value {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--navy-dark);
}

.event-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
  height: 50%;
  justify-content: center;
}
.event-line {
  width: 100%;
  height: 2px;
  background: var(--navy);
}

/* ── INSCRIPCIÓN ── */
#inscripcion {
  background: var(--cream);
  padding: 70px 0 80px;
}
#inscripcion .container {
  display: flex; flex-direction: column; align-items: center;
}

.section-title-light {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--navy-dark);
  margin-bottom: 32px;
  align-self: flex-start;
  max-width: 660px; width: 100%;
  letter-spacing: -0.01em;
}

.form-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 44px 32px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 6px 28px rgba(4, 38, 67, 0.1);
}

.form-field {
  margin-bottom: 14px;
}
.form-field input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem; color: var(--navy-dark);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(72,161,211,0.12);
}
.form-field input::placeholder { color: #b5b5b5; }

.btn-inscribir {
  width: 100%; padding: 14px;
  background: var(--navy-dark);
  color: var(--white); border: none;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem; font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer; margin-top: 10px;
  transition: background .2s, transform .15s;
}
.btn-inscribir:hover { background: var(--blue); transform: translateY(-1px); }

.form-note {
  text-align: center; margin-top: 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem; color: var(--gray);
  line-height: 1.5;
  font-weight: 400;
}

/* Honeypot — invisible para humanos, completable solo por bots */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Estado de error en campos */
.form-field--error input {
  border-color: #d9534f;
  background: #fff7f7;
}
.form-field-error {
  margin: 4px 4px 0;
  font-size: 0.72rem;
  color: #d9534f;
  font-family: 'Roboto', sans-serif;
}

/* Botón disabled durante envío */
.btn-inscribir:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── MODAL feedback ──────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal[aria-hidden="false"] {
  display: flex;
  animation: modalFadeIn .2s ease-out;
}
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(4, 38, 67, 0.65);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 44px 36px 36px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
  animation: modalSlideIn .25s ease-out;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--gray);
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.modal-close:hover {
  background: var(--cream);
  color: var(--navy-dark);
}
.modal-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  position: relative;
}
.modal-icon::before {
  content: '';
  display: block;
}
.modal--success .modal-icon {
  background: #e6f7ed;
  color: #1b7a3a;
}
.modal--success .modal-icon::before {
  width: 22px; height: 12px;
  border-left: 3px solid #1b7a3a;
  border-bottom: 3px solid #1b7a3a;
  transform: rotate(-45deg) translate(2px, -2px);
}
.modal--error .modal-icon {
  background: #fdecec;
  color: #d9534f;
}
.modal--error .modal-icon::before {
  width: 22px; height: 22px;
  background:
    linear-gradient(45deg, transparent 45%, #d9534f 45%, #d9534f 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #d9534f 45%, #d9534f 55%, transparent 55%);
}
.modal--info .modal-icon {
  background: #e8f4fb;
  color: var(--blue);
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  font-weight: 700;
}
.modal--info .modal-icon::before {
  content: 'i';
  display: block;
  font: inherit;
}
.modal-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.modal-message {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 480px) {
  .modal-card { padding: 36px 24px 28px; }
  .modal-title { font-size: 1.1rem; }
}

/* ── AGENDA ── */
#agenda {
  background: var(--navy);
  padding: 70px 0 80px;
}

.agenda-title {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.agenda-list { }

.agenda-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 28px;
}
.agenda-row:last-child { border-bottom: none; }

.agenda-time {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.01em;
}
.agenda-body {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
}
.agenda-body em {
  font-style: italic; font-weight: 400;
  color: var(--blue);
  font-size: 1.35rem;
  margin-left: 2px;
}

/* ── FOOTER BANNER ── */
.footer-strip {
  background: var(--blue);
  padding: 16px 0; text-align: center;
}
.footer-strip p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--white); letter-spacing: 0.03em;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0 20px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 14px;
}
.footer-logo .nav-logo-abut { height: 36px; }
.footer-logo .nav-logo-plus { height: 20px; }
.footer-logo .nav-logo-inviu { height: 28px; }

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: 'Roboto', sans-serif;
  color: var(--white); font-size: 0.9rem;
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-legal {
  font-family: 'Roboto', sans-serif; font-weight: 300;
  font-size: 0.6rem; color: var(--white);
  line-height: 120%; 
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  #inicio {
    padding: 100px 0 70px;
  }
  #inicio .container {
    grid-template-columns: 1fr;
    text-align: left; gap: 48px;
  }
  .hero-card-wrap { display: flex; justify-content: center; }
  .speaker-card { width: 200px; }
}

@media (max-width: 600px) {
  .container { padding-left: 5%; padding-right: 5%; }

  .nav-logo-abut { height: 24px; width: auto; display: block; }
  .nav-logo-plus { height: 14px; width: auto; display: block; opacity: 0.95; }
  .nav-logo-inviu { height: 18px; width: auto; display: block; }

  .footer-logo .nav-logo-abut { height: 18px; }
  .footer-logo .nav-logo-plus { height: 10px; }
  .footer-logo .nav-logo-inviu { height: 14px; }

  .btn-ghost, .btn-fill{padding: 10px 35px;}

  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 54px 0 0 0;
    background: var(--navy);
    align-items: center; justify-content: center;
    gap: 36px; z-index: 99;
  }
  .nav-links.open a { font-size: 1.05rem; }
  .nav-toggle { display: flex; }

  #inicio { padding-top: 90px; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-text h1 .blue{ font-size: 2.4rem; }

  .event-wrap { padding: 20px 0; transform: translate(0px, -25%);}
  .event-bar-inner { flex-direction: column; }
  .event-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 20px; }
    .event-item:after { display: none; }
  .event-item:last-child { border-bottom: none; }

  #inscripcion { padding: 60px 0; padding-top: 0;}
  .section-title-light { font-size: 1.6rem; }
  .form-card { padding: 32px 22px 28px; }

  #agenda { padding: 60px 0; }
  .agenda-row { grid-template-columns: 90px 1fr; gap: 16px; }

  footer { padding: 28px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
}

/* ── SCROLL REVEAL ─────────────────────────────────────── */
/* Estado inicial: invisible + transformado (default fade-up).
   Cuando entra al viewport el JS le agrega .is-visible y se anima.
   Respeta prefers-reduced-motion. */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1),
              transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}

/* Variantes de entrada (sobreescriben el default fade-up) */
[data-reveal="fade-down"]  { transform: translateY(-28px); }
[data-reveal="fade-left"]  { transform: translateX(36px); }
[data-reveal="fade-right"] { transform: translateX(-36px); }
[data-reveal="zoom-in"]    { transform: scale(0.94); }
[data-reveal="fade"]       { transform: none; }

/* Estado visible — siempre gana porque está después */
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
