/* ============================================================
   La Familia Chiquita — Estilos globales
   Estética: monocromo masculino moderno + acento ámbar.
   Inspiración: Mott & Bow, Mack Weldon, Bonobos.
   ============================================================ */

/* ---------- Paleta y tokens ---------- */
:root {
  /* Escala monocromo */
  --lfc-black:      #0a0a0a;
  --lfc-charcoal:   #1a1a1a;
  --lfc-gray-900:   #262626;
  --lfc-gray-700:   #525252;
  --lfc-gray-500:   #737373;
  --lfc-gray-300:   #d4d4d4;
  --lfc-gray-100:   #f5f5f4;
  --lfc-warm-bg:    #fafaf9;
  --lfc-white:      #ffffff;

  /* Acento (ámbar profundo, sport-luxury) */
  --lfc-amber:      #d97706;
  --lfc-amber-dark: #b45309;

  /* Estados */
  --lfc-success:    #15803d;
  --lfc-error:      #b91c1c;
  --lfc-info:       #0369a1;

  /* Aliases (mantienen compat con clases existentes en vistas) */
  --lfc-primary:        var(--lfc-black);
  --lfc-primary-dark:   var(--lfc-charcoal);
  --lfc-accent:         var(--lfc-amber);
  --lfc-accent-dark:    var(--lfc-amber-dark);
  --lfc-bg:             var(--lfc-warm-bg);
  --lfc-bg-soft:        var(--lfc-gray-100);
  --lfc-gray-light:     var(--lfc-gray-100);
  --lfc-gray:           var(--lfc-gray-500);
  --lfc-text:           var(--lfc-black);
  --lfc-border:         #e5e5e5;

  /* Geometría: más anguloso, menos rounded */
  --lfc-radius:         4px;
  --lfc-radius-lg:      6px;
  --lfc-shadow-sm:      0 1px 2px rgba(10,10,10,.04);
  --lfc-shadow:         0 8px 24px rgba(10,10,10,.06);
  --lfc-shadow-lg:      0 24px 60px rgba(10,10,10,.12);

  --lfc-font-display:   'Space Grotesk','Inter',system-ui,-apple-system,sans-serif;
  --lfc-font:           'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;

  --lfc-header-h:       80px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--lfc-font);
  color: var(--lfc-text);
  background: var(--lfc-warm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--lfc-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lfc-black);
}

a { color: var(--lfc-black); text-decoration: none; }
a:hover { color: var(--lfc-amber); }

/* ---------- Bootstrap overrides ---------- */
.btn { border-radius: var(--lfc-radius); font-weight: 600; }
.btn-primary {
  --bs-btn-bg: var(--lfc-black);
  --bs-btn-border-color: var(--lfc-black);
  --bs-btn-color: var(--lfc-white);
  --bs-btn-hover-bg: var(--lfc-charcoal);
  --bs-btn-hover-border-color: var(--lfc-charcoal);
  --bs-btn-hover-color: var(--lfc-white);
  --bs-btn-active-bg: var(--lfc-charcoal);
  --bs-btn-active-border-color: var(--lfc-charcoal);
  --bs-btn-disabled-bg: var(--lfc-gray-300);
  --bs-btn-disabled-border-color: var(--lfc-gray-300);
}
.btn-accent {
  --bs-btn-color: var(--lfc-white);
  --bs-btn-bg: var(--lfc-amber);
  --bs-btn-border-color: var(--lfc-amber);
  --bs-btn-hover-bg: var(--lfc-amber-dark);
  --bs-btn-hover-border-color: var(--lfc-amber-dark);
  --bs-btn-hover-color: var(--lfc-white);
  --bs-btn-active-bg: var(--lfc-amber-dark);
}
.btn-outline-secondary {
  --bs-btn-color: var(--lfc-black);
  --bs-btn-border-color: var(--lfc-black);
  --bs-btn-hover-bg: var(--lfc-black);
  --bs-btn-hover-border-color: var(--lfc-black);
  --bs-btn-hover-color: var(--lfc-white);
}
.btn-lg {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
}
.text-primary { color: var(--lfc-black) !important; }
.text-accent  { color: var(--lfc-amber) !important; }
.bg-soft      { background: var(--lfc-warm-bg) !important; }

