/* Impulmax: design system without framework dependencies. */
:root {
  --navy:#06263b;
  --deep:#031b2b;
  --ink:#15384d;
  --muted:#496272;
  --orange:#c93f0a;
  --hover:#a63005;
  --accent:#ffac85;
  --surface:#f0f4f6;
  --soft:#f8fafb;
  --border:#d8e2e8;
  --radius:12px;
  --section-space:72px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  font-size:16px;
  line-height:1.6;
  -webkit-text-size-adjust:100%
}
*,*::before,*::after {
  box-sizing:border-box
}
body {
  margin:0
}
img {
  display:block;
  max-width:100%;
  height:auto
}
button,input,textarea {
  font:inherit
}
button {
  cursor:pointer
}
[hidden] {
  display:none!important
}
a {
  color:var(--orange);
  text-underline-offset:.2em
}
a:hover {
  color:var(--hover)
}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px
}
h1,h2,h3,p {
  margin:0 0 1rem
}
h1,h2,h3 {
  color:var(--navy);
  line-height:1.2
}
h1,h2 {
  font-size:clamp(1.85rem,3vw,2.7rem);
  font-weight:650;
  letter-spacing:-.025em
}
h3 {
  font-size:1.45rem;
  font-weight:500
}
strong {
  font-weight:650
}
[id] {
  scroll-margin-top:105px
}
.container {
  width:min(100% - 48px,1140px);
  margin-inline:auto
}
.section {
  padding-block:var(--section-space);
  text-align:center
}
.section-title {
  margin-bottom:36px
}
.prose {
  max-width:840px
}
.prose p:last-child {
  margin-bottom:0
}
.lead {
  font-size:clamp(1.1rem,1.65vw,1.3rem);
  line-height:1.65
}
.skip-link {
  position:fixed;
  top:10px;
  left:16px;
  padding:10px 18px;
  background:white;
  z-index:100;
  transform:translateY(-150%)
}
.skip-link:focus {
  transform:none
}
/* Navigation */
.navbar {
  position:sticky;
  top:0;
  z-index:50;
  background:var(--navy);
  box-shadow:0 1px 0 #ffffff14
}
.navbar-layout {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:90px;
  gap:24px
}
.navbar-brand {
  flex-shrink:0
}
.logo-header {
  width:138px
}
.navbar-menu {
  display:flex;
  align-items:center;
  gap:28px
}
.nav-link {
  color:white;
  text-decoration:underline;
  text-decoration-color:transparent;
  text-decoration-thickness:2px;
  text-underline-offset:7px;
  transition:color .2s,text-decoration-color .2s
}
.nav-link:hover,.nav-link:focus-visible {
  color:var(--accent);
  text-decoration-color:currentColor
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:9px 20px;
  border:1px solid transparent;
  border-radius:6px;
  font-size:.95rem;
  font-weight:600;
  line-height:1.4;
  text-decoration:none;
  transition:background-color .2s,border-color .2s,color .2s
}
.btn-primary {
  color:white;
  background:var(--orange);
  border-color:var(--orange)
}
.btn-primary:hover,.btn-primary:focus-visible {
  color:white;
  background:var(--hover);
  border-color:var(--hover)
}
.btn-outline {
  color:var(--orange);
  border-color:var(--orange);
  background:transparent
}
.btn-outline:hover,.btn-outline:focus-visible {
  color:white;
  background:var(--orange)
}
.navbar-toggler {
  width:44px;
  height:44px;
  color:white;
  background:transparent;
  border:1px solid #ffffff59;
  border-radius:6px;
  font-size:1.6rem;
  -webkit-tap-highlight-color:transparent;
  appearance:none
}
.navbar-toggler:hover,.navbar-toggler:active,.navbar-toggler[aria-expanded="true"] {
  color:white;
  background:transparent;
  border-color:#ffffff59
}
.navbar-toggler:focus:not(:focus-visible) { outline:none; }
.navbar-toggler:focus-visible { outline-color:white; }
/* Featured events */
.hero {
  position:relative;
  isolation:isolate;
  background:var(--navy)
}
.hero-slide {
  position:relative
}
.hero-slide img {
  width:100%;
  height:clamp(360px,45vw,660px);
  object-fit:cover
}
.hero-slide::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(transparent 25%,#031b2bd9)
}
.hero-caption {
  position:absolute;
  z-index:1;
  bottom:88px;
  left:5%;
  right:5%;
  margin-inline:auto;
  max-width:1050px;
  text-align:center;
  color:white
}
.hero-caption h1,.hero-caption h2 {
  color:white;
  font-size:clamp(1.7rem,3.4vw,3.15rem);
  text-shadow:0 2px 12px #0006
}
.hero-caption p {
  margin:0;
  font-size:clamp(1rem,1.65vw,1.3rem)
}
.hero-controls {
  position:absolute;
  z-index:2;
  bottom:23px;
  inset-inline:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px
}
.hero-dot {
  width:40px;
  height:44px;
  border:0;
  background:transparent;
  position:relative
}
.hero-dot::after {
  content:"";
  position:absolute;
  top:20px;
  left:7px;
  right:7px;
  height:3px;
  border-radius:3px;
  background:#ffffff73
}
.hero-dot.is-active::after {
  background:white
}

