/* =========================================
   ECUADOR VIVO — styles.css
   Estética editorial andina · facturasecuador.com
   ========================================= */

/* ---- VARIABLES ---- */
:root {
  --amber:    #D4860A;
  --amber-lt: #F5A623;
  --green:    #2C5F2E;
  --green-lt: #4A8C4C;
  --cream:    #FAF6EE;
  --ivory:    #F2EBD9;
  --coal:     #1A1612;
  --charcoal: #2D2520;
  --muted:    #7A6C5D;
  --white:    #FFFFFF;
  --red:      #C0392B;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Syne', sans-serif;
  --font-body:    'Crimson Text', Georgia, serif;

  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 40px rgba(26,22,18,0.12);
  --shadow-lg: 0 20px 80px rgba(26,22,18,0.2);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--coal);
  overflow-x: hidden;
  cursor: default;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,134,10,0.15);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(26,22,18,0.1);
  background: rgba(250, 246, 238, 0.98);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  font-size: 18px;
  color: var(--amber);
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--coal);
  display: block;
  line-height: 1;
}
.brand-name em {
  color: var(--amber);
  font-style: italic;
}
.brand-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }

.nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--ivory); color: var(--amber); }
.nav-link .arrow {
  font-size: 10px;
  transition: transform var(--transition);
  color: var(--muted);
}
.nav-item.has-submenu:hover .arrow { transform: rotate(180deg); }

/* CTA button in nav */
.nav-cta {
  background: var(--amber);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 100px;
}
.nav-cta:hover { background: var(--charcoal) !important; color: var(--white) !important; }

/* ---- SUBMENU ---- */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid rgba(212,134,10,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  min-width: 600px;
}
.submenu-small {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.submenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.submenu-col { display: flex; flex-direction: column; gap: 4px; }
.submenu-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.submenu-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 6px 10px;
  border-radius: 8px;
  display: block;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.submenu-link:hover {
  background: var(--ivory);
  color: var(--amber);
  transform: translateX(4px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--coal);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  max-width: 520px;
  animation: fadeUp 1s ease both;
}

.carousel-wrapper {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 580px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.shape-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #D4860A55, transparent);
  top: -200px; right: -200px;
  animation: float1 12s ease-in-out infinite;
}
.shape-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2C5F2E44, transparent);
  bottom: -100px; left: -100px;
  animation: float2 14s ease-in-out infinite;
}
.shape-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #F5A62333, transparent);
  top: 40%; left: 40%;
  animation: float1 10s ease-in-out infinite reverse;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.05); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,20px) scale(1.08); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--amber);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.0;
  color: var(--coal);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-desc {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 44px;
  max-width: 480px;
}

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

/* Hero badge */
.hero-badge {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--coal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  animation: fadeUp 1s 0.4s ease both, badge-rotate 20s linear infinite;
  z-index: 2;
}
.hero-badge span:first-child {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--amber-lt);
  line-height: 1;
}
.badge-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
@keyframes badge-rotate {
  0%   { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}
.hero-badge:hover { animation-play-state: paused; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(var(--amber), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(0.7); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--coal);
  border-color: var(--coal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,134,10,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--coal);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--coal);
  color: var(--white);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212,134,10,0.1);
  border: 1px solid rgba(212,134,10,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.tag-light {
  color: var(--amber-lt);
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.25);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--coal);
  margin-bottom: 20px;
}
.section-title em { color: var(--amber); font-style: italic; }
.section-title.light { color: var(--white); }
.section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
}
.section-desc.light { color: rgba(255,255,255,0.6); }

/* =========================================
   CARDS — DESTINOS
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.card-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,22,18,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.5), transparent 60%);
}

.card-large .card-img { height: 380px; }
.card .card-img         { height: 200px; }

/* Card img backgrounds — vivid gradient placeholders */
.card-img-sierra {
  background: linear-gradient(135deg, #3a7c3e 0%, #1a4a1c 40%, #8B7355 80%, #D4860A 100%);
}
.card-img-sierra::before {
  content: '🏔';
  font-size: 80px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
.card-img-costa {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 50%, #F5A623 100%);
}
.card-img-costa::before { content: '🌊'; font-size: 60px; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; }
.card-img-amazonia {
  background: linear-gradient(135deg, #1B4D3E 0%, #2E8B57 50%, #90EE90 100%);
}
.card-img-amazonia::before { content: '🌿'; font-size: 60px; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; }
.card-img-galapagos {
  background: linear-gradient(135deg, #006994 0%, #00A8CC 50%, #7ECBB5 100%);
}
.card-img-galapagos::before { content: '🐢'; font-size: 60px; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; }

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--coal);
  margin-bottom: 12px;
}
.card-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
}
.card-spots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.card-spots span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  background: var(--ivory);
  color: var(--charcoal);
  padding: 4px 12px;
  border-radius: 100px;
}
.card-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  transition: gap var(--transition);
}
.card-link:hover { gap: 8px; }

/* =========================================
   STATS BANNER
   ========================================= */
