/*
Theme Name: Leñas Clariana
Theme URI: https://www.lenasclariana.es
Author: Leñas Clariana
Description: Tema a medida, ligero y rápido para Leñas Clariana. Cabecera, menú, pie, contacto, WhatsApp y tronco 3D incluidos. El contenido de cada página se pega en un bloque "HTML personalizado".
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: lenas-clariana
*/

/* ==========================================================================
   Leñas Clariana — hoja de estilos (convertida desde Tailwind / Lovable)
   Sistema de diseño "rústico premium". Colores en oklch.
   Breakpoints:  móvil < 768px  ·  tablet 768–1023px  ·  ordenador ≥ 1024px
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --radius: 0.25rem;
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);

  --background: oklch(0.16 0.014 55);
  --foreground: oklch(0.95 0.012 85);
  --card: oklch(0.21 0.018 55);
  --popover: oklch(0.21 0.018 55);
  --primary: oklch(0.68 0.19 45);
  --primary-foreground: oklch(0.16 0.014 55);
  --secondary: oklch(0.28 0.025 60);
  --muted: oklch(0.26 0.018 60);
  --muted-foreground: oklch(0.72 0.02 75);
  --accent: oklch(0.78 0.15 75);
  --destructive: oklch(0.6 0.2 25);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.68 0.19 45);
  --ember: oklch(0.7 0.21 42);
  --ember-glow: oklch(0.85 0.16 75);
  --bark: oklch(0.32 0.035 55);
  --ash: oklch(0.55 0.01 70);
  --whatsapp: oklch(0.72 0.17 145);

  --gradient-ember: linear-gradient(135deg, var(--ember) 0%, var(--ember-glow) 100%);
  --shadow-ember: 0 18px 60px -18px color-mix(in oklab, var(--ember) 55%, transparent);
  --veil: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--background) 92%, transparent) 0%,
    color-mix(in oklab, var(--background) 35%, transparent) 45%,
    color-mix(in oklab, var(--background) 95%, transparent) 100%
  );

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 80rem;           /* max-w-7xl */
  --gutter: 1.5rem;             /* px-6 */
  --section-y: 7rem;            /* py-28 */
  --header-h: 4.5rem;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; background-color: var(--bark); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: .6rem 1rem; border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Utilidades de marca ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.text-ember-gradient { background-image: var(--gradient-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.veil { background-image: var(--veil); }
.uppercase { text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ember-glow) 85%, white);
}

.btn-ember, .btn-outline-ash {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 9999px; line-height: 1;
}
.btn-ember {
  gap: 0.75rem;
  background-image: var(--gradient-ember);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-ember);
  transition: transform .25s ease, filter .25s ease;
}
.btn-ember:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.06); }
.btn-outline-ash {
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: background-color .25s ease, border-color .25s ease;
}
.btn-outline-ash:hover {
  background-color: var(--secondary);
  border-color: color-mix(in oklab, var(--ember) 60%, transparent);
}
.btn-sm { padding: .55rem 1.25rem; font-size: 1rem; }
.btn-md { padding: .8rem 1.5rem; font-size: 1.125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.5rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ---------- 4. Cabecera / navegación ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open {
  background-color: color-mix(in oklab, var(--background) 82%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .icon { color: var(--primary); width: 1.5rem; height: 1.5rem; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .03em; line-height: 1; }

.nav-desktop { display: none; gap: 1.75rem; align-items: center; }
.nav-desktop a {
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  color: var(--muted-foreground); transition: color .2s;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--foreground); }
.nav-desktop a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); padding-bottom: 2px; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-phone { display: none; padding: .65rem 1.25rem; font-size: 1rem; }
.menu-toggle { padding: .65rem; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
}
.site-header.is-open .nav-mobile { display: block; }
.nav-mobile a { display: block; padding: .6rem 0; font-family: var(--font-display); font-size: 1.6rem; }
.nav-mobile a[aria-current="page"] { color: var(--primary); }
.nav-mobile .btn-ember { display: flex; margin-top: 1rem; padding: .9rem 1.5rem; font-size: 1.3rem; width: 100%; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero > img, .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .veil, .cover-veil { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 30; max-width: 64rem; margin-inline: auto; padding: 6rem 1.5rem 0; text-align: center; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(3.5rem, 11vw, 9rem); text-transform: uppercase; }
.hero h1 span { display: block; }
.hero-slogan { margin-top: 1rem; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-foreground); }
.hero-cta { margin-top: 2.5rem; padding: 1.25rem 2rem; font-size: clamp(1.1rem, 2.6vw, 1.9rem); }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 30; text-align: center; }
.scroll-hint p { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted-foreground); }
.scroll-hint svg { margin: .5rem auto 0; color: var(--primary); animation: bounce 1s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }
}

