/* ============================================================
   FUENTES LOCALES (SIL Open Font License)
   ============================================================ */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/raleway.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-700.woff2") format("woff2");
}

/* ============================================================
   TOKENS — paleta de entornos.net
   ============================================================ */
:root {
  --naranja-1:  #F98012;
  --naranja-2:  #FFA600;
  --naranja-3:  #F9BE49;
  --teal:       #1D5D69;
  --teal-claro: #B2D3CE;
  --rojo:       #F73C33;
  --gris:       #4C4C4C;
  --hero-bg:    #F7A41A;

  --bg:       #FFFFFF;
  --fg:       #1D5D69;
  --muted:    #4C4C4C;
  --border:   #B2D3CE;
  --error:    #F73C33;
  --error-bg: #FDECEB;

  --font-display: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 2px 12px rgba(29,93,105,0.10);
  --shadow-lg: 0 8px 32px rgba(29,93,105,0.16);
  --maxw:      1200px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* MAIN — min-height 80vh */
.main { min-height: 80vh; }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: 64px 0; }
.section--teal    { background: var(--teal); color: #fff; }
.section--surface { background: var(--teal-claro); color: var(--teal); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--naranja-1);
  margin-bottom: 16px;
}
.section--teal .eyebrow    { color: #fff; }
.section--surface .eyebrow { color: var(--teal); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--teal);
}
.section--teal .section-title    { color: #fff; }
.section--surface .section-title { color: var(--teal); }
.section-title em { font-style: normal; color: inherit; }
.section--teal .section-title em { color: inherit; }

.section-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}
.section--teal .section-subtitle    { color: rgba(255,255,255,0.85); }
.section--surface .section-subtitle { color: var(--teal); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 52px;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--naranja-1); color: #fff; }
.btn--primary:focus-visible { outline: 3px solid var(--naranja-3); outline-offset: 3px; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--naranja-2); color: var(--naranja-2); }
.btn--ghost:focus-visible { outline: 3px solid var(--naranja-2); outline-offset: 3px; }

/* ============================================================
   HEADER INSTITUCIONAL
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--teal-claro);
  padding: 10px 0;
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo-link { flex-shrink: 0; }
.header__logo { height: 44px; width: auto; }
.header__nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.header__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  transition: color 0.15s;
}
.header__nav a:hover { color: var(--naranja-1); }
.header__cta {
  display: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  background: var(--naranja-1);
  color: #fff;
  border-radius: 50px;
  transition: background 0.15s;
  white-space: nowrap;
}
.header__cta:hover { background: var(--teal); }

/* Burger */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.header__toggle span {
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.2s;
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.header__nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--teal-claro);
}
.header__nav-mobile.open { display: flex; }
.header__nav-mobile a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  padding: 14px 24px;
  border-bottom: 1px solid var(--teal-claro);
}
.header__nav-mobile a:hover { background: var(--teal-claro); }
.header__nav-mobile .header__cta-mobile {
  margin: 16px 24px;
  text-align: center;
  background: var(--naranja-1);
  color: #fff;
  border-radius: 50px;
  padding: 12px;
}

@media (min-width: 900px) {
  .header__nav { display: flex; }
  .header__cta { display: inline-flex; align-items: center; }
  .header__toggle { display: none; }
  .header__nav-mobile { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--hero-bg);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--teal);
}
.hero__title em { font-style: normal; color: var(--teal); }
.hero__subtitle {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--teal);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.hero__img {
  width: 100%;
  aspect-ratio: 1656/1080;
  object-fit: cover;
  border-radius: var(--radius);
  filter: drop-shadow(0 12px 28px rgba(29,93,105,0.22));
  display: block;
}
.hero__cta {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  white-space: nowrap;
  border: 2px solid var(--hero-bg);
  animation: hero-pulse 2.4s ease-in-out infinite;
  z-index: 2;
}
.hero__cta:hover {
  animation: hero-pulse 1s ease-in-out infinite;
  transform: scale(1.04);
}
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,93,105,0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(29,93,105,0); }
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 88px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; gap: 48px; }
}
@media (max-width: 540px) {
  .hero__cta {
    font-size: 15px;
    padding: 14px 28px;
    bottom: 20px;
  }
}

/* ============================================================
   DETALLES
   ============================================================ */
.detalles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.detalle-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.detalle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.detalle-card__icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--naranja-1);
  color: #fff;
}
.detalle-card__icon svg { width: 24px; height: 24px; }
.detalle-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
  margin-bottom: 8px;
}
.detalle-card__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}
.detalle-card__sub {
  font-size: 14px;
  color: var(--teal);
  margin-top: 4px;
  opacity: 0.7;
}
@media (min-width: 540px) { .detalles__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   EXPOSITOR
   ============================================================ */
.expositor__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}
.expositor__photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1270/1479;
  border-radius: var(--radius);
  margin: 0 auto;
  filter: drop-shadow(0 16px 32px rgba(29,93,105,0.25));
  overflow: hidden;
  position: relative;
}
.expositor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.expositor__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  opacity: 0.3;
}
.expositor__info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--teal);
}
.expositor__role {
  font-size: 16px;
  color: var(--naranja-1);
  font-weight: 700;
  margin-bottom: 20px;
}
.expositor__bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--teal);
}
@media (min-width: 768px) {
  .expositor__grid { grid-template-columns: 1fr 1.5fr; gap: 48px; }
}

/* ============================================================
   EJES
   ============================================================ */