.form-control, .form-select {
  border-color: var(--lfc-border);
  border-radius: var(--lfc-radius);
}
.form-control:focus, .form-select:focus {
  border-color: var(--lfc-black);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}

/* ---------- Eyebrow + section titles (lookbook style) ---------- */
.lfc-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lfc-amber);
  margin-bottom: 0.75rem;
}
.lfc-section-title {
  font-family: var(--lfc-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* ---------- Navbar ---------- */
.lfc-navbar {
  background: var(--lfc-white);
  border-bottom: 1px solid var(--lfc-border);
  min-height: var(--lfc-header-h);
}
.lfc-brand {
  font-family: var(--lfc-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--lfc-black);
  letter-spacing: -0.03em;
}
.lfc-brand:hover { color: var(--lfc-black); }
.lfc-brand .lfc-brand-accent { color: var(--lfc-amber); }
.lfc-nav .nav-link {
  color: var(--lfc-gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  padding: .5rem 1rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color .2s ease;
}
.lfc-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.4rem;
  height: 1px; background: var(--lfc-black);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.lfc-nav .nav-link:hover::after,
.lfc-nav .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.lfc-nav .nav-link:hover, .lfc-nav .nav-link.active { color: var(--lfc-black); }

.lfc-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 0;                /* anguloso */
  background: transparent;
  color: var(--lfc-black);
  border: none;
  font-size: 1.2rem;
  transition: color .2s ease, background .2s ease;
}
.lfc-icon-btn:hover { color: var(--lfc-amber); background: transparent; }
.lfc-cart-badge {
  position: absolute; top: 4px; right: 0px;
  background: var(--lfc-amber);
  color: var(--lfc-white);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  font-family: var(--lfc-font);
}

/* ---------- Hero ---------- */
.lfc-hero {
  background: var(--lfc-black);
  color: var(--lfc-white);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.lfc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,.025) 49% 51%, transparent 51%);
  background-size: 14px 14px;
  pointer-events: none;
}
.lfc-hero .lfc-eyebrow { color: var(--lfc-amber); }
.lfc-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  color: var(--lfc-white);
}
.lfc-hero h1 em { color: var(--lfc-amber); font-style: normal; }
.lfc-hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ---------- Cards / Productos ---------- */
.lfc-card {
  background: var(--lfc-white);
  border: 1px solid var(--lfc-border);
  border-radius: var(--lfc-radius-lg);
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.lfc-product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform .25s ease;
}
.lfc-product-card:hover { transform: translateY(-4px); box-shadow: none; }

.lfc-product-card .lfc-product-img {
  background: var(--lfc-gray-100);
  aspect-ratio: 4 / 5;                /* formato lookbook, más vertical */
  border-radius: var(--lfc-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--lfc-gray-300);
  overflow: hidden;
  position: relative;
}
.lfc-product-card .lfc-product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.lfc-product-card:hover .lfc-product-img img { transform: scale(1.04); }

.lfc-product-card .lfc-product-body { padding: 1rem 0 0.25rem; }
.lfc-product-card .lfc-product-name {
  font-family: var(--lfc-font);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--lfc-black);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.lfc-product-card .lfc-product-price {
  font-family: var(--lfc-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--lfc-black);
  letter-spacing: -0.01em;
}

