/* ============================================
   LUF LATAM — Estilos principales
   Brand: Negro #000, Dorado #C9A24D, Blanco #FFF
   Fonts: Montserrat (headings), Inter (body)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --black: #000000;
  --gold: #C9A24D;
  --gold-hover: #d4b05e;
  --gold-dark: #a8873d;
  --white: #FFFFFF;
  --grey-dark: #1E1E1E;
  --grey-card: #141414;
  --grey-medium: #2a2a2a;
  --grey-text: #b3b3b3;
  --grey-muted: #888888;
  --grey-light: #E6E6E6;
  --section-dark: #0a0a0a;
  --section-subtle: #0f0f0f;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  color: var(--grey-text);
  line-height: 1.75;
  max-width: 70ch;
}

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 77, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  font-size: 1rem;
  padding: 16px 32px;
}

.btn-submit:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 77, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 77, 0.1);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--grey-text);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: 120px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 30px rgba(0, 0, 0, 0.8), 0 8px 60px rgba(0, 0, 0, 0.6);
}

.hero h1 .highlight {
  color: var(--gold);
  display: block;
  text-shadow: 0 2px 20px rgba(201, 162, 77, 0.3), 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--grey-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-text);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

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

/* --- Stats Section --- */
.stats {
  padding: 80px 0;
  background: var(--grey-dark);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.stat-item:hover {
  background: rgba(201, 162, 77, 0.04);
  transform: translateY(-4px);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(201, 162, 77, 0.2);
}

.stat-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 162, 77, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 77, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(201, 162, 77, 0.08);
}

.stat-item:hover .stat-icon {
  background: rgba(201, 162, 77, 0.18);
  border-color: rgba(201, 162, 77, 0.5);
  box-shadow: 0 0 40px rgba(201, 162, 77, 0.25), 0 0 80px rgba(201, 162, 77, 0.1);
  transform: scale(1.08);
}

.stat-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(201, 162, 77, 0.3));
}

.stat-item:hover .stat-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(201, 162, 77, 0.5));
}

.stat-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--grey-text);
}

/* --- Section shared styles --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark { background: var(--section-dark); }
.section-subtle { background: var(--section-subtle); }
.section-black { background: var(--black); }

.section-with-image {
  position: relative;
  overflow: hidden;
}

.section-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
}

.section-with-image .section-content h2,
.section-with-image .section-content h3 {
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.section-with-image .section-content p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Gold divider between sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.3), transparent);
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* --- Cards --- */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 162, 77, 0.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 162, 77, 0.25);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.card h3 {
  color: var(--white);
}

.card p {
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Glassmorphism variant */
.card-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 77, 0.12);
}

/* --- Benefit list items --- */
.benefit-list {
  display: grid;
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(201, 162, 77, 0.05);
  transform: translateX(4px);
}

.benefit-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 40px;
  opacity: 0.6;
}

.benefit-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-content p {
  font-size: 0.9rem;
  color: var(--grey-text);
}

/* --- Emphasis block --- */
.emphasis-block {
  border-left: 4px solid var(--gold);
  padding: 24px 32px;
  margin: 32px 0;
  background: rgba(201, 162, 77, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.emphasis-block p {
  font-size: 1.1rem;
  color: var(--grey-light);
  font-style: italic;
}

/* --- Priority list --- */
.priority-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 40px;
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(201, 162, 77, 0.08);
  border: 1px solid rgba(201, 162, 77, 0.2);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold);
  transition: var(--transition);
}

.priority-tag:hover {
  background: rgba(201, 162, 77, 0.15);
  border-color: var(--gold);
}

.priority-tag svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}

/* --- News cards --- */
.news-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.news-card:hover {
  border-color: rgba(201, 162, 77, 0.3);
  transform: translateY(-4px);
}

.news-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

.news-card h3 {
  margin-bottom: 12px;
}

.news-card p {
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 0;
  background: var(--grey-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1.5rem;
}

.cta-content p {
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Forms --- */
.form-section {
  padding: var(--section-padding);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 162, 77, 0.03);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.08);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error-msg {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Form feedback toast */
.form-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 200;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
  text-align: center;
}

.form-toast.success {
  background: #1a3a1a;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-toast.error-toast {
  background: #3a1a1a;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.form-toast.visible {
  bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand .gold { color: var(--gold); }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--grey-muted);
  max-width: 300px;
}

.footer-nav h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-text);
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--grey-muted);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--grey-muted);
}

.footer-bottom a {
  color: var(--gold);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* --- Regional Section --- */
.regional-section {
  background: linear-gradient(135deg, var(--grey-dark) 0%, var(--black) 100%);
  padding: var(--section-padding);
  text-align: center;
}

.regional-section .container {
  max-width: 700px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col.reverse { direction: ltr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(201, 162, 77, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--white);
  }

  .nav-toggle { display: flex; }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content { padding-top: 100px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-scroll-indicator { display: none; }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item::after { display: none; }
  .stat-item { border-bottom: 1px solid rgba(201, 162, 77, 0.1); }
  .stat-item:last-child { border-bottom: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  .priority-list { gap: 8px; }
  .priority-tag { font-size: 0.8rem; padding: 8px 16px; }
}

@media (max-width: 480px) {
  .container { width: 92%; }
  .card { padding: 24px 20px; }
  .benefit-item { flex-direction: column; gap: 8px; }
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