/* Cabecera de páginas interiores */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 5rem) 0 4rem; min-height: 60vh; display: flex; align-items: flex-end; }
.page-hero .container { position: relative; z-index: 30; }
.page-hero h1 { margin-top: .75rem; font-size: clamp(2.8rem, 8vw, 6.5rem); text-transform: uppercase; max-width: 56rem; }
.page-hero p.lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.125rem; color: var(--muted-foreground); }

.breadcrumbs { font-size: .8rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a:hover { color: var(--foreground); }

/* ---------- 6. Secciones genéricas ---------- */
.section { position: relative; z-index: 30; padding-block: var(--section-y); }
.section--border { border-top: 1px solid var(--border); }
.section-title { margin-top: .75rem; max-width: 48rem; font-size: clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; }
.section-title--sm { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.section-sub { margin-top: 1rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }
.section-more { margin-top: 2.5rem; }

/* ---------- 7. Tipos de leña ---------- */
.wood-grid { margin-top: 3.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.wood-card {
  position: relative; height: 28rem; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.wood-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.wood-card:hover img, .wood-card:focus-within img { transform: scale(1.1); }
.wood-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--background), color-mix(in oklab, var(--background) 40%, transparent), transparent);
}
.wood-card .body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; z-index: 1; }
.wood-card .heat { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--primary); }
.wood-card h3 { margin-top: .5rem; font-size: 1.875rem; text-transform: uppercase; }
.wood-card .note {
  margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground);
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .5s;
}
.wood-card:hover .note, .wood-card:focus-within .note { max-height: 8rem; opacity: 1; }
/* En pantallas táctiles (móvil/tablet) no hay hover: se muestra siempre */
@media (hover: none) { .wood-card .note { max-height: none; opacity: 1; } }

/* Ficha detallada (página tipos de leña) */
.wood-detail { display: grid; gap: 2.5rem; align-items: center; padding-block: 4rem; border-top: 1px solid var(--border); }
.wood-detail:first-of-type { border-top: 0; }
.wood-detail figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5; max-height: 34rem; }
.wood-detail figure img { width: 100%; height: 100%; object-fit: cover; }
.wood-detail h2 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; margin-top: .5rem; }
.wood-detail p { margin-top: 1rem; font-size: 1.075rem; line-height: 1.7; color: var(--muted-foreground); max-width: 38rem; }
.spec-list { margin-top: 1.5rem; display: grid; gap: .6rem; }
.spec-list li { display: flex; gap: .75rem; align-items: baseline; color: var(--muted-foreground); }
.spec-list strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; font-weight: 400; min-width: 7.5rem; color: var(--foreground); }

/* Tabla comparativa */
.table-wrap { margin-top: 2.5rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 36rem; }
th, td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; background: var(--card); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--muted-foreground); }
td:first-child { color: var(--foreground); font-weight: 600; }

