:root {
  --hueso: #FBFAF7;
  --tinta: #0F1235;
  --tinta-suave: #5A5F7E;
  --linea: #E7E5DE;
  --indigo: #283088;
  --indigo-osc: #161B52;
  --verde: #3DAC4B;
  --menta: #E3F4E5;
  --degradado: linear-gradient(110deg, #3DAC4B, #283088);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hueso); color: var(--tinta); font: 17px/1.6 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.contenedor { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }

header.top .contenedor { display: flex; justify-content: space-between; align-items: center; padding-block: 10px; gap: 12px; }
.top img { height: 120px; width: auto; }
.top nav a { text-decoration: none; font-weight: 500; margin-left: 26px; font-size: 15px; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--degradado); transition: right .3s; }
.top nav a:hover::after { right: 0; }

/* Hero dividido */
.hero { display: grid; gap: 48px; padding-block: 4px 80px; align-items: center; }
.sello { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--menta); color: #1E6B2A; }
.sello b { background: var(--verde); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .95; letter-spacing: -.035em; font-weight: 600; margin: 24px 0; }
.hero h1 em { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero .lead { font-size: 19px; color: var(--tinta-suave); max-width: 520px; margin: 0 0 32px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; padding: 16px 26px; border-radius: 999px; transition: .25s; }
.btn-osc { background: var(--tinta); color: #fff; }
.btn-osc:hover { background: var(--indigo); transform: translateY(-2px); }

.collage { position: relative; height: 560px; }
.collage .f { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(15,18,53,.45); }
.collage .f img { width: 100%; height: 100%; object-fit: cover; }
.f1 { left: 0; top: 40px; width: 52%; height: 72%; animation: flotar 7s ease-in-out infinite; }
.f2 { right: 0; top: 0; width: 44%; height: 46%; animation: flotar 8s ease-in-out -2s infinite; }
.f3 { right: 4%; bottom: 0; width: 46%; height: 46%; animation: flotar 9s ease-in-out -4s infinite; }
@keyframes flotar { 50% { transform: translateY(-10px); } }
.ficha-flotante { position: absolute; z-index: 2; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.9); border-radius: 20px; padding: 14px 18px; box-shadow: 0 18px 40px -18px rgba(15,18,53,.4); font-size: 14px; }
.ficha-flotante small { display: block; color: var(--tinta-suave); font-size: 12px; }
.ficha-flotante strong { font-size: 17px; }
.ff1 { left: 34%; top: 6px; }
.ff2 { left: -4px; bottom: 30px; }
.ff2 strong { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 26px; line-height: 1.1; display: block; }

/* Franja de datos */
.franja { background: var(--indigo-osc); color: #fff; }
.franja .contenedor { display: grid; gap: 1px; background: rgba(255,255,255,.1); }
.franja .item { background: var(--indigo-osc); padding: 26px 20px; }
.franja small { display: block; color: #9EA6E0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.franja strong { font-weight: 500; font-size: 18px; }

/* Presentación: fundamento normativo */
.presentacion { padding-block: 88px; }
.presentacion .contenedor { display: grid; gap: 28px; }
.presentacion .h2 { font-size: clamp(32px, 4.2vw, 52px); }
.normas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.normas span { font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; }
.fundamento { border-left: 3px solid; border-image: linear-gradient(180deg, #3DAC4B, #283088) 1; padding-left: 28px; }
.fundamento p { margin: 0 0 18px; line-height: 1.7; color: var(--tinta-suave); }
.fundamento p:first-child { font-size: 22px; line-height: 1.45; font-weight: 500; color: var(--tinta); }
.fundamento p:last-child { margin: 0; }
.fundamento strong { font-weight: 600; color: var(--tinta); }
.fundamento a { color: var(--indigo); }

section { padding-block: 104px; }
.h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 18px; }
.intro { color: var(--tinta-suave); max-width: 460px; margin: 0; }

/* Documentos en acordeón */
.documentos { background: #fff; border-block: 1px solid var(--linea); }
.acordeon { margin-top: 48px; }
details { border-top: 1px solid var(--linea); }
details:last-child { border-bottom: 1px solid var(--linea); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 28px 4px; }
summary::-webkit-details-marker { display: none; }
summary h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -.02em; flex: 1; }
summary .cant { font-size: 14px; color: var(--tinta-suave); }
summary .mas { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--tinta); display: grid; place-items: center; font-size: 22px; transition: .3s; flex: none; }
details[open] summary .mas { transform: rotate(45deg); background: var(--tinta); color: #fff; }
summary:hover h3 { color: var(--indigo); }
.archivos { display: grid; gap: 12px; padding: 0 0 32px; }
.archivo { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 20px; background: var(--hueso); border: 1px solid var(--linea); text-decoration: none; transition: .25s; }
.archivo:hover { border-color: var(--indigo); transform: translateX(6px); }
.archivo .tipo { flex: none; width: 54px; height: 64px; border-radius: 10px; background: var(--degradado); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 8px; position: relative; }
.archivo .tipo::before { content: ""; position: absolute; right: 0; top: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: var(--hueso) var(--hueso) rgba(255,255,255,.4) rgba(255,255,255,.4); }
.archivo strong { display: block; font-weight: 600; font-size: 18px; line-height: 1.3; }
.archivo small { color: var(--tinta-suave); }
.vacio { padding: 8px 4px 32px; color: var(--tinta-suave); }
.archivos .corte { margin: 16px 4px 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }
.archivos .corte:first-child { margin-top: 0; }

/* Contacto */
.contacto { background: var(--indigo-osc); color: #fff; border-radius: 40px; padding: 56px 28px; display: grid; gap: 36px; position: relative; overflow: hidden; }
.contacto::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(61,172,75,.45), transparent 65%); }
.contacto .h2 em { color: #8FE39A; }
.contacto p { color: #C3C8EC; margin: 0; }
.enlaces { position: relative; display: grid; gap: 4px; }
.enlaces a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; font-size: clamp(18px, 2.2vw, 24px); padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); transition: .25s; }
.enlaces a:hover { padding-left: 10px; color: #8FE39A; }
.telefonos { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 16px; }
.telefonos small { width: 100%; color: #9EA6E0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.enlaces .telefonos a { font-size: 17px; padding: 2px 0; border-bottom: 0; }
.enlaces .telefonos a:hover { padding-left: 0; }

footer { padding: 48px 0 64px; color: var(--tinta-suave); font-size: 14px; }
footer .contenedor { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
footer img { height: 72px; width: auto; }
footer p { flex: 1 1 420px; margin: 0; }

/* La animación de entrada solo se activa si hay JavaScript; sin él, todo se ve igual. */
.js .revelar { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .revelar.visible { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 8px; }
  .franja .contenedor { grid-template-columns: repeat(4, 1fr); }
  .presentacion .contenedor { grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
  .contacto { grid-template-columns: 1fr 1fr; padding: 80px; align-items: center; }
}
@media (max-width: 899px) {
  .top nav { display: none; }
  .top img { height: 92px; }
  .collage { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
