/* Tarjeta virtual — Hector J. Garcia M. / Voz de un Alma Caída */
:root {
  --bg: #140e0c;
  --bg-soft: #1e1510;
  --cream: #f6ead2;
  --cream-dim: #d8c5a4;
  --gold: #c9a44c;
  --gold-bright: #e0c070;
  --gold-dim: #8a6e32;
  --rust: #a33b24;
  --flag-blue: #002d62;
  --flag-red: #ce1126;
  --ink: #f7f0e4;
  --muted: #b9a88a;
  --line: rgba(201, 164, 76, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 26.5rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% -80px, #3a2418 0%, var(--bg) 62%);
  background-color: var(--bg);
  line-height: 1.5;
}

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

a {
  color: var(--gold-bright);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--cream); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 10;
  padding: 0.5rem 0.8rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; }

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding:
    0.85rem
    max(1.15rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1.15rem, env(safe-area-inset-left));
}

/* Hero photo */
.hero {
  margin: 0 0 1.35rem;
}
.hero-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0a0706;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 955 / 912;
  object-fit: cover;
  object-position: center top;
}

.identity {
  text-align: center;
  padding: 0.15rem 0.2rem 0;
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cream-dim);
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 8vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.tagline {
  margin: 0.55rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 4.6vw, 1.35rem);
  line-height: 1.3;
  color: var(--gold-bright);
}

/* Subtle Dominican accent — thin bar, not a full flag reproduction */
.flag-bar {
  display: flex;
  width: 7.5rem;
  height: 0.38rem;
  margin: 1.15rem auto 0;
  border-radius: 99px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.flag-bar span:nth-child(1) { flex: 1; background: var(--flag-blue); }
.flag-bar span:nth-child(2) { flex: 0.38; background: #f4f4f4; }
.flag-bar span:nth-child(3) { flex: 1; background: var(--flag-red); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.35rem 0 1.15rem;
  color: var(--gold-dim);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  max-width: 6rem;
}

blockquote {
  margin: 0 0 1.75rem;
  padding: 0 0.15rem;
  border: 0;
}
blockquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.12rem, 4.2vw, 1.28rem);
  line-height: 1.45;
  color: var(--cream);
  text-wrap: pretty;
}

.libro {
  margin: 0 0 1.75rem;
  text-align: center;
}
.libro-frame {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0a0706;
}
.libro-frame img {
  width: 100%;
  aspect-ratio: 1400 / 788;
  object-fit: cover;
  object-position: center;
}
.libro h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 6vw, 1.85rem);
  line-height: 1.2;
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: none;
}

.btn-compra {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #1a100c;
  box-shadow: 0 8px 22px rgba(201, 164, 76, 0.28);
}
.btn-compra:hover {
  color: #1a100c;
  filter: brightness(1.06);
}
.btn-compra:active { transform: translateY(1px); }

.btn-soon {
  background: transparent;
  color: var(--cream-dim);
  border-color: var(--line);
  cursor: not-allowed;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.btn-soon[aria-disabled="true"] { pointer-events: none; }

.redes h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  text-align: center;
  color: var(--cream);
}
.redes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.red-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.15rem;
  padding: 0.55rem 0.95rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
}
.red-link:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: #271c16;
}
.red-link svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  fill: var(--gold-bright);
}
.red-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.red-meta strong {
  font-weight: 700;
  font-size: 0.98rem;
}
.red-meta span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 400;
}

.site-footer {
  margin-top: 2.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { color: var(--gold-bright); }

@media (min-width: 720px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .page {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-compra:active { transform: none; }
}

@media (prefers-contrast: more) {
  .btn-soon, .red-link, .hero-frame, .libro-frame {
    border-color: var(--gold);
  }
}
