/* ============================================
   GLOBAL CSS — D'Reyes Delicias
   Used on every public page
   ============================================ */

/* ── Variables ───────────────────────────────────────────────────────────────── */
:root {
  --gold:          #C9A227;
  --gold-light:    #E8C547;
  --gold-dark:     #A07A10;
  --gold-glow:     rgba(201, 162, 39, 0.25);
  --gold-dim:      rgba(201, 162, 39, 0.08);
  --gold-border:   rgba(201, 162, 39, 0.25);

  --bg-primary:    #080808;
  --bg-secondary:  #0f0f0f;
  --bg-card:       #141414;
  --bg-elevated:   #1c1c1c;
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  --cream:         #FBF7F0;
  --cream-dark:    #F0E8D5;

  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted:     rgba(255, 255, 255, 0.3);
  --text-dark:      #111111;
  --text-dark-2:    #444444;

  --success: #22C55E;
  --error:   #EF4444;
  --warning: #F59E0B;

  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;

  --nav-h:          70px;
  --bottom-nav-h:   72px;
  --page-px:        20px;
  --section-py:     80px;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;
  --radius-full: 9999px;

  --shadow-gold:  0 0 40px rgba(201, 162, 39, 0.18);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:    0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.3);

  --t-fast:   0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow:   0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

input, textarea, select {
  font-family: var(--font-sans);
}

/* ── Typography ───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }

.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-secondary); }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Buttons ───────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--t-normal);
  white-space: nowrap;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.06);
}

.btn-primary {
  background: var(--gold);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 10px 20px;
}

.btn-ghost:hover {
  background: var(--gold-dim);
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 36px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
  min-height: 56px;
}

/* ── Inputs & Forms ───────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  outline: none;
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-border);
}

/* ── Container ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.section {
  padding: 64px 0;
}

/* ── Section headings ─────────────────────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading .section-label {
  display: block;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--text-primary);
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Modals ───────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal-backdrop, 1040);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-slow);
  overflow: hidden;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--t-fast);
}

.modal-close-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px 24px;
}

/* ── Toast ───────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 40px);
  max-width: 360px;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  animation: toastIn 0.3s var(--t-slow) forwards;
  pointer-events: all;
}

.toast.success { border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
.toast.error   { border-color: rgba(239, 68, 68, 0.4);  color: #fca5a5; }
.toast.info    { border-color: var(--gold-border); color: var(--gold-light); }

.toast.removing {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0);    } to { opacity: 0; transform: translateY(12px); } }

/* ── Animations ───────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Utility ───────────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }
.w-full      { width: 100%; }

.gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Desktop overrides ────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --page-px: 40px;
    --bottom-nav-h: 0px;
  }

  .toast-container {
    bottom: 24px;
    left: auto;
    right: 24px;
    transform: none;
  }

  .section {
    padding: var(--section-py) 0;
  }
}

/* ── Accessibility ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #070707;
  padding-bottom: var(--bottom-nav-h, 0px);
  position: relative;
  margin-top: 60px;
}

.site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.45;
}

/* Top: centered logo only */
.footer-top {
  padding: 52px var(--page-px, 24px) 44px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(201,162,39,0.4));
  display: block;
}

/* Columns */
.footer-cols-wrap {
  padding: 52px var(--page-px, 24px) 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 28px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col-list a,
.footer-col-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.18s;
  line-height: 1.3;
}

.footer-col-list a:hover { color: var(--text-primary); }

/* Info column extras */
.footer-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-payments li,
.footer-langs li,
.footer-langs a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}

.footer-langs a { text-decoration: none; transition: color 0.18s; }
.footer-langs a:hover { color: var(--text-primary); }

.footer-pay-icon { font-size: 15px; line-height: 1; }

/* Events column */
.footer-events-text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-events-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.18s;
}

.footer-events-cta:hover { opacity: 0.72; }

/* Bottom bar */
.footer-bottom {
  padding: 22px var(--page-px, 24px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.footer-bottom-inner a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-bottom-inner a:hover { opacity: 0.72; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .footer-top-inner  { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-cols       { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

