/* ============================================================
   COCINERO NOMADA — Landing Page Styles
   Brand: black #0f0d0b, red #b83220, orange #d4622a,
          gold #c9973f, cream #e8dcc8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

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

:root {
  --black: #0f0d0b;
  --dark-brown: #1a1612;
  --mid-brown: #211d18;
  --border: #2e2820;
  --border-strong: #3d362c;
  --red: #b83220;
  --red-hover: #cf3a24;
  --orange: #d4622a;
  --gold: #c9973f;
  --cream: #e8dcc8;
  --text-soft: #b8a898;
  --text-mid: #a09888;
  --muted: #8b7f71;
  --pr: #b83220;
  --usa: #6890ac;
  --col: #c9973f;
  --ecu: #7d6de0;
  --peru: #d4622a;
  --mex: #5a8f72;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --t-fast: 0.2s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-card: 0 10px 30px -12px rgba(0,0,0,0.55);
  --shadow-glow-gold: 0 0 0 1px rgba(201,151,63,0.25), 0 18px 40px -16px rgba(201,151,63,0.25);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

::selection { background: rgba(201,151,63,0.35); color: var(--cream); }

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Global scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; border: 2px solid var(--black); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Image protection */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--orange); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible, .btn:focus-visible, .filter-btn:focus-visible, .nav-cta:focus-visible {
  outline-offset: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 13, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
  transition: background var(--t-base), border-color var(--t-base), padding var(--t-base);
}
.nav.scrolled {
  background: rgba(15, 13, 11, 0.92);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; }
.nav-logo span { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--cream); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-soft); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; transition: color var(--t-fast); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--t-base);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--red); color: var(--cream) !important;
  padding: 8px 20px; border-radius: var(--radius-md); font-weight: 600;
  transition: background var(--t-base), transform var(--t-base);
}
.nav-cta:hover { background: var(--red-hover); color: var(--cream) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: none; color: var(--cream);
  font-size: 1.5rem; cursor: pointer;
  padding: 6px 10px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--mid-brown); }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/COCINERO_NOMADA/COCINERO-NOMADA-WALLPAPER-UNO.png') center/cover;
  opacity: 0.12;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,13,11,0.4) 0%, var(--black) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-logo { display: block; width: 180px; margin: 0 auto 32px; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5)); }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--gold); font-style: italic; }
.hero .subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-soft); margin: 0 auto 16px;
  font-style: italic;
  max-width: 560px;
  line-height: 1.6;
}
.hero .stats-line {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.hero .stats-line strong { color: var(--cream); font-weight: 700; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  min-height: 48px;
}
.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-hover); color: var(--cream); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(184,50,32,0.6); }
.btn-secondary {
  background: transparent; color: var(--cream);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---- ROUTE MAP ---- */
.route-bar {
  background: var(--dark-brown); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.route-bar::-webkit-scrollbar { display: none; }
.route-stops {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  min-width: max-content;
  padding: 0 4px;
}
.route-stop {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
}
.route-dot {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.route-arrow { color: var(--muted); font-size: 0.8rem; }

/* ---- BLOG SECTION ---- */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
  opacity: 0.7;
}
.section-header p { color: var(--text-soft); max-width: 600px; margin: 0 auto; }

/* Blog filters */
.blog-filters {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--dark-brown); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--cream); background: var(--mid-brown); }
.filter-btn.active {
  border-color: var(--gold); color: var(--cream);
  background: rgba(201,151,63,0.12);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
@keyframes cn-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.blog-grid .blog-card {
  animation: cn-fade-up 0.5s ease both;
}
.blog-grid .blog-card:nth-child(2) { animation-delay: 0.05s; }
.blog-grid .blog-card:nth-child(3) { animation-delay: 0.1s; }
.blog-grid .blog-card:nth-child(4) { animation-delay: 0.15s; }
.blog-grid .blog-card:nth-child(5) { animation-delay: 0.2s; }
.blog-grid .blog-card:nth-child(6) { animation-delay: 0.25s; }
.blog-card {
  background: var(--dark-brown); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--t-slow), transform var(--t-slow), box-shadow var(--t-slow), background var(--t-slow);
  cursor: pointer;
  display: flex; flex-direction: column;
  position: relative;
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-gold);
  background: var(--mid-brown);
}
.blog-card-type {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-sm); margin-bottom: 14px;
}
.blog-card-type.chapter { background: rgba(232,220,200,0.08); color: var(--cream); border: 1px solid rgba(232,220,200,0.18); }
.blog-card-type.recipe { background: rgba(212,98,42,0.14); color: var(--orange); border: 1px solid rgba(212,98,42,0.3); }
.blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3;
  color: var(--cream);
}
.blog-card-meta {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 12px;
  display: flex; gap: 12px; align-items: center;
  letter-spacing: 0.02em;
}
.blog-card-meta span:first-child { font-weight: 600; }
.blog-card p {
  font-size: 0.92rem; color: var(--text-soft); line-height: 1.65;
  margin-bottom: auto;
}
.blog-card-tags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.blog-card-tags span {
  font-size: 0.7rem; color: var(--text-soft); background: var(--mid-brown);
  padding: 4px 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.blog-more {
  text-align: center; margin-top: 40px;
}

/* ---- NEWSLETTER SECTION ---- */
.newsletter-section {
  background: var(--dark-brown); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.newsletter-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.newsletter-info p { color: var(--text-soft); margin-bottom: 8px; }
.newsletter-info .highlight { color: var(--gold); font-weight: 500; }
.newsletter-form { display: flex; flex-direction: column; gap: 14px; }
.newsletter-form input {
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--mid-brown); border: 1px solid var(--border);
  color: var(--cream); font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 48px;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:hover { border-color: var(--border-strong); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: var(--dark-brown); }

/* ---- EVENTS SECTION ---- */
.events-section {
  background: var(--black); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.events-content {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: start;
}
.events-badge {
  display: inline-block;
  background: rgba(212,98,42,0.14); color: var(--orange);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 18px;
  border: 1px solid rgba(212,98,42,0.3);
}
.events-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2; margin-bottom: 16px; color: var(--cream);
}
.events-info p { color: var(--text-soft); margin-bottom: 10px; }
.events-info .highlight { color: var(--gold); font-weight: 500; }
.events-list { list-style: none; padding: 0; margin: 18px 0 0; }
.events-list li {
  padding: 6px 0 6px 22px; position: relative;
  color: var(--text-soft); font-size: 0.95rem;
}
.events-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--gold);
}
.events-form select,
.events-form textarea {
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--mid-brown); border: 1px solid var(--border);
  color: var(--cream); font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 48px;
}
.events-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat; padding-right: 40px;
}
.events-form select:hover,
.events-form textarea:hover { border-color: var(--border-strong); }
.events-form select:focus,
.events-form textarea:focus { outline: none; border-color: var(--gold); background-color: var(--dark-brown); }
.events-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.events-form textarea::placeholder { color: var(--muted); }
.events-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.events-form input[type="date"] { color-scheme: dark; }

