/* ===========================================================
   LyJ Servicios — Sistema visual
   Industrial · limpio · profesional
   =========================================================== */

:root {
  /* Tipografía */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* Color — base neutra cálida (crema del logo) */
  --ink: oklch(0.22 0.012 350);
  --ink-soft: oklch(0.42 0.012 350);
  --muted: oklch(0.56 0.012 350);
  --line: oklch(0.90 0.008 70);
  --line-soft: oklch(0.94 0.006 70);
  --bg: oklch(0.975 0.012 85);
  --surface: oklch(1 0.004 85);
  --surface-2: oklch(0.965 0.012 80);

  /* Marca — colores del logo */
  --primary: oklch(0.26 0.02 350);      /* negro del logo */
  --primary-ink: oklch(0.20 0.02 350);
  --accent: oklch(0.50 0.18 358);       /* frambuesa del techo (tweakable) */
  --accent-ink: oklch(0.43 0.17 358);
  --accent-contrast: #fff;

  --ok: oklch(0.62 0.13 155);

  /* Geometría */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 350 / 0.06), 0 1px 3px oklch(0.3 0.02 350 / 0.05);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 350 / 0.08), 0 2px 4px oklch(0.3 0.02 350 / 0.05);
  --shadow-lg: 0 18px 40px oklch(0.3 0.02 350 / 0.14);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app main { flex: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: none; border-radius: var(--radius); padding: 12px 20px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn-accent:hover { box-shadow: var(--shadow-md); filter: brightness(1.03); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--surface); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* ---------- Marco de imagen universal (resuelve "que las fotos queden bien") ----------
   Toda imagen vive en un contenedor de proporción fija. La foto se recorta con
   object-fit: cover sobre un fondo neutro, así cualquier imagen subida se ve ordenada. */
.imgframe {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.imgframe.square { aspect-ratio: 1 / 1; }
.imgframe.wide { aspect-ratio: 16 / 9; }
.imgframe img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Placeholder intencional (rayas + etiqueta) cuando no hay foto real */
.imgframe.ph {
  background-image:
    repeating-linear-gradient(45deg,
      oklch(0.93 0.012 75) 0 10px,
      oklch(0.965 0.01 80) 10px 20px);
}
.imgframe.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted);
  padding: 12px; text-align: center;
}

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
  background: var(--accent); color: var(--accent-contrast);
}
.badge.eco { background: var(--ok); }
.badge.nuevo { background: var(--primary); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: all .12s ease;
}
.chip:hover { border-color: var(--ink-soft); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.price { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.price .antes { font-weight: 600; font-size: .8em; color: var(--muted); text-decoration: line-through; margin-right: 8px; }

/* utilidades */
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }

/* animaciones suaves al entrar */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes fadeUp { from { transform: translateY(14px); } to { transform: none; } }
}

::selection { background: var(--accent); color: #fff; }
