/*
Theme Name: AURANID
Theme URI: https://auranid.es
Author: AURANID
Description: Theme de marca para AURANID. Presencia de marca sin carrito propio: cada producto enlaza a su ficha de Amazon. Incluye una plantilla de página oculta para guías de uso accesibles solo mediante enlace directo (QR).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: auranid
*/

/* ==========================================================================
   0. TOKENS DE MARCA
   Colores y tipografía tomados directamente del packaging del Kit Rodilla,
   para que la web y el producto físico se sientan de la misma marca.
   ========================================================================== */

:root {
  /* Azul marino (fondo de la tapa del packaging) */
  --auranid-navy-900: #0f2740;
  --auranid-navy-800: #14314f;
  --auranid-navy-700: #1c4066;

  /* Dorado (logo y acentos del packaging) */
  --auranid-gold-500: #f2b84a;
  --auranid-gold-600: #d89b2e;

  /* Crema (fondo de la BASE del packaging, para secciones alternas) */
  --auranid-cream: #f7f3ea;

  --auranid-white: #ffffff;
  --auranid-ink: #1c2733;
  --auranid-gray-500: #6b7580;
  --auranid-gray-200: #e7e3da;

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --container-width: 1180px;
}

/* ==========================================================================
   1. RESET BÁSICO
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--auranid-ink);
  background: var(--auranid-white);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--auranid-navy-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auranid-gold-600);
  margin-bottom: 0.6em;
}

/* ==========================================================================
   2. BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--auranid-gold-500);
  color: var(--auranid-navy-900);
}
.btn-gold:hover { background: var(--auranid-gold-600); }

.btn-outline {
  background: transparent;
  border-color: var(--auranid-white);
  color: var(--auranid-white);
}
.btn-outline:hover { background: var(--auranid-white); color: var(--auranid-navy-900); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--auranid-navy-900);
  color: var(--auranid-navy-900);
}
.btn-outline-navy:hover { background: var(--auranid-navy-900); color: var(--auranid-white); }

/* ==========================================================================
   3. HEADER
   ========================================================================== */

.site-header {
  background: var(--auranid-navy-900);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding-text {
  color: var(--auranid-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-branding img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.primary-nav ul { display: flex; gap: 32px; }

.primary-nav a {
  color: var(--auranid-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  border-color: var(--auranid-gold-500);
  color: var(--auranid-gold-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--auranid-white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--auranid-navy-900);
    padding: 16px 24px 24px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 18px; }
}

/* ==========================================================================
   4. HERO (portada)
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--auranid-navy-900) 0%, var(--auranid-navy-700) 100%);
  color: var(--auranid-white);
  padding: 96px 0;
  text-align: center;
}

.hero h1 { color: var(--auranid-white); }
.hero h1 span { color: var(--auranid-gold-500); }

.hero .tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  color: var(--auranid-gold-500);
  margin-bottom: 28px;
}

.hero .lead {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: #d7dde3;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. SECCIONES GENERALES
   ========================================================================== */

.section { padding: 80px 0; }
.section-cream { background: var(--auranid-cream); }
.section-navy { background: var(--auranid-navy-900); color: var(--auranid-white); }
.section-navy h2 { color: var(--auranid-white); }
.section-navy p { color: #d7dde3; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ==========================================================================
   6. GRID DE PRODUCTOS
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--auranid-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 39, 64, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 39, 64, 0.14);
}

.product-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--auranid-gray-200);
  overflow: hidden;
}

.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.product-card h3 { margin: 0; color: var(--auranid-navy-900); }

.product-card .excerpt { color: var(--auranid-gray-500); font-size: 0.95rem; flex: 1; }

.product-card .btn { align-self: flex-start; margin-top: 8px; }

/* ==========================================================================
   7. PÁGINA DE PRODUCTO INDIVIDUAL
   ========================================================================== */

.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 72px 0;
}

.product-single .thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--auranid-cream);
}

.product-single .meta-box {
  background: var(--auranid-cream);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .product-single { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   8. PÁGINA GENÉRICA (Sobre nosotros / Contacto)
   ========================================================================== */

.page-content { padding: 72px 0; }
.page-content .entry-content { max-width: 760px; margin: 0 auto; }
.page-content .entry-content h2 { margin-top: 1.4em; }

/* ==========================================================================
   9. PLANTILLA DE GUÍA OCULTA (QR)
   ========================================================================== */

.guide-page {
  min-height: 100vh;
  background: var(--auranid-cream);
}

.guide-header {
  background: var(--auranid-navy-900);
  padding: 28px 0;
  text-align: center;
}

.guide-header img { height: 44px; margin: 0 auto; }

.guide-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.guide-content .entry-content > * + * { margin-top: 1.2em; }

.guide-content iframe,
.guide-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: none;
}

.guide-content h1, .guide-content h2 { color: var(--auranid-navy-900); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--auranid-navy-900);
  color: #aeb8c2;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.site-footer .footer-brand {
  font-family: var(--font-heading);
  color: var(--auranid-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

.site-footer nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--auranid-gold-500); }

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   11. UTILIDADES
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