/* ---- STORE SECTION ---- */
.store-section {
  position: relative; text-align: center; overflow: hidden;
}
.store-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/COCINERO_NOMADA/COCINERO-NOMADA-PALMS-PATTERN-BLACK.png') center/400px repeat;
  opacity: 0.04;
}
.store-content { position: relative; z-index: 2; }
.store-badge {
  display: inline-block; background: rgba(201,151,63,0.15);
  color: var(--gold); padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
  border: 1px solid rgba(201,151,63,0.25);
}
.store-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.store-content p { color: var(--text-soft); max-width: 500px; margin: 0 auto 32px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark-brown); border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand img { height: 50px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-soft); font-size: 0.88rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  color: var(--cream); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 16px; font-weight: 700;
}
.footer-col a { display: block; color: var(--text-soft); font-size: 0.85rem; margin-bottom: 10px; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 1rem; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,13,11,0.92); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--dark-brown); border: 1px solid var(--border);
  border-radius: var(--radius-xl); max-width: 720px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: clamp(24px, 4vw, 40px);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.modal::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.modal-close {
  float: right; background: none; border: none;
  color: var(--muted); font-size: 1.6rem; cursor: pointer;
  line-height: 1; padding: 4px 10px; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.modal-close:hover { color: var(--cream); background: var(--mid-brown); }
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 8px;
}
.modal-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.modal-body { line-height: 1.8; }
.modal-body p { margin-bottom: 16px; color: var(--text-soft); }

/* Recipe in modal */
.recipe-details { margin-top: 24px; }
.recipe-details h3 {
  font-size: 1rem; font-weight: 600; color: var(--gold);
  margin-bottom: 12px;
}
.recipe-meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.recipe-meta-item {
  background: var(--mid-brown); padding: 12px; border-radius: 8px;
  text-align: center;
}
.recipe-meta-item .label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.recipe-meta-item .value { font-size: 0.9rem; font-weight: 600; }
.recipe-details ul, .recipe-details ol { padding-left: 20px; margin-bottom: 16px; }
.recipe-details li { margin-bottom: 8px; color: var(--text-soft); font-size: 0.9rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(15,13,11,0.98); padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .nav-links.open a { font-size: 1rem; padding: 6px 0; }
  .nav-links.open .nav-cta { align-self: flex-start; padding: 10px 22px; }
  .nav-toggle { display: block; }
  .hero { min-height: 88vh; padding: 100px 20px 60px; }
  .hero-logo { display: block; width: 130px; margin: 0 auto 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 24px; }
  .newsletter-content { grid-template-columns: 1fr; gap: 32px; }
  .events-content { grid-template-columns: 1fr; gap: 32px; }
  .events-form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .route-stops { gap: 10px; justify-content: flex-start; }
  .route-stop { font-size: 0.78rem; }
  .section-header { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .blog-filters { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 0.8rem; }
  .modal { border-radius: var(--radius-lg); }
}
