/* Cudna Hiszpania — hoja base del sitio estático.
   Paleta provisional: sustituir por los tokens de marca definitivos. */

:root {
  --ink: #16212b;
  --ink-soft: #4a5a67;
  --paper: #fbfaf7;
  --sand: #efe7da;
  --line: #ddd4c6;
  --navy: #0f2e4a;
  --navy-dark: #0a2136;
  --accent: #b07a3c;
  --radius: 10px;
  --wrap: 1180px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabecera */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.brand__tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.site-nav a { text-decoration: none; font-size: 0.95rem; }
.site-nav a.is-active { color: var(--accent); font-weight: 600; }
.site-nav .has-children { position: relative; }
.site-nav .has-children > ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 46, 74, 0.12);
}
.site-nav .has-children:hover > ul,
.site-nav .has-children:focus-within > ul { display: block; }
.site-nav .has-children > ul li { display: block; }
.site-nav .has-children > ul a { display: block; padding: 7px 10px; border-radius: 6px; }
.site-nav .has-children > ul a:hover { background: var(--sand); }

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn:hover { background: var(--navy-dark); color: #fff; }

/* Contenido */
main { display: block; }

.hero {
  background: var(--navy);
  color: #fff;
  padding: 84px 0;
}
.hero a { color: #fff; }
.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  max-width: 18ch;
}
.hero__lead { max-width: 60ch; margin: 0 0 26px; color: rgba(255, 255, 255, 0.9); }

.section { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 18px;
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}

.draft-note {
  margin: 24px 0 0;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Pie */
.site-footer {
  margin-top: 0;
  padding: 56px 0 22px;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer__title { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0 0 12px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.site-footer__pitch { max-width: 40ch; font-size: 0.95rem; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; padding: 12px 0; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .site-nav ul { gap: 14px; padding-bottom: 6px; }
  .site-nav .has-children > ul { position: static; display: none; box-shadow: none; }
  .site-nav .has-children:focus-within > ul { display: block; }
  .btn--cta { margin-left: auto; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cabecera de página interior */
.page-head {
  padding: 56px 0 46px;
  background: var(--navy);
  color: #fff;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.16;
  max-width: 24ch;
}
.page-head__eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Contenido importado */
.prose > h2:first-child { margin-top: 0; }
.prose > h2 { margin-top: 2.4em; }
.prose > h3 { margin-top: 1.8em; }
.prose p { margin: 0 0 1.05em; }
.prose ul { margin: 0 0 1.2em; }
.prose .btn { margin: 4px 0; }

.media { margin: 28px 0; }
.media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--sand);
}
.cta-row { margin: 30px 0 0; }