/* Cards: paired editorial line counts, natural wrapping on smaller screens. */
.events-section {
  background:var(--surface)
}
.history-section {
  background:var(--soft)
}
.events-grid,.history-grid {
  display:grid;
  gap:28px
}
.events-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.history-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.event-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:white;
  box-shadow:0 3px 12px #06263b17;
  transition:transform .25s ease,box-shadow .25s ease
}
.event-image {
  width:100%;
  aspect-ratio:2;
  object-fit:cover
}
.event-body {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:28px 24px;
  flex:1
}
.event-body h3 {
  width:100%;
  max-width:360px;
  min-height:2.4em;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px
}
.event-copy {
  font-size:1rem;
  line-height:1.55;
  margin-bottom:25px;
  flex:1
}
.event-card-wide {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr
}
.event-card-wide .event-image {
  height:100%;
  aspect-ratio:auto
}
.event-card-wide .event-body {
  align-items:flex-start;
  text-align:left;
  justify-content:center;
  padding:32px
}
.event-card-wide h3 {
  min-height:auto;
  display:block
}
.history-grid .event-body {
  padding:26px 20px
}
.history-grid .event-copy {
  font-size:.95rem;
  margin-bottom:0
}
.event-card:focus-within {
  box-shadow:0 10px 24px #06263b24
}
@media(hover:hover) and (pointer:fine) {
  .event-card:hover {
    transform:translateY(-4px);
    box-shadow:0 10px 24px #06263b24
  }
}
@media(min-width:1200px) {
  .event-copy-line {
    display:block;
    white-space:nowrap
  }
}
/* Supporting sections */
.opportunity {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  background:var(--navy) url('../img/banners/oportunidades-comerciales.webp') center/cover;
  color:white
}
.opportunity::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#031b2be0,#031b2bb8)
}
.opportunity h2 {
  color:white
}
.opportunity-phrase {
  display:inline-block;
  max-width:100%;
  text-wrap:balance;
}
.contact a {
  color:var(--navy);
  overflow-wrap:anywhere
}
.contact a:hover {
  color:var(--orange)
}
.photo-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.photo-grid img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover
}
.video-section {
  background:var(--navy);
  color:white
}
.video-section h2 {
  color:white;
  max-width:840px;
  margin-inline:auto
}
.video-embed {
  position:relative;
  padding-top:56.25%;
  border-radius:var(--radius);
  overflow:hidden;
  background:#000
}
.video-embed iframe {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0
}

.video-help a {
  color:white
}
.sponsors-section h2 {
  margin-bottom:12px
}
.sponsors-section .lead {
  color:var(--muted)
}
.sponsors {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  margin-top:36px
}
.sponsor-track {
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:var(--border) transparent;
  padding-block:10px 18px
}
.sponsor-track img {
  flex:0 0 calc((100% - 96px)/5);
  width:calc((100% - 96px)/5);
  height:90px;
  object-fit:contain;
  scroll-snap-align:start
}