.ejes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.eje-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.eje-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eje-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.eje-card__body {
  padding: 20px 24px 28px;
}
.eje-card__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--naranja-1);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}
.eje-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--teal);
}
.eje-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--teal);
  opacity: 0.8;
}
@media (min-width: 540px) { .ejes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ejes__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   INSCRIPCIÓN / FORMULARIO
   ============================================================ */
.inscripcion__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.inscripcion__info h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--teal);
}
.inscripcion__info h2 em { font-style: normal; color: inherit; }
.inscripcion__info p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--teal);
  margin-bottom: 24px;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.form-error-general {
  background: var(--error-bg);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--error);
  display: none;
}
.form-error-general.show { display: block; }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}
.form-label .required { color: var(--error); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--teal);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--naranja-1);
  box-shadow: 0 0 0 3px rgba(249,128,18,0.15);
}
.form-input::placeholder { color: #9ab; }
.form-group--error .form-input { border-color: var(--error); background: var(--error-bg); }
.form-field-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
}
.form-group--error .form-field-error { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--naranja-1);
  cursor: pointer;
}
.form-check label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--teal);
  cursor: pointer;
}
.form-check label a { color: var(--naranja-1); text-decoration: underline; }
.form-check--error label { color: var(--error); }

.form-submit {
  width: 100%;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}
.form-submit:hover { background: #15565f; }
.form-submit:focus-visible { outline: 3px solid var(--naranja-1); outline-offset: 2px; }

.form-privacy {
  font-size: 12px;
  line-height: 1.5;
  color: var(--teal);
  opacity: 0.7;
  margin-top: 16px;
  text-align: center;
}

@media (min-width: 900px) {
  .inscripcion__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

/* ============================================================
   PANTALLAS DE ESTADO
   ============================================================ */
.status { padding: 64px 0 48px; text-align: center; }
.status__icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status__icon--ok { background: var(--teal); }
.status__icon--error { background: var(--error); }
.status__icon--closed { background: var(--naranja-1); }
.status__icon svg { width: 32px; height: 32px; }
.status__icon--ok svg, .status__icon--error svg, .status__icon--closed svg { color: #fff; }
.status__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.status__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--teal);
  max-width: 440px;
  margin: 0 auto 24px;
}
.status__text a { color: var(--naranja-1); text-decoration: underline; }
.status__btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.status__btn:hover { background: #15565f; }

/* ============================================================
   FOOTER INSTITUCIONAL
   ============================================================ */
.footer {
  background: #fff;
  padding: 40px 0 28px;
  border-top: 1px solid var(--teal-claro);
}
.footer__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}
.footer__social a:hover { opacity: 0.7; }
.footer__social svg { width: 22px; height: 22px; fill: var(--naranja-1); }

.footer__divider {
  border: none;
  border-top: 1px solid var(--teal-claro);
  margin: 0 0 28px;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.footer__badges-group {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer__badges img {
  height: 96px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.footer__badges img:hover { opacity: 1; }
.footer__badges .footer__badge--logo { height: 72px; }
.footer__badges .footer__badge--partner { height: 52px; }
.footer__badges .footer__badge--soc2 { height: 64px; }
.footer__badges .footer__badge--afip { height: 110px; }

.footer__legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.footer__legal a {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}
.footer__legal a:hover { color: var(--naranja-1); }

.footer__copy {
  font-size: 12px;
  color: var(--teal);
  text-align: center;
  line-height: 1.5;
  opacity: 0.8;
}

/* ============================================================
   PRIVACIDAD
   ============================================================ */
.privacidad { padding: 48px 0; }
.privacidad__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 24px;
}
.privacidad__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--teal);
}
.privacidad__text h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}
.privacidad__text p { margin-bottom: 12px; }

/* ============================================================
   ANIMACIÓN SCROLL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   AGREGADOS DEL SERVICIO (CSP: style-src 'self', sin style="" inline)
   Mismo lenguaje visual que el diseño; cubren estados que el diseño
   no tenía o que antes eran estilos en línea.
   ============================================================ */

/* Antes style="padding-top:40px; padding-bottom:50px" en el hero. */
.hero--landing { padding-top: 40px; padding-bottom: 50px; }
.hero__subtitle + .hero__subtitle { margin-top: -12px; }

/* Honeypot: fuera de pantalla para las personas, visible para los bots. */
.campo-trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Enlace "Saltar al contenido" (accesibilidad por teclado). */
.salto {
  position: absolute;
  left: -10000px;
  top: 0;
}
.salto:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: #fff;
  color: var(--teal);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

:focus-visible { outline: 3px solid var(--naranja-1); outline-offset: 2px; }

/* Error general del formulario: visible cuando el servidor lo renderiza. */
.form-error-general:focus { outline: 3px solid var(--error); outline-offset: 2px; }

/* Error por campo (checkbox obligatorio): mismo estilo que .form-field-error. */
.form-field-error--visible { display: block; margin: -6px 0 14px 30px; }
.form-input[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.form-check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

/* Enlace de privacidad debajo del formulario. */
.form-privacy a { color: var(--naranja-1); text-decoration: underline; opacity: 1; }

/* Privacidad: el reset del diseño quita las viñetas y no define h3/h4/negrita. */
.privacidad__text ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.privacidad__text li { margin-bottom: 4px; }
.privacidad__text h3, .privacidad__text h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 6px;
}
.privacidad__text strong { font-weight: 700; }
.privacidad__volver { margin-top: 32px; }
.privacidad__volver a { color: var(--naranja-1); text-decoration: underline; font-weight: 700; }

/* Varios expositores: el diseño sólo contemplaba uno. */
.expositor__grid + .expositor__grid { margin-top: 48px; }
.expositor__nombre {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--teal);
}

/* Pantallas de estado con evento (429, cerrado): botón secundario. */
.status__text a.status__link { color: var(--naranja-1); text-decoration: underline; }

/* Preferencia de movimiento reducido. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cta, .hero__cta:hover { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
