/* Nuestra Cosa Creativa - estilos comunes para páginas legales */

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

:root {
  --navy: #0f1f4b;
  --navy-soft: #1a2c63;
  --gold: #f5a623;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --cream: #f1ede4;
  --text: #1a1a1a;
  --text-muted: #8a8a8a;
  --border: rgba(15, 31, 75, 0.12);
}

html, body { width: 100%; }

body {
  background-color: var(--off-white);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 166, 35, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(15, 31, 75, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--navy) 70%, transparent 100%);
  z-index: 10;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 1.8rem 1.5rem 0;
  display: flex;
  justify-content: center;
}

.site-header a {
  display: inline-block;
  max-width: 280px;
  width: 100%;
}

.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

h1 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}

h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 2.6rem 0 0.9rem;
  letter-spacing: -0.005em;
  scroll-margin-top: 1.5rem;
}

h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.6rem 0 0.6rem;
}

p, li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

a:hover, a:focus-visible { color: var(--gold); }

a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

strong { font-weight: 500; color: var(--navy); }

.lead {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 2rem;
}

.callout {
  background: var(--cream);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 500;
  color: var(--navy);
  background: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dl { margin-bottom: 1.2rem; }
dt {
  font-weight: 500;
  color: var(--navy);
  margin-top: 0.6rem;
}
dd { margin-left: 0; padding-left: 0; margin-bottom: 0.2rem; }

.back-home {
  display: inline-block;
  margin-top: 2.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.back-home:hover, .back-home:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.6rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-footer nav {
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: center;
}

.site-footer nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible { color: var(--gold); }

@media (max-width: 540px) {
  main { padding: 2.2rem 1.2rem 3rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.15rem; margin-top: 2rem; }
  .lead { font-size: 1.1rem; }
  .site-header a { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
