/* ============================================================
   LANDING NUXÉTICA — Modo Sepia
   Arquitectura: CERO CSS inline, CERO <style> en HTML
   Variables consistentes con admin_panel.css del Cotizador
   ============================================================ */

:root {
  --bg-primary:        #fdf3e0;
  --bg-secondary:      #f5f0e8;
  --bg-tertiary:       #ede8df;
  --text-primary:      #402203;
  --text-secondary:    #5c3a21;
  --text-muted:        #7a6050;
  --accent-primary:    #8b4513;
  --accent-hover:      #a0522d;
  --accent-light:      #c8926a;
  --border-color:      #c8b89a;
  --border-subtle:     #d8cbb5;
  --shadow-soft:       0 2px 8px rgba(139, 69, 19, 0.08);
  --shadow-medium:     0 4px 20px rgba(139, 69, 19, 0.13);
  --shadow-lift:       0 8px 32px rgba(139, 69, 19, 0.18);
  --radius-sm:         6px;
  --radius-md:         10px;
  --radius-lg:         16px;
  --radius-xl:         24px;
  --max-width:         1100px;
}

/* ── Reset base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar-sepia {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 24px;
  line-height: 1;
}

.navbar-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.footer-logo {
  height: 28px;
  max-height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.navbar-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: var(--accent-primary);
}

/* ══════════════════════════════════════
   BOTONES GLOBALES
══════════════════════════════════════ */
.btn-primary-sepia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background-color: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--accent-primary);
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-primary-sepia:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-sepia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--accent-primary);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-outline-sepia:hover {
  background-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero-section {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 24px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  min-height: 480px;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual / badge decorativo */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge {
  width: 160px;
  height: 160px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  color: #fff;
}

.badge-number {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.badge-label {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
  line-height: 1.3;
}

/* ══════════════════════════════════════
   SECCIÓN PRODUCTOS
══════════════════════════════════════ */
.productos-section {
  padding: 72px 24px;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Grid de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.producto-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-soft);
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-primary);
}

.producto-icono {
  font-size: 36px;
  line-height: 1;
}

.producto-info {
  flex: 1;
}

.producto-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.producto-nombre {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.producto-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.producto-link-arrow {
  font-size: 22px;
  color: var(--accent-primary);
  align-self: flex-end;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-4px);
}

.producto-card:hover .producto-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════
   SECCIÓN NOSOTROS
══════════════════════════════════════ */
.nosotros-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 72px 24px;
}

.nosotros-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.nosotros-texto {
  flex: 1.2;
}

.nosotros-parrafo {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 4px;
}

.nosotros-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-numero {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Card decorativa */
.nosotros-imagen {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.nosotros-card-decorativa {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 320px;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.nosotros-card-decorativa::before {
  content: '"';
  font-size: 96px;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 0.8;
  position: absolute;
  top: 20px;
  left: 24px;
  opacity: 0.35;
}

.decorativa-quote {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.decorativa-firma {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-align: right;
}

/* ══════════════════════════════════════
   SECCIÓN CONTACTO
══════════════════════════════════════ */
.contacto-section {
  padding: 72px 24px;
  text-align: center;
  background-color: var(--bg-secondary);
}

.contacto-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contacto-subtitulo {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contacto-acciones {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer-sepia {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 36px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-marca {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section {
    flex-direction: column;
    padding: 52px 20px 48px;
    gap: 36px;
    min-height: unset;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-badge {
    width: 120px;
    height: 120px;
  }

  .badge-number {
    font-size: 40px;
  }

  .nosotros-inner {
    flex-direction: column;
    gap: 40px;
  }

  .nosotros-imagen {
    width: 100%;
  }

  .nosotros-card-decorativa {
    max-width: 100%;
  }

  .nosotros-stats {
    justify-content: center;
  }

  .productos-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .btn-primary-sepia,
  .btn-outline-sepia {
    width: 100%;
    justify-content: center;
  }

  .contacto-acciones {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}
