/* ============================================================
   Canito Skin — Design tokens (fuente de verdad)
   ============================================================
   Paleta oficial del manual de marca (no alterar / no agregar
   colores de marca sin aprobación):
     --canito-oliva  #5b5f51  principal
     --canito-taupe  #bdb6a3  secundario
     --canito-crema  #f7f4f0  neutro claro
     --canito-carbon #341f19  acento oscuro

   Tipografía:
     - Wordmark "canito" → siempre asset SVG/PNG (nunca web font)
     - Display (H1/H2 sección) → Poppins Black, MAYÚSCULAS
     - Serif detalles → placeholder hasta .ttf oficial
     - Cuerpo → Poppins Regular/Medium (pendiente archivos;
       mientras tanto fallback geométrico)

   Bridge Nexo: --accent / --business-accent apuntan a la marca
   fija (un solo negocio). No hay accent por tenant.
   ============================================================ */

/* Poppins Black — display (archivo entregado por marca) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/canito/Poppins-Black.ttf") format("truetype");
}

/* TODO(marca): agregar Poppins Regular (400) + Medium (500) self-hosted
   cuando Tomás entregue los .ttf/.woff2. Hasta entonces el cuerpo
   cae al fallback geométrico del stack. */

/* Inter — solo fallback técnico temporal para UI admin legada.
   No es tipografía de marca Canito. Remover cuando Poppins 400/500 estén. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ── Marca Canito (manual oficial) ── */
  --canito-oliva: #5b5f51;
  --canito-taupe: #bdb6a3;
  --canito-crema: #f7f4f0;
  --canito-carbon: #341f19;

  /* ── Bridge → componentes Nexo existentes ──
     Un solo negocio: accent = business-accent = oliva. */
  --accent: var(--canito-oliva);
  --accent-hover: var(--canito-carbon);
  --accent-light: var(--canito-taupe);

  --business-accent: var(--canito-oliva);
  --business-accent-hover: var(--canito-carbon);
  --business-accent-light: var(--canito-taupe);

  /* Layout — admin: más crema, sidebar marca oscura */
  --sidebar-bg: var(--canito-carbon);
  --content-bg: var(--canito-crema);
  /* Blanco estructural de cards del catálogo (no es 5º color de marca) */
  --card-bg: #ffffff;
  --border-color: var(--canito-taupe);

  /* Texto */
  --text-primary: var(--canito-carbon);
  --text-secondary: var(--canito-oliva);
  --text-on-dark: var(--canito-crema);

  /* ── Estados semánticos — PROPUESTA (no están en el manual) ──
     Mostrar a Tomás antes de dar por cerrados.
     Dirección: tierra/cálidos, no semáforo genérico.
       success  salvia desaturada  #6B7F5A / bg #E4E9DF
       warning  ámbar tierra       #A8893F / bg #F3EBD4
       danger   terracota          #A65D4C / bg #F3E4DF
     Mientras no haya OK, se usan estos propuestos (marcados). */
  --success: #6b7f5a; /* PENDING APPROVAL */
  --success-bg: #e4e9df; /* PENDING APPROVAL */
  --warning: #a8893f; /* PENDING APPROVAL */
  --warning-bg: #f3ebd4; /* PENDING APPROVAL */
  --danger: #a65d4c; /* PENDING APPROVAL */
  --danger-bg: #f3e4df; /* PENDING APPROVAL */
  --neutral: var(--canito-oliva);
  --neutral-bg: var(--canito-taupe);

  /* Tipografía — roles */
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  /* TODO: reemplazar por fuente serif oficial de marca */
  --font-serif: "Playfair Display", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-metric: 1.875rem;
  --text-h1: 1.5rem;
  --text-h2: 1.125rem;
  --text-h3: 1rem;
  --text-body: 0.875rem;
  --text-meta: 0.8125rem;
  --text-meta-sm: 0.75rem;

  /* Display de sección (catálogo / landing) — escala propia */
  --text-display: clamp(2.25rem, 5vw, 3.75rem);
  --text-display-sub: clamp(1.25rem, 2.5vw, 1.75rem);
  --tracking-display: -0.03em;

  /* Radius / sombra — más suave, menos “SaaS gris” */
  --radius-card: 12px;
  --radius-xl: 10px;
  --shadow-card: 0 1px 3px rgba(52, 31, 25, 0.06), 0 1px 2px rgba(52, 31, 25, 0.04);
  --shadow-card-soft: 0 4px 16px rgba(52, 31, 25, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--content-bg);
}

/* ── Roles tipográficos ── */

/* Display: portadas de categoría / H1–H2 de sección landing */
.font-display,
.text-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--text-on-dark);
}

/* Serif elegante — subtítulos premium (“Nuestros tratamientos”, VIP) */
.font-serif,
.text-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-display-sub);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

h1,
.text-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2,
.text-h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

