/* ============================================================
   FUNDO MARANATHA — style.css
   Estilos globales compartidos por todas las páginas
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F7F3EE; --dark: #1A1410; --brown: #3D2B1F;
  --cocoa: #7B4F2E; --gold: #C49A3C; --light-brown: #D4A97A;
  --text-muted: #6B5B51; --border: #E8DDD4;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--dark); overflow-x: hidden; }

/* ── NAV ─────────────────────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 4rem; background: rgba(247,243,238,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: padding 0.3s; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--brown); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-social { display: flex; gap: 0.6rem; align-items: center; }
.nav-social a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--brown); transition: color 0.2s; }
.nav-social a:hover { color: var(--gold); }
.nav-social svg { width: 15px; height: 15px; }

/* ── LANG SWITCHER ───────────────────────────────────────── */
.lang-switcher { display: flex; border: 1.5px solid var(--border); border-radius: 2px; overflow: hidden; }
.lang-btn { background: none; border: none; padding: 0.35rem 0.65rem; font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.lang-btn.active { background: var(--brown); color: var(--cream); }
.lang-btn:not(.active):hover { background: var(--border); }

.nav-cta { background: var(--brown); color: var(--cream) !important; padding: 0.55rem 1.4rem; border-radius: 2px; text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s; }
.nav-cta:hover { background: var(--cocoa); }

/* ── HAMBURGER MOBILE MENU ───────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--brown); border-radius: 1px; transition: all 0.3s; }
.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(247,243,238,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.nav-mobile.open { display: block; }
.nav-mobile-links { list-style: none; }
.nav-mobile-links li a { display: block; padding: 0.85rem 0; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--border); }
.nav-mobile-links li:last-child a { border-bottom: none; }
.nav-mobile-links li a:hover { color: var(--gold); }

/* ── HERO ────────────────────────────────────────────────── */
#hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 80px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 6rem 4rem 6rem 5rem; }
.hero-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 4vw, 4.2rem); line-height: 1.08; color: var(--brown); margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--cocoa); }
.hero-subtitle { font-size: 1rem; line-height: 1.7; color: var(--text-muted); max-width: 420px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--brown); color: var(--cream); padding: 0.85rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; border-radius: 2px; transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--cocoa); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--brown); color: var(--brown); padding: 0.85rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; border-radius: 2px; transition: all 0.2s; }
.btn-secondary:hover { background: var(--brown); color: var(--cream); }
.hero-stats { display: flex; gap: 3rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--brown); display: block; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hero-visual { position: relative; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(61,43,31,0.15) 0%, transparent 60%); }
.hero-badge { position: absolute; bottom: 2.5rem; left: 2.5rem; background: rgba(247,243,238,0.95); backdrop-filter: blur(8px); padding: 1rem 1.5rem; border-left: 3px solid var(--gold); max-width: 220px; }
.hero-badge p { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--brown); line-height: 1.4; }
.hero-badge small { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ── COMMONS ─────────────────────────────────────────────── */
section { padding: 7rem 5rem; }
.section-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3vw, 3rem); color: var(--brown); line-height: 1.15; margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--cocoa); }
.divider { width: 48px; height: 2px; background: var(--gold); margin-bottom: 2rem; }

/* ── NOSOTROS ────────────────────────────────────────────── */
#nosotros { background: white; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.nosotros-images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px; gap: 12px; }
.nosotros-images img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-tall { grid-row: 1 / 3; }
.nosotros-text p { font-size: 0.97rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 1rem; }
.values-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.values-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; font-weight: 500; color: var(--brown); }
.values-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── PRODUCTOS ───────────────────────────────────────────── */
#productos { background: var(--cream); }
.productos-header { margin-bottom: 3.5rem; }
.productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.producto-card { background: white; border: 1px solid var(--border); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.producto-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(61,43,31,0.1); }
.producto-img { height: 220px; overflow: hidden; }
.producto-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.producto-card:hover .producto-img img { transform: scale(1.05); }
.producto-info { padding: 1.5rem; }
.producto-info h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); margin-bottom: 0.5rem; }
.producto-info p { font-size: 0.82rem; line-height: 1.65; color: var(--text-muted); }
.producto-tag { display: inline-block; margin-top: 1rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-top: 1px solid var(--border); padding-top: 0.75rem; width: 100%; }