.stats-banner {
  background: var(--amber);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.stat-divider {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   FOOD GRID
   ========================================= */
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.food-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.food-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(212,134,10,0.4);
  transform: translateY(-4px);
}
.food-emoji {
  font-size: 36px;
  flex-shrink: 0;
  line-height: 1;
}
.food-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.food-info p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.food-region {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-lt);
  background: rgba(212,134,10,0.15);
  border: 1px solid rgba(212,134,10,0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

/* =========================================
   CULTURA
   ========================================= */
.cultura-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cultura-text h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--coal);
  margin-bottom: 20px;
}
.cultura-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
}
.cultura-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.cultura-list li {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 10px 14px;
  background: var(--ivory);
  border-radius: 10px;
  border-left: 3px solid var(--amber);
}

.cultura-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.visual-block {
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 36px;
  transition: transform var(--transition);
  cursor: default;
}
.visual-block:hover { transform: scale(1.04); }
.visual-block span {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: inherit;
}
.vb-1 { background: var(--coal); color: var(--amber-lt); }
.vb-2 { background: var(--amber); color: var(--white); }
.vb-3 { background: var(--green); color: rgba(255,255,255,0.9); }
.vb-4 { background: var(--ivory); color: var(--coal); border: 2px solid var(--amber); }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, #1A4A1C 50%, var(--coal) 100%);
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; z-index: 1; }
.cta-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.cta-title em { color: var(--amber-lt); font-style: italic; }
.cta-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--coal);
  padding: 60px 40px 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 20px;
}
.footer .brand-name { color: var(--white); }
.footer .brand-sub { color: rgba(255,255,255,0.4); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.footer-col a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* =========================================
   CARRUSEL
   ========================================= */
.carousel-section {
  width: 100%;
  background: var(--coal);
  position: relative;
  overflow: hidden;
}

/* Track */
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Slides */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.carousel-slide.exit-left {
  opacity: 0;
  transform: scale(0.97) translateX(-3%);
  z-index: 1;
}
.carousel-slide.exit-right {
  opacity: 0;
  transform: scale(0.97) translateX(3%);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Mientras no exista la imagen real, muestra un gradiente de fondo */
  background: linear-gradient(135deg, #1a4a1c 0%, #D4860A 100%);
}

/* Overlay oscuro sobre la imagen */
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,22,18,0.85) 0%,
    rgba(26,22,18,0.25) 50%,
    rgba(26,22,18,0.1)  100%
  );
  z-index: 1;
}

/* Caption */
.slide-caption {
  position: absolute;
  bottom: 80px;
  left: 60px;
  right: 60px;
  z-index: 3;
  color: var(--white);
  animation: caption-in 0.7s 0.2s ease both;
}
.carousel-slide:not(.active) .slide-caption {
  animation: none;
  opacity: 0;
}
@keyframes caption-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-lt);
  background: rgba(212,134,10,0.2);
  border: 1px solid rgba(212,134,10,0.4);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}

.slide-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.slide-caption p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Botones prev / next */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(250,246,238,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(212,134,10,0.4);
}
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.dot.active {
  background: var(--amber);
  width: 28px;
  border-radius: 4px;
  transform: none;
}
.dot:hover:not(.active) { background: rgba(255,255,255,0.7); transform: scale(1.2); }

/* Barra de progreso */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.carousel-progress-bar {
  height: 100%;
  background: var(--amber);
  width: 0%;
  transition: width linear;
  transform-origin: left;
}

/* Contador */
.carousel-counter {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  background: rgba(26,22,18,0.4);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}
#carouselCurrent {
  color: var(--amber-lt);
  font-size: 15px;
}

/* Responsive carrusel */
@media (max-width: 768px) {
  .carousel-wrapper {
    height: 460px;
    border-radius: var(--radius);
  }
  .slide-caption { left: 20px; right: 20px; bottom: 60px; }
  .slide-caption h3 { font-size: 22px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-btn  { width: 40px; height: 40px; }
  .carousel-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
  .carousel-wrapper { height: 360px; }
  .slide-caption { left: 16px; right: 16px; bottom: 52px; }
  .slide-caption p  { display: none; }
  .slide-caption h3 { font-size: 20px; }
  .carousel-counter { top: 12px; right: 12px; font-size: 11px; padding: 4px 10px; }
}

/* =========================================
   SCROLL REVEAL ANIMATION
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .food-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .card-large { grid-row: auto; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { display: none; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(212,134,10,0.12);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    background: var(--ivory);
    min-width: auto;
    display: none;
    padding: 12px;
    margin-top: 4px;
    border-radius: var(--radius);
  }
  .submenu-grid { grid-template-columns: 1fr; gap: 8px; }
  .nav-item.has-submenu.mobile-open .submenu { display: block; }
  .nav-link { width: 100%; justify-content: space-between; }

  .hero { padding: 100px 20px 40px; flex-direction: column; gap: 32px; align-items: stretch; }
  .hero-title { font-size: 46px; }
  .hero-content { max-width: 100%; }
  .carousel-wrapper { flex: none; width: 100%; height: 460px; border-radius: var(--radius); }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .food-grid { grid-template-columns: 1fr; }
  .cultura-row { grid-template-columns: 1fr; }
  .cultura-visual { display: none; }
  .stats-banner { gap: 24px; padding: 32px 20px; }
  .stat-num { font-size: 36px; }
  .footer { padding: 40px 20px 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-section { padding: 80px 20px; }
}