h3,
.text-h3 {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.text-metric {
  font-family: var(--font-display);
  font-size: var(--text-metric);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-body,
.label,
.btn {
  font-size: var(--text-body);
  font-weight: 500;
}

.text-meta {
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--text-secondary);
}

.text-meta-sm {
  font-size: var(--text-meta-sm);
  font-weight: 400;
  color: var(--text-secondary);
}

/* Card estándar (admin / formularios) — no usar en hero */
.ds-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--canito-crema);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.scope-business .btn-primary {
  background: var(--business-accent);
}
.scope-business .btn-primary:hover {
  background: var(--business-accent-hover);
}

.ds-sidebar {
  background: var(--sidebar-bg);
  color: var(--text-on-dark);
}
.ds-sidebar__item {
  color: var(--text-on-dark);
  opacity: 0.75;
}
.ds-sidebar__item.is-active {
  opacity: 1;
  background: var(--canito-oliva);
  color: var(--canito-crema);
}
.scope-business .ds-sidebar__item.is-active {
  background: var(--business-accent);
}

.badge-success {
  color: var(--success);
  background: var(--success-bg);
}
.badge-warning {
  color: #8a6f2e; /* PENDING APPROVAL — tono sobre warning-bg */
  background: var(--warning-bg);
}
.badge-danger {
  color: var(--danger);
  background: var(--danger-bg);
}
.badge-neutral {
  color: var(--neutral);
  background: var(--neutral-bg);
}

.hidden {
  display: none !important;
}

/* ============================================================
   Patrones de layout Canito (catálogo → web)
   ============================================================

   WIREFRAME — portada de categoría + cards (ASCII)

   ┌─────────────────────────────────────────────────────────┐
   │  SECCIÓN PORTADA  bg: oliva (#5b5f51)                   │
   │                                                         │
   │     FACIALES & RENOVACIÓN     ← .text-display (Poppins  │
   │                                 Black, UPPERCASE)       │
   │     Nuestros tratamientos     ← .text-serif (placeholder│
   │                                 Playfair/Fraunces)      │
   │         [line-art sutil]      ← watermark 1×, opacity ↓ │
   └─────────────────────────────────────────────────────────┘
   ┌─────────────────────────────────────────────────────────┐
   │  BLOQUE CONTENIDO  bg: crema / taupe                    │
   │                                                         │
   │   ┌──────────────┐  ┌──────────────┐                    │
   │   │ ▓▓▓ foto ▓▓▓ │  │ ▓▓▓ foto ▓▓▓ │  ← foto REAL       │
   │   │              │  │              │                    │
   │   │┌────────────┐│  │┌────────────┐│                    │
   │   ││ LIMPIEZA   ││  ││ MASAJES    ││  ← .canito-label   │
   │   ││ FACIAL…    ││  ││ FACIALES   ││    (blanco flotante│
   │   │└────────────┘│  │└────────────┘│     superpuesto)   │
   │   │ 45 min · …   │  │ 30 min · …   │                    │
   │   └──────────────┘  └──────────────┘                    │
   │                                                         │
   │   [COMBO MIRADAS] ← .canito-sticker (leve rotate)       │
   └─────────────────────────────────────────────────────────┘
   ┌─────────────────────────────────────────────────────────┐
   │  SIGUIENTE PORTADA  bg: taupe o carbon (alternancia)    │
   └─────────────────────────────────────────────────────────┘

   Alternancia de fondos en scroll: oliva → crema/taupe → oliva.
   ============================================================ */

/* Portada de categoría (fondo oliva / taupe / carbon) */
.canito-section-cover {
  position: relative;
  overflow: hidden;
  background: var(--canito-oliva);
  color: var(--canito-crema);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.canito-section-cover--taupe {
  background: var(--canito-taupe);
  color: var(--canito-carbon);
}
.canito-section-cover--carbon {
  background: var(--canito-carbon);
  color: var(--canito-crema);
}
.canito-section-cover .text-display {
  position: relative;
  z-index: 1;
  margin: 0;
}
.canito-section-cover .text-serif {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.75rem;
  color: inherit;
  opacity: 0.9;
}

/* Watermark line-art (usar <img class="canito-mark"> del asset oficial) */
.canito-mark {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(42vw, 280px);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.canito-section-cover--taupe .canito-mark {
  opacity: 0.18;
  filter: brightness(0);
}

/* Bloque de contenido entre portadas */
.canito-section-body {
  background: var(--canito-crema);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}
.canito-section-body--taupe {
  background: var(--canito-taupe);
}

/* Card de tratamiento / producto — patrón label flotante del PDF */
.canito-service-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card-soft);
}
.canito-service-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--canito-taupe);
}
.canito-service-card__body {
  padding: 1.25rem 1rem 1.5rem;
}
/* Fotos de producto: más cuadradas que las de tratamiento (4:5),
   se ven más chicas/compactas en la grilla del market. */
.canito-product-card__media {
  aspect-ratio: 1 / 1;
}
/* Label blanco superpuesto al borde foto/contenido (signature) */
.canito-label {
  display: inline-block;
  margin: -1.25rem 1rem 0;
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.85rem;
  background: #ffffff;
  color: var(--canito-carbon);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
}

/* Sticker rotado para Combo / Promo */
.canito-sticker {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--canito-carbon);
  color: var(--canito-crema);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-card);
}
.canito-sticker--promo {
  background: var(--canito-oliva);
}
