/* Compra Vende Oro — estilos compartidos */

:root {
  --navy: #0b1f3a;
  --navy-light: #16315a;
  --gold: #c9a227;
  --gold-light: #e3c75f;
  --cream: #f7f3ea;
  --stone: #4a5568;
  --stone-light: #8a93a3;
  --white: #ffffff;
  --green-up: #2f8f5b;
  --red-down: #c0392b;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Ticker ---------- */

.ticker-bar {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  padding: 0.5rem 1.5rem;
  animation: ticker-scroll 38s linear infinite;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-item .metal {
  color: var(--gold-light);
  font-weight: 600;
}

.ticker-item .change.up { color: #6fcf97; }
.ticker-item .change.down { color: #ff8a80; }

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--stone-light);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-up);
  display: inline-block;
}

/* ---------- Header / nav ---------- */

header.site-header {
  background: var(--white);
  border-bottom: 1px solid #e7e2d6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.logo span {
  color: var(--gold);
}

nav.main-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-quick {
  font-size: 0.85rem;
  color: var(--stone);
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.3;
}

.contact-quick strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1c3a66 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p.lead {
  font-size: 1.05rem;
  color: #c9d2e3;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-coin-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coin {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light) 0%, var(--gold) 45%, #8c6d12 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 6px rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
}

.coin.coin-back {
  position: absolute;
  top: 30px;
  left: -60px;
  width: 190px;
  height: 190px;
  opacity: 0.55;
  z-index: -1;
}

.coin-label {
  border: 2px solid var(--navy);
  border-radius: 50%;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ---------- General sections ---------- */

.section {
  padding: 4.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 880px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--stone);
  max-width: 620px;
  margin: 0 auto;
}

.bg-cream {
  background: var(--cream);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid #e7e2d6;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
  border-color: var(--gold);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--stone);
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid #e7e2d6;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.1);
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream) 0%, #ede5d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image .coin {
  width: 100px;
  height: 100px;
  font-size: 0.6rem;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.product-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--stone);
  margin-bottom: 0.8rem;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed #e7e2d6;
  padding-top: 0.7rem;
}

.product-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.product-price .label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  position: relative;
  padding-left: 0.2rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--stone);
}

/* ---------- Tables ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid #e7e2d6;
  border-radius: 8px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-size: 0.92rem;
}

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

.price-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.price-table td.price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
}

.price-table td.muted {
  color: var(--stone-light);
  font-size: 0.85rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy);
  color: var(--cream);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  right: -5%;
  top: -40%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: #c9d2e3;
  position: relative;
  z-index: 1;
}

.cta-banner .cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid #e7e2d6;
  border-radius: 10px;
  padding: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #d8d2c2;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--navy);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: #c9d2e3;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-inner h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-inner .logo {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-inner p {
  font-size: 0.88rem;
  color: #9fb0cc;
}

.footer-inner ul {
  list-style: none;
}

.footer-inner ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-inner ul li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: #7e8fb0;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header .section-eyebrow {
  color: var(--gold-light);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #c9d2e3;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Map / locations ---------- */

.location-card {
  background: var(--white);
  border: 1px solid #e7e2d6;
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
}

.location-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  width: fit-content;
}

.location-card .meta {
  font-size: 0.88rem;
  color: var(--stone);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3.5rem 1.5rem 4rem;
  }
  .hero p.lead { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .feature-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  nav.main-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .price-table {
    font-size: 0.85rem;
  }
  .price-table th, .price-table td {
    padding: 0.6rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