/* ---------- 8. Servicios (bloques sticky de la portada) ---------- */
.services-intro { position: relative; z-index: 30; padding-top: var(--section-y); padding-bottom: 2.5rem; }
.service-step { position: relative; height: 170vh; }
.service-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.service-sticky > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-sticky .veil { position: absolute; inset: 0; }
.service-content { position: relative; z-index: 30; width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) 6rem; }
.service-tag { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); }
.service-content h3 { margin-top: .75rem; max-width: 42rem; font-size: clamp(2.2rem, 5.5vw, 4.5rem); text-transform: uppercase; }
.service-content p { margin-top: 1rem; max-width: 28rem; font-size: 1.125rem; color: var(--muted-foreground); }
.service-content .actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Lista de servicios (página servicios) */
.service-row { display: grid; gap: 2rem; padding-block: 4rem; border-top: 1px solid var(--border); align-items: center; }
.service-row:first-of-type { border-top: 0; }
.service-row figure { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 16/11; }
.service-row figure img { width: 100%; height: 100%; object-fit: cover; }
.service-row h2 { margin-top: .6rem; font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: uppercase; }
.service-row p { margin-top: 1rem; font-size: 1.075rem; line-height: 1.7; color: var(--muted-foreground); max-width: 36rem; }
.service-row ul { margin-top: 1.25rem; display: grid; gap: .5rem; }
.service-row li { display: flex; gap: .6rem; align-items: flex-start; }
.service-row li::before { content: ""; width: .45rem; height: .45rem; margin-top: .55rem; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.service-row .btn-ember { margin-top: 1.75rem; }

/* ---------- 9. Nosotros ---------- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.about-points { margin-top: 2rem; display: grid; gap: 1rem; }
.about-points li { display: flex; align-items: center; gap: 1rem; }
.about-points .dot { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 50%; background: var(--secondary); color: var(--primary); }

.zones { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.zones li { border: 1px solid var(--border); border-radius: 9999px; padding: .45rem 1rem; font-size: .9rem; color: var(--muted-foreground); }

/* ---------- 10. Blog ---------- */
.blog-head { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.blog-head h2, .blog-head h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); text-transform: uppercase; }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-filters button { padding: .55rem 1.25rem; font-size: 1rem; }
.blog-filters button[aria-pressed="true"] {
  background-image: var(--gradient-ember); color: var(--primary-foreground);
  border-color: transparent; box-shadow: var(--shadow-ember);
}
.post-grid { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.post-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; }
.post-card[hidden] { display: none; }
.post-card .thumb { height: 13rem; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.25rem; }
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.post-meta .tag { color: var(--primary); }
.post-meta time { color: var(--muted-foreground); }
.post-card h3 { margin-top: .75rem; font-size: 1.5rem; line-height: 1.1; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }

/* Artículo */
.article { max-width: 46rem; margin-inline: auto; padding: calc(var(--header-h) + 3.5rem) var(--gutter) 5rem; position: relative; z-index: 30; }
.article h1 { margin-top: 1rem; font-size: clamp(2.6rem, 6.5vw, 4.8rem); text-transform: uppercase; }
.article .post-meta { margin-top: 1.25rem; }
.article-cover { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { margin-top: 2.5rem; font-size: 1.125rem; line-height: 1.75; color: color-mix(in oklab, var(--foreground) 88%, var(--muted-foreground)); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; color: var(--foreground); }
.prose ul { list-style: none; display: grid; gap: .6rem; }
.prose ul li { padding-left: 1.4rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--primary); }
.prose strong { color: var(--foreground); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.callout { border: 1px solid color-mix(in oklab, var(--ember) 45%, transparent); background: var(--card); border-radius: var(--radius-lg); padding: 1.5rem; }
.callout p { color: var(--foreground); }
.callout .btn-ember { margin-top: 1rem; padding: .85rem 1.5rem; font-size: 1.2rem; text-decoration: none; color: var(--primary-foreground); }
.related { border-top: 1px solid var(--border); }

/* ---------- 11. FAQ ---------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 0;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: .02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.8rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; max-width: 46rem; color: var(--muted-foreground); line-height: 1.7; }

/* ---------- 12. Banda CTA ---------- */
.cta-band { position: relative; z-index: 30; border-top: 1px solid var(--border); padding-block: 5rem; text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); text-transform: uppercase; }
.cta-band p { margin: 1rem auto 0; max-width: 34rem; color: var(--muted-foreground); font-size: 1.1rem; }
.cta-band .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- 13. Contacto / pie ---------- */
.site-footer { position: relative; z-index: 30; border-top: 1px solid var(--border); background: var(--background); }
.contact-grid { display: grid; gap: 3.5rem; padding-block: 6rem; }
.contact-grid h2 { margin-top: .75rem; font-size: clamp(2.5rem, 5.5vw, 4.5rem); text-transform: uppercase; }
.contact-phone { margin-top: 2rem; padding: 1rem 2rem; font-size: 1.5rem; }
.contact-info { margin-top: 2rem; display: grid; gap: .75rem; color: var(--muted-foreground); }
.contact-info > * { display: flex; align-items: center; gap: .75rem; }
.contact-info svg { color: var(--primary); }
.contact-info a { transition: color .2s; }
.contact-info a:hover { color: var(--foreground); }

.contact-form { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-lg); padding: 1.75rem; display: grid; gap: 1rem; align-content: start; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--muted-foreground); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--input); background: var(--background);
  border-radius: var(--radius-md); padding: .75rem 1rem; outline: none; transition: border-color .2s;
}
.field textarea { resize: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }
.contact-form button[type="submit"] { width: 100%; border-radius: var(--radius-md); padding: 1rem; font-size: 1.25rem; }
.form-note { text-align: center; font-size: .875rem; color: var(--primary); min-height: 1.3em; }
.form-legal { font-size: .78rem; color: var(--muted-foreground); text-align: center; }