/* ── GALERÍA ─────────────────────────────────────────────── */
#galeria { background: var(--dark); padding: 7rem 5rem; }
#galeria .section-tag { color: var(--light-brown); }
#galeria .section-title { color: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 3rem; }
.gallery-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(360px, 360px) minmax(180px, 1fr); gap: 1rem; align-items: start; margin-top: 2.5rem; }
.gallery-column { display: grid; gap: 1rem; }
.gallery-feature { display: flex; justify-content: center; }
.gallery-item { overflow: hidden; height: 200px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.88) saturate(0.9); transition: transform 0.5s, filter 0.4s; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.1); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; height: 408px; }
.gallery-video { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: #000; }
.gallery-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── CONTACTO ────────────────────────────────────────────── */
#contacto { background: white; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.contacto-img { height: 540px; overflow: hidden; background: #2a2a2a; border-radius: 4px; }
.contacto-img video, .contacto-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contacto-info p { font-size: 0.97rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 2.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.contact-item:hover { border-color: var(--gold); background: #fdf8f2; transform: translateY(-1px); }
.contact-icon { width: 44px; height: 44px; background: var(--cream); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; }
.contact-item-text strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact-item-text span { font-size: 0.95rem; color: var(--brown); font-weight: 500; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border: 1.5px solid var(--border); text-decoration: none; font-size: 0.78rem; font-weight: 500; color: var(--brown); border-radius: 2px; transition: all 0.2s; }
.social-btn:hover { border-color: var(--gold); background: #fdf9f4; }
.social-btn svg { width: 14px; height: 14px; }
.order-box { display: grid; gap: 1rem; padding: 1.4rem 1.35rem; border-radius: 18px; background: #fffdf7; border: 1px solid rgba(61,43,31,0.12); box-shadow: 0 24px 50px rgba(61,43,31,0.08); }
.order-box-header { display: flex; align-items: center; gap: 0.85rem; }
.order-box-header svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(61,43,31,0.06); color: var(--brown); flex-shrink: 0; }
.order-box-title { font-size: 1rem; font-weight: 700; color: var(--brown); }
.order-box-copy { font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); }
.order-box-action { margin-top: 0.25rem; }
.order-box-action .btn-primary { width: 100%; justify-content: center; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--dark); color: var(--cream); padding: 3rem 5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cream); }
.footer-logo span { color: var(--gold); }
.footer-sub { font-size: 0.75rem; color: rgba(247,243,238,0.4); margin-top: 0.3rem; letter-spacing: 0.08em; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: rgba(247,243,238,0.6); transition: color 0.2s, border-color 0.2s; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; }
footer p { font-size: 0.75rem; color: rgba(247,243,238,0.4); }

/* ── WHATSAPP FLOTANTE ───────────────────────────────────── */
.wa-float { position: fixed; bottom: 25px; right: 25px; width: 55px; height: 55px; background-color: #25D366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.25); z-index: 1000; transition: transform 0.3s ease; }
.wa-float:hover { transform: scale(1.1); }

/* ── RESPONSIVE (≤900px) ─────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.2rem; }
  .nav-hamburger { display: flex; }
  .nav-links, .nav-social { display: none; }
  .nav-logo { font-size: 1.1rem; }
  .nav-cta { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
  .lang-btn { padding: 0.35rem 0.5rem; font-size: 0.65rem; }

  #hero { grid-template-columns: 1fr; }
  .hero-text { padding: 4rem 1.5rem 3rem; }
  .hero-visual { height: 55vw; min-height: 280px; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

  #nosotros { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2.5rem; }
  .nosotros-images { grid-template-rows: 200px 200px; }

  section { padding: 4rem 1.5rem; }
  .productos-grid { grid-template-columns: 1fr; }

  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-feature { order: -1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; height: 200px; }
  .gallery-video { width: 100%; max-width: none; height: auto; aspect-ratio: 9 / 16; }
  #galeria { padding: 4rem 1.5rem; }

  #contacto { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2rem; }
  .contacto-img { height: 280px; }

  footer { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
  .footer-social { justify-content: center; }

  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}
