:root{
  --ea-blue-900: #003764;
  --ea-blue-700: #4e738a;
  --ea-blue-500: #7a97ab;
  --ea-blue-200: #b7c7d3;
  --ea-sky: #8dc6e8;
  --ea-red: #ad2e1c;

  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;

  --text: #10202f;
  --text-soft: #476173;
  --border: #d7e0e7;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 55, 100, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 55, 100, 0.10);
  --maxw: 72rem;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  font-size: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: "Archivo", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(141, 198, 232, 0.16), transparent 22rem),
    linear-gradient(to bottom, #f9fbfc, #f4f7fa 28rem, #f7f9fb 100%);
}

img{
  max-width: 100%;
  height: auto;
}

a{
  color: var(--ea-blue-900);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover{
  text-decoration-thickness: 0.12em;
}

:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--ea-red);
  border-radius: 8px;
}

.container{
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: 1rem;
  top: .75rem;
  background: #fff;
  color: var(--ea-blue-900);
  border: 2px solid var(--ea-blue-900);
  border-radius: 10px;
  padding: .7rem .9rem;
  transform: translateY(-220%);
  z-index: 1000;
}

.skip-link:focus-visible{
  transform: translateY(0);
}

/* Header */
.site-header{
  background:
    linear-gradient(135deg, #002b4d 0%, var(--ea-blue-900) 55%, #1d577b 100%);
  color: #fff;
  border-bottom: 4px solid var(--ea-red);
  box-shadow: 0 6px 18px rgba(0, 38, 68, 0.18);
}

.brand-row{
  padding: 1rem 0 .75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logos{
  display: block;
}

.brand-logos img{
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav-list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 0 1rem;
  margin: 0;
}

.nav-list a{
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}

.nav-list a:hover{
  background: rgba(141, 198, 232, 0.18);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

/* Main */
main{
  padding-bottom: 3rem;
}

main:focus{
  outline: none;
}

/* Hero */
.hero{
  padding: 1.6rem 0 1.2rem;
}

.hero--brand .container{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,55,100,0.96), rgba(78,115,138,0.94)),
    linear-gradient(to right, rgba(141,198,232,0.18), transparent 60%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
}

.hero--brand .container::after{
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141,198,232,0.30), rgba(141,198,232,0) 72%);
  pointer-events: none;
}

.hero h1{
  margin: 0 0 .35rem;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.1;
  max-width: 14ch;
}

.hero .lead{
  color: rgba(255,255,255,0.92);
  max-width: 60ch;
  margin-bottom: 1rem;
}

.chips{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: .75rem;
}

.chip{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-left: 4px solid var(--ea-sky);
  border-radius: 12px;
  padding: .85rem .9rem;
  backdrop-filter: blur(2px);
}

.chip strong{
  display: block;
  font-size: .95rem;
  margin-bottom: .15rem;
  color: #fff;
}

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .8rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn.primary{
  background: #fff;
  color: var(--ea-blue-900);
  border: 1px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.btn.primary:hover{
  background: #f3f8fb;
}

.btn:not(.primary){
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.38);
}

.btn:not(.primary):hover{
  background: rgba(255,255,255,0.10);
}

/* Sections */
.section{
  padding: 1.5rem 0;
}

.section + .section{
  border-top: 1px solid var(--border);
}

.section--soft{
  background: linear-gradient(to bottom, rgba(141,198,232,0.08), rgba(183,199,211,0.08));
}

.section h2{
  margin: 0 0 .5rem;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ea-blue-900);
}

.lead{
  color: var(--text-soft);
  max-width: 70ch;
}

/* Details / modalidades */
.modalidad{
  margin: 0 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.modalidad > summary{
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 1rem 1.1rem;
  font-weight: 800;
  color: var(--ea-blue-900);
  background:
    linear-gradient(to right, rgba(183,199,211,0.25), rgba(255,255,255,0.96));
  border-left: 5px solid var(--ea-blue-700);
  transition: background-color .2s ease, border-color .2s ease;
}

.modalidad > summary:hover{
  background:
    linear-gradient(to right, rgba(141,198,232,0.18), rgba(255,255,255,1));
}

.modalidad[open] > summary{
  border-left-color: var(--ea-red);
  background:
    linear-gradient(to right, rgba(141,198,232,0.22), rgba(255,255,255,1));
}

.modalidad > summary::-webkit-details-marker{
  display: none;
}

.modalidad > summary::after{
  content: "+";
  float: right;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ea-blue-700);
}

.modalidad[open] > summary::after{
  content: "–";
  color: var(--ea-red);
}

.modalidad-body{
  padding: 1rem;
  background: var(--surface);
}

.facts{
  display: grid;
  gap: .8rem;
  margin: 0;
}

.fact{
  background: linear-gradient(to bottom, #ffffff, #f8fbfd);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem;
  position: relative;
}

.fact::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: var(--ea-sky);
}

.facts dt{
  font-weight: 800;
  color: var(--ea-blue-900);
  margin-bottom: .2rem;
}

.facts dd{
  margin: 0;
  color: var(--text-soft);
}

/* Steps */
.steps{
  padding-left: 1.2rem;
  margin: .8rem 0 0;
}

.steps li{
  margin-bottom: .6rem;
}

.note{
  margin-top: 1rem;
  padding: .95rem 1rem;
  background: linear-gradient(to right, rgba(141,198,232,0.14), rgba(255,255,255,0.9));
  border: 1px solid rgba(122,151,171,0.35);
  border-left: 5px solid var(--ea-red);
  border-radius: 12px;
}

/* Lists in downloads */
#descargas ul,
.footer-links{
  padding-left: 1.1rem;
}

#descargas li{
  margin-bottom: .55rem;
}

/* Contact */
#contacto a[href^="mailto:"]{
  font-weight: 700;
}

/* Footer */
.site-footer{
  background:
    linear-gradient(135deg, #002b4d 0%, var(--ea-blue-900) 70%, #1d577b 100%);
  color: #fff;
  border-top: 4px solid var(--ea-red);
  margin-top: 1rem;
}

.site-footer .container{
  padding: 1.3rem 0 1.6rem;
}

.site-footer a{
  color: #fff;
}

.site-footer p,
.site-footer li{
  color: rgba(255,255,255,0.92);
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a{
  padding: .2rem 0;
}

/* Desktop refinements */
@media (min-width: 48rem){
  .hero--brand .container{
    padding: 2rem;
  }

  .facts{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}