.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem var(--gutter); }
.footer-bottom .inner { max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-bottom .brand-mini { display: flex; align-items: center; gap: .5rem; }
.footer-bottom svg { color: var(--primary); width: 1rem; height: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a:hover { color: var(--foreground); }

.whatsapp-btn {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); box-shadow: var(--shadow-ember);
  transition: transform .25s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 1.75rem; height: 1.75rem; fill: var(--background); }

/* ---------- 14. Tronco 3D (solo portada) ---------- */
#log-scene { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#log-scene canvas { width: 100% !important; height: 100% !important; }

/* ---------- 15. 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 6rem 1.5rem; }
.notfound h1 { font-size: clamp(5rem, 20vw, 12rem); }
.notfound p { margin: 1rem auto 2rem; max-width: 28rem; color: var(--muted-foreground); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Móvil pequeño (< 480px) */
@media (max-width: 479px) {
  :root { --section-y: 5rem; }
  .brand-name { font-size: 1.3rem; }
  .hero-cta { padding: 1rem 1.5rem; width: 100%; }
  .hero-slogan { font-size: 1rem; letter-spacing: .2em; }
  .contact-phone { font-size: 1.25rem; padding: .9rem 1.5rem; }
  .wood-card { height: 24rem; }
  .service-content { padding-bottom: 4.5rem; }
  .contact-form { padding: 1.25rem; }
  .page-hero { min-height: 50vh; }
}

/* Tablet (≥ 768px) */
@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .header-inner { padding-inline: 2rem; }
  .header-phone { display: inline-flex; }
  .hero-cta { padding-inline: 3.5rem; }
  .wood-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .wood-detail, .service-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .wood-detail:nth-of-type(even) figure, .service-row:nth-of-type(even) figure { order: 2; }
}

/* Ordenador (≥ 1024px) */
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile, .site-header.is-open .nav-mobile { display: none; }
  .wood-grid, .post-grid { grid-template-columns: repeat(4, 1fr); }
  .post-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* Pantallas grandes (≥ 1440px) */
@media (min-width: 1440px) {
  :root { --section-y: 8rem; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #log-scene { display: none; }
}

/* Impresión */
@media print {
  .site-header, .whatsapp-btn, #log-scene, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Corrección de especificidad: la etiqueta de color dentro de fichas */
.wood-detail .service-tag, .service-row .service-tag {
  margin-top: 0; font-size: .75rem; line-height: 1.5; color: var(--primary); max-width: none;
}

/* ==========================================================================
   AJUSTES PARA WORDPRESS
   ========================================================================== */

/* Menús generados por WordPress (listas <ul><li>) */
.nav-desktop ul, .nav-mobile ul, .footer-links ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 1.75rem; align-items: center; }
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a,
.nav-desktop .current_page_parent > a { color: var(--foreground); box-shadow: inset 0 -2px 0 var(--primary); padding-bottom: 2px; }
.nav-mobile .current-menu-item > a,
.nav-mobile .current_page_item > a,
.nav-mobile .current_page_parent > a { color: var(--primary); }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Barra de administración de WordPress (solo la ves tú al estar conectado) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Filtros del blog como enlaces */
.blog-filters a { padding: .55rem 1.25rem; font-size: 1rem; }
.blog-filters a[aria-current="page"] {
  background-image: var(--gradient-ember); color: var(--primary-foreground);
  border-color: transparent; box-shadow: var(--shadow-ember);
}

/* Paginación del blog */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--border); border-radius: 9999px; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em;
}
.pagination .page-numbers.current { background-image: var(--gradient-ember); color: var(--primary-foreground); border-color: transparent; }
.pagination a.page-numbers:hover { background: var(--secondary); }

/* Casilla de privacidad del formulario */
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted-foreground); }
.check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--primary); flex-shrink: 0; }
.check a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* Contenido de artículos escrito con el editor de bloques */
.prose img { border-radius: var(--radius-lg); }
.prose figure { margin-block: 2rem; }
.prose figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted-foreground); text-align: center; }
.prose ol { padding-left: 1.4rem; display: grid; gap: .6rem; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--primary); font-style: italic; }
.prose h3 { font-size: 1.7rem; text-transform: uppercase; margin-top: 2rem; color: var(--foreground); }
.post-meta a.tag:hover { text-decoration: underline; }

/* Páginas legales */
.legal .prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.legal .prose p, .legal .prose li { font-size: 1rem; }

/* Clases de accesibilidad de WordPress */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