.privacy-copy {
  max-width:900px;
  text-align:left
}
.privacy-copy p {
  line-height:1.8
}
.site-footer {
  background:var(--deep);
  color:#d8e3eb
}
.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:48px;
  padding-block:var(--section-space)
}
.footer-logo {
  width:175px;
  margin-bottom:18px
}
.footer-heading {
  color:white;
  font-size:1.3rem;
  letter-spacing:0
}
.site-footer a {
  color:#d8e3eb;
  text-decoration:none
}
.site-footer a:hover {
  color:#fff;
  text-decoration:underline
}
.footer-grid p {
  margin-bottom:9px
}
.copyright {
  padding:22px 24px;
  text-align:center;
  border-top:1px solid #ffffff1a;
  font-size:.85rem
}
.copyright p {
  margin-bottom:6px
}
@media(max-width:1199px) {
  .history-grid .event-body {
    padding-inline:18px
  }
}
@media(max-width:900px) {
  .navbar-menu {
    gap:18px
  }
  .history-grid {
    grid-template-columns:1fr;
    max-width:640px;
    margin-inline:auto
  }
  .history-grid h3 {
    min-height:auto
  }
  .sponsor-track img {
    flex-basis:calc((100% - 48px)/3);
    width:calc((100% - 48px)/3)
  }
}
@media(max-width:767px) {
  :root { --section-space:48px; }
  .container {
    width:calc(100% - 36px)
  }
  .section {
    padding-block:var(--section-space)
  }
  .navbar-layout {
    flex-wrap:wrap;
    min-height:78px;
    gap:0;
    padding-block:12px
  }
  .logo-header {
    width:120px
  }
  .navbar-menu {
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding-top:16px;
    margin-top:12px;
    border-top:1px solid #ffffff29
  }
  .navbar-menu .nav-link {
    padding:9px 0
  }
  .navbar-menu .btn {
    margin-top:8px;
    align-self:flex-start
  }
  .hero-slide img {
    height:380px
  }
  .hero-caption {
    bottom:64px;
    left:20px;
    right:20px
  }
  .hero-caption h1,.hero-caption h2 {
    margin-bottom:12px;
    text-wrap:balance
  }
  .hero-caption p {
    max-width:28ch;
    margin-inline:auto;
    line-height:1.45;
    text-wrap:balance
  }
  .hero-controls { bottom:12px; }
  
  .hero-dot {
    width:32px
  }
  .events-grid {
    grid-template-columns:1fr;
    gap:22px
  }
  .event-body h3 {
    min-height:auto
  }
  .event-card-wide {
    display:flex
  }
  .event-card-wide .event-image {
    height:auto;
    aspect-ratio:2
  }
  .event-card-wide .event-body {
    align-items:center;
    text-align:center;
    padding:28px 24px
  }
  .event-copy {
    font-size:.98rem
  }
  .photo-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .sponsors {
    gap:6px;
    grid-template-columns:38px minmax(0,1fr) 38px
  }
  
  .sponsor-track img {
    flex-basis:calc((100% - 24px)/2);
    width:calc((100% - 24px)/2)
  }
  .footer-grid {
    grid-template-columns:1fr;
    gap:30px;
    text-align:center;
    padding-block:var(--section-space)
  }
  .footer-logo {
    margin-inline:auto
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
  .event-card:hover {
    transform:none
  }
}
@media print {
  .navbar,.hero-controls,.video-embed,.skip-link {
    display:none!important
  }
  :root { --section-space:24px; }
  .event-card {
    break-inside:avoid;
    box-shadow:none
  }
  .opportunity,.video-section,.site-footer {
    background:white;
    color:black
  }
  .opportunity h2,.video-section h2,.footer-heading,.site-footer a {
    color:black
  }
}

/* Review adjustments */
.nav-link:hover, .nav-link:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}
.copyright a, .copyright a:hover, .copyright a:focus-visible {
  color: #fff;
  text-decoration: underline;
}
.privacy-copy { text-align: center; }
.event-copy { width: 100%; }
.balanced-line { display: block; white-space: nowrap; }
.event-body .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  max-width: none;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  display: block;
}
.sponsors { display: block; }
.sponsor-track {
  display: block;
  padding-block: 14px;
  overflow: hidden;
  scrollbar-width: none;
}
.sponsor-track::-webkit-scrollbar { display: none; }
.sponsor-belt {
  display: flex;
  width: max-content;
  will-change: transform;
}
.sponsor-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.sponsor-track .sponsor-group img { flex: 0 0 175px; width: 175px; height: 90px; object-fit: contain; }
 .sponsor-track { cursor: grab; touch-action: pan-y; user-select: none; }
.sponsor-track.is-dragging { cursor: grabbing; }
.sponsor-track img { pointer-events: none; }

.video-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.video-tabs button {
  color: #fff;
  background: transparent;
  border: 1px solid #ffffff80;
  border-radius: 6px;
  padding: 10px 18px;
  min-height: 44px;
}
.video-tabs button:hover, .video-tabs button[aria-pressed="true"] { color: var(--navy); background: #fff; border-color: #fff; }
@media (max-width: 767px) {
  .event-body, .event-card-wide .event-body { padding: 24px 20px; }
  .sponsor-track .sponsor-group img { flex-basis: 140px; width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-belt { will-change: auto; }
}
/* Contact form */
.contact-form { text-align: left; margin-top: 32px; }
.form-required, .field-hint { font-size: .85rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-field label { font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #aabcc8; border-radius: 6px; font: inherit; min-height: 48px; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}
.contact-form [aria-invalid="true"] { border-color: #a12622; }
.form-field input[aria-invalid="true"]:focus,
.form-field textarea[aria-invalid="true"]:focus { outline-color: #a12622; }
.field-error { color: #a12622; font-size: .85rem; }
.field-error:empty { display: none; }
.privacy-field { margin-bottom: 22px; }
.privacy-field label { display: block; }
.privacy-field input { width: 18px; height: 18px; accent-color: #126744; vertical-align: middle; margin-right: 7px; }
.privacy-field .field-error { display: block; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { margin-top: 16px; margin-bottom: 0; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; gap: 0; } }
.photo-grid + .video-section { margin-top: var(--section-space); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
/* Header contact rollover */
.navbar .btn-primary:hover,
.navbar .btn-primary:focus-visible {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
/* Form validation: visible red borders, accessible descriptions. */
.contact-form .field-error,
.contact-form .field-hint,
.contact-form .form-required {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.privacy-field input[aria-invalid="true"] { outline: 1px solid #a12622; outline-offset: 1px; }
#contacto { scroll-margin-top: 58px; }
@media (max-width: 767px) { #contacto { scroll-margin-top: 46px; } }
/* Neutral autofill and balanced section spacing. */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.contact-form input:autofill { background: #fff; color: var(--ink); }
.video-section + .sponsors-section { border-top: var(--section-space) solid #fff; }
/* Keep module spacing independent of the last content element. */
.section > .container > :last-child { margin-bottom: 0; }
main > .photo-grid:last-child { margin-bottom: var(--section-space); }
.contact-form .form-status:empty { display: none; }

