/* =========================================================
   Pasaporte Mexicano — Base Styles
   Palette: White / Black / Gold / #611232 / #3A0B1F
   ========================================================= */

:root {
  --c-white: #ffffff;
  --c-cream: #fdf8f1;
  --c-paper: #f7efe2;
  --c-gold: #c9a14a;
  --c-gold-deep: #a17a2c;
  --c-gold-soft: #e7d29b;
  --c-wine: #611232;
  --c-wine-dark: #3a0b1f;
  --c-wine-deeper: #270714;
  --c-black: #0a0a0a;
  --c-ink: #1a1416;
  --c-muted: #6b5a5f;
  --c-line: #e8d9be;

  --shadow-sm: 0 2px 6px rgba(58, 11, 31, .08);
  --shadow-md: 0 10px 28px rgba(58, 11, 31, .12);
  --shadow-lg: 0 22px 60px rgba(58, 11, 31, .22);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --ff-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1rem, 3vw, 2.25rem);
  --container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(201, 161, 74, .08), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(97, 18, 50, .08), transparent 60%),
    var(--c-cream);
  overflow-x: hidden;
}

img,
svg,
picture,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--c-wine);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--c-gold-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  color: var(--c-wine-dark);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }

blockquote {
  margin: 1.4em 0;
  padding: 1.2em 1.4em;
  border-left: 4px solid var(--c-gold);
  background: linear-gradient(90deg, rgba(201,161,74,.08), transparent 70%);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-wine-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  margin: 2.4rem 0;
}

::selection { background: var(--c-wine); color: #fff; }

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative;
}

.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(255,255,255,.6) 30%, rgba(255,255,255,.6) 70%, transparent),
    var(--c-paper);
}

.section--dark {
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(201,161,74,.18), transparent 60%),
    linear-gradient(180deg, var(--c-wine-dark), var(--c-wine-deeper));
  color: #f4ecd8;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #f8e9bf; }
.section--dark a { color: var(--c-gold-soft); }

/* Decorative ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 0 auto 1rem;
  color: var(--c-gold);
}
.ornament::before,
.ornament::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.ornament__diamond {
  width: 10px; height: 10px;
  background: currentColor;
  transform: rotate(45deg);
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-gold-deep);
  margin-bottom: .8rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--c-muted);
  max-width: 70ch;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-wine), var(--c-wine-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--c-wine-dark), var(--c-wine-deeper));
  color: #fff;
}

.btn--gold {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-deep));
  color: #1c0c14;
  box-shadow: var(--shadow-md);
}
.btn--gold:hover { color: #1c0c14; }

.btn--ghost {
  background: transparent;
  color: var(--c-wine);
  border-color: var(--c-wine);
}
.btn--ghost:hover {
  background: var(--c-wine);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #f8e9bf;
  border-color: var(--c-gold);
}
.btn--ghost-light:hover {
  background: var(--c-gold);
  color: #1c0c14;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--c-gold);
  border-color: var(--c-gold);
}

label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-wine-dark);
  margin-bottom: .35rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
thead th {
  background: linear-gradient(180deg, var(--c-wine-dark), var(--c-wine));
  color: #fff;
  text-align: left;
  padding: .9rem 1rem;
  font-family: var(--ff-serif);
  font-weight: 600;
  letter-spacing: .02em;
}
tbody td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--c-line);
  vertical-align: top;
}
tbody tr:nth-child(even) td { background: rgba(201,161,74,.06); }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10000;
  background: var(--c-gold); color: #000; padding: .6rem 1rem;
  border-radius: 4px; font-weight: 700;
}
.skip-link:focus { left: 8px; }