/* ---------- Bloque de confianza / valores ---------- */
.lfc-trust {
  padding: 5rem 0;
  background: var(--lfc-white);
  border-top: 1px solid var(--lfc-border);
  border-bottom: 1px solid var(--lfc-border);
}
.lfc-trust .item {
  text-align: left;
  padding: 0 1.5rem;
  position: relative;
}
.lfc-trust .item::before {
  content: attr(data-num);
  display: block;
  font-family: var(--lfc-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--lfc-amber);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.lfc-trust .item h5 {
  font-family: var(--lfc-font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.lfc-trust .item p { color: var(--lfc-gray-500); font-size: 0.95rem; margin: 0; }

/* ---------- Footer ---------- */
.lfc-footer {
  background: var(--lfc-black);
  color: rgba(255,255,255,.6);
  padding: 5rem 0 1.5rem;
  margin-top: 5rem;
}
.lfc-footer h5 {
  color: var(--lfc-white);
  font-family: var(--lfc-font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.lfc-footer a { color: rgba(255,255,255,.6); transition: color .2s ease; }
.lfc-footer a:hover { color: var(--lfc-amber); }
.lfc-footer ul { list-style: none; padding: 0; }
.lfc-footer ul li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.lfc-footer .lfc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ---------- Botón flotante WhatsApp (más sutil, anguloso) ---------- */
.lfc-whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  background: var(--lfc-black); color: var(--lfc-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--lfc-shadow-lg);
  z-index: 1030;
  transition: transform .2s ease, background .2s ease;
}
.lfc-whatsapp-fab:hover {
  background: #25d366;
  color: var(--lfc-white);
  transform: scale(1.05);
}

/* ---------- Selector talle / color (detalle producto) ---------- */
.lfc-variant-btn {
  min-width: 56px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--lfc-border);
  background: var(--lfc-white);
  color: var(--lfc-black);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--lfc-radius);
  transition: all .15s ease;
  cursor: pointer;
}
.lfc-variant-btn:hover { border-color: var(--lfc-black); }
.lfc-variant-btn.is-active {
  background: var(--lfc-black);
  border-color: var(--lfc-black);
  color: var(--lfc-white);
}

/* ---------- Flash messages ---------- */
.lfc-flash { border-radius: var(--lfc-radius); border-width: 0; border-left: 4px solid; }
.alert-success.lfc-flash { background: #f0fdf4; color: #15803d; border-left-color: #15803d; }
.alert-danger.lfc-flash  { background: #fef2f2; color: #b91c1c; border-left-color: #b91c1c; }
.alert-warning.lfc-flash { background: #fffbeb; color: #b45309; border-left-color: var(--lfc-amber); }
.alert-info.lfc-flash    { background: #f0f9ff; color: #0369a1; border-left-color: #0369a1; }

/* ============================================================
   LAYOUT ADMIN (intacto en lo funcional, retoques de paleta)
   ============================================================ */
.lfc-admin-body { background: var(--lfc-warm-bg); min-height: 100vh; }

.lfc-admin-sidebar {
  background: var(--lfc-black);
  color: rgba(255,255,255,.7);
  width: 240px;
  min-height: 100vh;
  position: fixed; left: 0; top: 0; bottom: 0;
  padding: 1.5rem 0;
  z-index: 1020;
}
.lfc-admin-sidebar .lfc-admin-brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--lfc-white);
  font-family: var(--lfc-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: block;
}
.lfc-admin-nav { padding: 1rem 0; }
.lfc-admin-nav .lfc-admin-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: all .15s ease;
}
.lfc-admin-nav .lfc-admin-link:hover { background: rgba(255,255,255,.04); color: var(--lfc-white); }
.lfc-admin-nav .lfc-admin-link.active {
  background: rgba(255,255,255,.06);
  color: var(--lfc-white);
  border-left-color: var(--lfc-amber);
}
.lfc-admin-nav .lfc-admin-sep { border-top: 1px solid rgba(255,255,255,.08); margin: 1rem 1.5rem; }

.lfc-admin-main { margin-left: 240px; min-height: 100vh; display: flex; flex-direction: column; }
.lfc-admin-topbar {
  background: var(--lfc-white);
  border-bottom: 1px solid var(--lfc-border);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.lfc-admin-content { padding: 1.5rem; flex: 1; }

@media (max-width: 991.98px) {
  .lfc-admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .lfc-admin-sidebar.is-open { transform: translateX(0); }
  .lfc-admin-main { margin-left: 0; }
  .lfc-admin-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1010; display: none; }
  .lfc-admin-sidebar.is-open + .lfc-admin-overlay { display: block; }
}

/* ---------- Utilidades ---------- */
.lfc-empty { text-align: center; padding: 3rem 1rem; color: var(--lfc-gray-500); }

/* Borrar el border default de los <hr> en footer dark */
hr { border-top: 1px solid var(--lfc-border); opacity: 0.5; }

/* Pequeño ajuste a tablas en admin */
.table > :not(caption) > * > * { padding: 0.85rem 0.75rem; }
.table-light > th { background: var(--lfc-gray-100); font-weight: 600; color: var(--lfc-gray-700); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
