/* ==========================================================================
   Coorva — shared brand stylesheet
   Palette & type derived from "Manual de Identidad Coorva 2024".
   ========================================================================== */

:root {
  /* Primary */
  --navy:        #002169;
  --magenta:     #df1683;
  /* Blues / periwinkle */
  --blue:        #425cc7;
  --peri:        #8389d9;
  --peri-40:     #b9b9e9;
  --peri-10:     #ececf9;
  /* Magenta tints */
  --magenta-70:  #ef74a6;
  --magenta-40:  #fab1cb;
  --magenta-10:  #feeaf1;
  /* Accent (use sparingly) */
  --green:       #00ce7c;
  /* Neutrals */
  --paper:       #ffffff;
  --ink:         #14182b;
  --muted:       #5b6079;
  --hairline:    #e4e6f2;

  --maxw:        72ch;
  --radius:      14px;
  --shadow-sm:   0 1px 2px rgba(0, 33, 105, .06), 0 8px 24px rgba(0, 33, 105, .06);
  --shadow-md:   0 12px 40px rgba(0, 33, 105, .12);
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --font-body:   "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* ==========================================================================
   Brand mark (the "Planeta" isotipo + wordmark)
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; display: block; flex: 0 0 auto; }
.brand__img { height: 77px; width: auto; display: block; }
.brand__word {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
}
.brand__word b { color: var(--magenta); font-weight: 800; font-size: .5em; vertical-align: .55em; margin-left: .04em; }

/* ==========================================================================
   Document chrome (legal pages)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topbar__nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.topbar__nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: .42rem .8rem;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.topbar__nav a:hover { background: var(--peri-10); }
.topbar__nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem) 5rem;
}

.doc__eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 .8rem;
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}
.doc h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin-top: 1.1rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--magenta-40));
}
.doc__meta {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 2.6rem;
}
.doc__intro {
  font-size: 1.08rem;
  color: #2c3050;
  border-left: 3px solid var(--peri-40);
  padding-left: 1.2rem;
  margin: 0 0 2.6rem;
}

.doc h2 {
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -.01em;
  margin: 2.8rem 0 .8rem;
  scroll-margin-top: 5rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.doc h2 .num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--magenta);
  font-variant-numeric: tabular-nums;
}
.doc h3 { color: var(--blue); font-size: 1.02rem; margin: 1.6rem 0 .4rem; }
.doc p { margin: 0 0 1.05rem; }
.doc ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.doc li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0 0 .55rem;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
}
.legal-caps {
  font-size: .92rem;
  color: #34385a;
  background: var(--peri-10);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

/* ---------- footer ---------- */
.foot {
  background: var(--navy);
  color: #cfd6f2;
  padding: 3rem clamp(1.2rem, 5vw, 3rem);
}
.foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.foot__brand .brand__word { color: #fff; }
.foot__brand .brand__word b { color: var(--magenta-70); }
.foot__tag { margin: .8rem 0 0; font-size: .9rem; color: var(--peri-40); }
.foot address { font-style: normal; font-size: .9rem; line-height: 1.8; }
.foot a { color: #fff; }
.foot a:hover { color: var(--magenta-70); }
.foot__legal {
  max-width: var(--maxw);
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem;
  color: var(--peri-40);
}

/* ==========================================================================
   Landing page (/)
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% -8%, var(--peri-10) 0%, transparent 60%),
    radial-gradient(48% 42% at 88% 110%, var(--magenta-10) 0%, transparent 55%),
    var(--paper);
}
/* faint orbit rings for atmosphere */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 42%, transparent 0 109px, rgba(66, 92, 199, .05) 109px 110px);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0 46%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 42%, #000 0 46%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 640px; }

.hero__logo {
  width: clamp(370px, 70vw, 706px);
  height: auto;
  margin: 0 auto;
  display: block;
  animation: rise .8s var(--ease) both;
}
.hero__wordmark {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy);
  line-height: 1;
  margin: 0;
  animation: rise .8s var(--ease) .08s both;
}
.hero__wordmark b { color: var(--magenta); font-size: .4em; vertical-align: .85em; margin-left: .05em; }
.hero__tag {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.22rem);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .01em;
  animation: rise .8s var(--ease) .16s both;
}
.hero__tag span { color: var(--magenta); }
.hero__sub {
  margin: 1.4rem auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
  animation: rise .8s var(--ease) .24s both;
}

.hero__links {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: rise .8s var(--ease) .32s both;
}
.linkcard {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.linkcard--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.linkcard--primary:hover { background: #001a52; color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.linkcard--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--peri-40); }
.linkcard--ghost:hover { color: var(--navy); border-color: var(--magenta); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.linkcard svg { width: 18px; height: 18px; }

.hero__foot {
  position: absolute;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  animation: rise .8s var(--ease) .4s both;
}
.hero__foot a { color: var(--muted); text-decoration: none; }
.hero__foot a:hover { color: var(--magenta); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .topbar, .foot { background: #fff !important; color: #000 !important; }
  .topbar { position: static; border-bottom: 1px solid #ccc; }
  .doc { max-width: none; }
  a { color: #000; }
}
