/* ── MAIN.CSS ──────────────────────────────────────────────────────────────────
   Reset, variables globales y tipografía base.
   Estos nombres de variables son usados por catalog.css, modal.css, etc.
────────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Marca */
  --accent: #c8102e;        /* rojo del logo */
  --accent-dark: #9c0c23;
  --accent-s: rgba(200, 16, 46, 0.08);   /* fondo tenue del rojo */

  /* Tinta / texto */
  --ink: #10151d;           /* negro-azulado del texto del logo */
  --ink2: #33404f;
  --ink3: #6b7684;
  --ink4: #9aa3ad;

  /* Fondos */
  --bg: #f3f4f6;
  --bg-white: #ffffff;
  --border: #e4e6ea;

  /* Layout */
  --max-w: 1280px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(16, 21, 29, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 21, 29, 0.14);

  /* Motion */
  --fast: .15s ease;
  --med: .3s;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Tipografía */
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;  
  min-height: 100dvh;   
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul { list-style: none; }

.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   MODO LEGAL: ocultar todo el body mientras carga la sección
   (evita el parpadeo del footer antes de mostrar la sección legal)
   ══════════════════════════════════════════════════════════════ */

html.legal-mode body {
  visibility: hidden;
}

html.legal-ready body {
  visibility: visible;
}

/* ══════════════════════════════════════════════════════════════
   SECCIONES LEGALES (Aviso de Privacidad y Términos)
   ══════════════════════════════════════════════════════════════ */

.legal-section {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px 80px;
  line-height: 1.75;
}

.legal-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 56px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Título principal (Aviso de Privacidad / Términos y Condiciones) */
.legal-inner h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Fecha de actualización */
.legal-updated {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 32px 0;
  padding-bottom: 20px;
  border-bottom: 2px solid #f3f4f6;
}

/* Subtítulos (1. ¿Qué datos recopilamos?, etc.) */
.legal-inner h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 36px 0 14px 0;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.legal-inner h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #ef4444;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Párrafos */
.legal-inner p {
  margin: 0 0 16px 0;
  color: #4b5563;
  font-size: 1rem;
}

/* Listas */
.legal-inner ul {
  margin: 0 0 20px 0;
  padding-left: 24px;
  color: #4b5563;
  font-size: 1rem;
}

.legal-inner ul li {
  margin-bottom: 8px;
  padding-left: 4px;
  line-height: 1.6;
}

.legal-inner ul li::marker {
  color: #ef4444;
  font-weight: bold;
}

/* Textos en negrita */
.legal-inner strong {
  color: #111827;
  font-weight: 600;
}

/* Textos en cursiva */
.legal-inner em {
  color: #6b7280;
  font-style: italic;
}

/* Botón "Volver al catálogo" */
.legal-cerrar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff !important;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 32px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.legal-cerrar:hover {
  background: #dc2626;
  transform: translateX(-3px);
}

.legal-cerrar i {
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .legal-section {
    margin: 30px auto;
    padding: 0 16px 60px;
  }

  .legal-inner {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .legal-inner h1 {
    font-size: 1.5rem;
  }

  .legal-inner h2 {
    font-size: 1.05rem;
    margin-top: 28px;
  }

  .legal-inner p,
  .legal-inner ul {
    font-size: 0.95rem;
  }
} 