/*
Theme Name: MAE Recovery Tech v2
Theme URI: https://maerecovery.es/
Author: MAE Recovery Tech
Description: Tema editorial para MAE Recovery Tech — desarrollo, automatización e IA para empresas. Incluye blog.
Version: 2.0.0
Text Domain: mae-recovery-tech-v2
*/

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

:root {
  --cream:    #F8F5EF;
  --cream-2:  #F0EBE0;
  --cream-3:  #E6DFD0;
  --ink:      #1A1A18;
  --ink-2:    #3C3C38;
  --ink-3:    #6A6860;
  --ink-4:    #9A9890;
  --amber:    #B8711A;
  --amber-lt: #FEF4E6;
  --amber-bd: #F0C070;
  --white:    #FAFAF8;
  --border:   #DDD8CC;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Cursor custom solo se activa si el script de abajo confirma que corrió.
   Sin esta guarda, un adblocker o error de JS deja al usuario sin cursor visible. */
body.cursor-active, body.cursor-active * { cursor: none; }

/* ── CURSOR ── */
#cursor {
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: width 0.25s, height 0.25s, background 0.25s;
  will-change: transform;
}
#cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.55;
  will-change: transform;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor-grow #cursor { width: 18px; height: 18px; background: var(--ink); }
.cursor-grow #cursor-ring { width: 52px; height: 52px; opacity: 0.18; }
@media (pointer: coarse) { #cursor, #cursor-ring { display: none; } body { cursor: auto; } }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left {
  opacity: 0; transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right {
  opacity: 0; transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ── UTILS ── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 0.6rem;
}
.container { max-width: 980px; margin: 0 auto; padding: 0 2rem; }

/* ── PROGRESS ── */
#progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--amber); width: 0; z-index: 300;
  transition: width 0.08s linear;
}

/* ── NAV ──
   Escopeado a #main-nav (no al selector genérico "nav") porque WordPress
   genera sus propios <nav> semánticos, p.ej. <nav class="navigation pagination">
   en the_posts_pagination() del blog — con "nav" a secas heredaban position:fixed
   y quedaban pegados arriba de la página, tapando el header real. */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s, backdrop-filter 0.45s, border-color 0.45s;
}
#main-nav.scrolled {
  background: rgba(250,250,248,0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 30px; height: 30px; background: var(--ink);
  border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(10deg) scale(1.08); }
.nav-logo-icon svg { width: 16px; height: 16px; fill: var(--cream); }
.nav-logo-name { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; }
.nav-logo-name span { color: var(--amber); }
#main-nav .nav-links { display: flex; gap: 2rem; list-style: none; }
#main-nav .nav-links a {
  font-size: 13px; color: var(--ink-3); text-decoration: none;
  padding-bottom: 3px; position: relative; transition: color 0.2s;
}
#main-nav .nav-links a::after {
  /* scaleX en vez de width: no dispara layout en cada frame, va por GPU */
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.23,1,0.32,1);
}
#main-nav .nav-links a:hover { color: var(--ink); }
#main-nav .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 500; font-family: 'Inter', sans-serif;
  padding: 9px 20px; border-radius: 8px; border: none;
  text-decoration: none; display: inline-block;
  position: relative; overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.23,1,0.32,1);
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0; background: var(--amber);
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
}
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta span { position: relative; z-index: 1; }

/* ── DOT FIELD (fondo decorativo, mismo lenguaje visual que las partículas
   del hero pero sin canvas/JS por sección — más barato). Se mueve con un
   parallax lento vía JS (ver .dot-field en main.js). ── */
section.has-dots { position: relative; overflow: hidden; }
section.has-dots > .container { position: relative; z-index: 1; }
.dot-field {
  position: absolute; inset: -15% -5%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(184,113,26,0.14) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(154,152,144,0.16) 1px, transparent 1px);
  background-size: 64px 64px, 40px 40px;
  background-position: 0 0, 20px 30px;
}
@media (max-width: 768px) {
  .dot-field { background-size: 44px 44px, 28px 28px; }
}

/* ── HERO ── */
.hero-wrap { position: relative; overflow: hidden; padding-top: 64px; min-height: 92vh; display: flex; flex-direction: column; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero {
  position: relative; z-index: 1; flex: 1;
  padding: 6rem 2rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; max-width: 980px; margin: 0 auto; align-items: center; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber-lt); border: 1px solid var(--amber-bd);
  color: #8A5010; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px; margin-bottom: 1.5rem;
  animation: pulse-badge 3.5s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(184,113,26,0); }
  55% { box-shadow: 0 0 0 7px rgba(184,113,26,0.07); }
}
.hero-badge svg { width: 12px; height: 12px; fill: var(--amber); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 52px; line-height: 1.1; color: var(--ink);
  margin-bottom: 1.25rem; letter-spacing: -0.5px;
}
.hero-title em { font-style: italic; color: var(--amber); display: inline-block; min-width: 200px; }
.hero-sub {
  font-size: 15px; color: var(--ink-3); line-height: 1.8;
  margin-bottom: 2rem; max-width: 420px;
}
.hero-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--ink); color: var(--cream);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  padding: 13px 24px; border-radius: 8px; border: none;
  text-decoration: none; display: inline-block; position: relative; overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; background: var(--amber);
  transform: translateY(108%);
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  background: transparent; color: var(--ink-3);
  font-family: 'Inter', sans-serif; font-size: 14px;
  padding: 13px 24px; border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none; display: inline-block;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); border-color: var(--cream-3); transform: translateY(-3px); }
.btn-ghost:active { transform: translateY(0) scale(0.97); }

/* Hero panel */
.hero-panel {
  background: var(--cream-2); border-radius: 20px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--cream-3);
  box-shadow: 0 24px 60px rgba(26,26,24,0.09);
  transition: box-shadow 0.4s, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.hero-panel:hover { box-shadow: 0 40px 80px rgba(26,26,24,0.14); transform: translateY(-5px) rotate(0.4deg); }
.panel-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.panel-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem;
  transition: border-color 0.22s, transform 0.22s;
}
.panel-card:hover { border-color: var(--amber-bd); transform: translateX(4px); }
.panel-card-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.panel-card-sub { font-size: 12px; color: var(--ink-3); }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip-dark {
  background: var(--ink); color: var(--cream);
  font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 6px;
  transition: background 0.2s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.chip-dark:hover { background: var(--amber); transform: translateY(-3px); }
.chip-amber {
  background: var(--amber-lt); color: #8A5010;
  border: 1px solid var(--amber-bd); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 6px;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.chip-amber:hover { transform: translateY(-3px); }

/* ── MARQUEE ── */
.logos-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.25rem 0; overflow: hidden;
}
.logos-bar-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; text-align: center; }
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-size: 13px; font-weight: 600; color: #C5C2BA; letter-spacing: -0.2px; white-space: nowrap;
  transition: color 0.2s;
}
.marquee-track span:hover { color: var(--ink-3); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── STATS ── */
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-cell {
  background: var(--white); padding: 2.5rem 2rem; text-align: center;
  transition: background 0.2s;
}
.stat-cell:hover { background: var(--cream-2); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px; line-height: 1; color: var(--ink); margin-bottom: 6px;
}
.stat-num .accent { color: var(--amber); }
.stat-label { font-size: 13px; color: var(--ink-3); }

/* ── SECTION ── */
section { padding: 5.5rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px; line-height: 1.2; color: var(--ink); margin-bottom: 0.6rem;
}
.section-sub { font-size: 15px; color: var(--ink-3); line-height: 1.75; max-width: 520px; }
hr.divider { border: none; border-top: 1px solid var(--border); }

/* ── SERVICES — 5-card layout ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
}
.service-card-featured {
  grid-column: 1 / -1;
  background: var(--ink);
  padding: 2rem 2.5rem;
  display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.service-card-featured::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(184,113,26,0.18);
  transition: transform 0.6s;
}
.service-card-featured:hover::before { transform: scale(1.15); }
.service-card-featured::after {
  content: ''; position: absolute; right: 20px; bottom: -80px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(184,113,26,0.1);
}
.featured-left .service-num { color: rgba(240,192,112,0.35); margin-bottom: 0.75rem; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.featured-left .service-title { font-size: 22px; font-weight: 600; color: var(--cream); margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.featured-tag {
  display: inline-block; background: rgba(184,113,26,0.2);
  border: 1px solid rgba(240,192,112,0.3);
  color: var(--amber-bd); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; letter-spacing: 0.5px;
}
.featured-right .service-desc { font-size: 14px; color: #908E88; line-height: 1.75; margin-bottom: 1rem; }
.featured-bullets { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-bullet {
  font-size: 12px; color: #706E68;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px; border-radius: 6px;
}

.service-card {
  background: var(--white); padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; height: 2.5px; width: 100%;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover { background: var(--cream-2); }
.service-card:hover::after { transform: scaleX(1); }
.service-num { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--cream-3); margin-bottom: 1rem; }
.service-icon {
  width: 42px; height: 42px; background: var(--cream-2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.service-card:hover .service-icon { background: var(--amber-lt); transform: scale(1.1) rotate(-5deg); }
.service-icon svg {
  width: 20px; height: 20px; stroke: var(--amber);
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.service-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.service-desc { font-size: 13px; color: var(--ink-3); line-height: 1.65; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.service-tag {
  font-size: 11px; color: var(--ink-3); background: var(--cream-2); padding: 3px 8px; border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.service-tag:hover { background: var(--amber-lt); color: #8A5010; transform: translateY(-2px); }

/* ── IDEAL FOR (pill grid) ── */
/* Antes iba como style="display:grid;grid-template-columns:1fr 1fr..." inline
   en el HTML — un inline style le gana a cualquier media query del CSS, así
   que en mobile nunca colapsaba a 1 columna y el texto quedaba cortado. */
.ideal-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.ideal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 0.5rem;
}
.ideal-card {
  background: var(--cream-2); border: 1px solid var(--cream-3);
  border-radius: 12px; padding: 1.25rem;
  display: flex; align-items: flex-start; gap: 12px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.ideal-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(26,26,24,0.08); }
.ideal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0; margin-top: 7px;
}
.ideal-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ── TARGETS ── */
.targets-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.target-card {
  background: var(--cream-2); border-radius: 16px; padding: 1.75rem;
  border: 1px solid var(--cream-3);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.target-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(26,26,24,0.09); }
.target-card.featured { background: var(--ink); border-color: var(--ink-2); }
.target-card.featured:hover { box-shadow: 0 20px 50px rgba(26,26,24,0.32); }
.target-card.featured .target-title { color: var(--cream); }
.target-card.featured .target-desc { color: #6E6C66; }
.target-card.featured .target-icon { background: #2A2A28; }
.target-card.featured .target-icon svg { stroke: #C8A060; }
.target-icon {
  width: 40px; height: 40px; background: var(--cream-3); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.target-card:hover .target-icon { transform: scale(1.12) rotate(-4deg); }
.target-icon svg { width: 20px; height: 20px; stroke: var(--ink-3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.target-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.target-desc { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

/* ── METHOD ── */
.method-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.method-line {
  position: absolute; top: 19px;
  left: calc(100% / 8); right: calc(100% / 8);
  height: 1px; background: var(--border); z-index: 0; overflow: hidden;
}
.method-line::after {
  /* scaleX en vez de width: no dispara layout en cada frame, va por GPU */
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  width: 100%; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.method-line.run::after { transform: scaleX(1); }
.method-step { padding: 0 1.25rem 0 0; }
.method-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 1rem; position: relative; z-index: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.method-step:hover .method-step-num { background: var(--amber); border-color: var(--amber); color: var(--cream); transform: scale(1.12); }
.method-step-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.method-step-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }

/* ── WHY US ── */
.why-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 1px;
  background: var(--border); border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
}
.why-cell {
  background: var(--white); padding: 1.75rem 1.5rem; text-align: center;
  transition: background 0.25s, transform 0.3s;
  position: relative; overflow: hidden;
}
.why-cell::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 100%; height: 2.5px; background: var(--amber);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.why-cell:hover { background: var(--cream-2); }
.why-cell:hover::after { transform: translateX(-50%) scaleX(1); }
.why-icon {
  font-size: 22px; margin-bottom: 0.75rem; display: block;
}
.why-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.why-desc { font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 15px; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.2rem 0;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--amber); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink-3); line-height: 1;
  transition: background 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.25s;
}
.faq-item.open .faq-icon { background: var(--amber); border-color: var(--amber); color: var(--cream); transform: rotate(45deg); }
.faq-a {
  font-size: 14px; color: var(--ink-3); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), padding-bottom 0.3s;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 1.25rem; }

/* ── CTA ── */
.cta-strip {
  background: var(--ink); padding: 6.5rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  top: -150px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse at center, rgba(184,113,26,0.14) 0%, transparent 68%);
  pointer-events: none;
}
.cta-strip .eyebrow { color: #C8A060; }
.cta-strip .section-title { color: var(--cream); margin-bottom: 0.75rem; }
.cta-strip .section-sub { color: #6E6C66; margin: 0 auto 2.5rem; max-width: 480px; }
.cta-contact-info { margin-bottom: 2rem; }
.cta-contact-info p { font-size: 13px; color: #5A5855; line-height: 1.8; }
.cta-contact-info a { color: var(--amber); text-decoration: none; }
.cta-contact-info a:hover { text-decoration: underline; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-warm {
  background: var(--amber); color: #FEF4E6;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: 8px; border: none;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.btn-warm::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.13);
  transform: translateX(-105%); transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
}
.btn-warm:hover::before { transform: translateX(0); }
.btn-warm:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(184,113,26,0.38); }
.btn-warm:active { transform: translateY(0) scale(0.97); }
.btn-warm svg { width: 16px; height: 16px; fill: #FEF4E6; flex-shrink: 0; }
.btn-warm span { position: relative; z-index: 1; }

.btn-outline-light {
  background: transparent; color: #9A9890;
  font-family: 'Inter', sans-serif; font-size: 14px;
  padding: 14px 28px; border-radius: 8px; border: 1px solid #3A3A38;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-outline-light:hover { border-color: #666460; color: #C8C0AE; transform: translateY(-4px); }
.btn-outline-light:active { transform: translateY(0) scale(0.97); }


/* ── CTA TRIGGERS ── */
.cta-triggers { max-width: 680px; margin: 0 auto 2.5rem; }
.cta-triggers-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #C8A060; margin-bottom: 1.25rem;
}
.cta-triggers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.5rem;
}
.cta-trigger-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 1rem 1.1rem;
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.cta-trigger-item:hover {
  background: rgba(184,113,26,0.08);
  border-color: rgba(184,113,26,0.25);
  transform: translateY(-3px);
}
.cta-trigger-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.cta-trigger-item span:last-child { font-size: 13px; color: #8A8880; line-height: 1.55; }
.cta-triggers-sub {
  font-size: 14px; color: #5A5855; line-height: 1.75; font-style: italic;
}
@media (max-width: 600px) {
  .cta-triggers-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon {
  width: 26px; height: 26px; background: var(--ink); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 14px; height: 14px; fill: var(--cream); }
.footer-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-name span { color: var(--amber); }
.footer-meta { font-size: 12px; color: var(--ink-3); }
.footer-address { font-size: 12px; color: var(--ink-3); text-align: right; line-height: 1.6; }
.footer-address a { color: var(--amber); text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card-featured { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 1rem; }
  .why-grid { grid-template-columns: repeat(3,1fr); }
  .method-steps { grid-template-columns: repeat(2,1fr); gap: 2rem; }
  .method-line { display: none; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem; }
  .hero-title { font-size: 36px; }
  .hero-panel { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .targets-grid { grid-template-columns: 1fr; }
  .ideal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .ideal-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .why-cell:last-child { grid-column: 1 / -1; } /* 5 celdas en grid de 2 columnas: la última ocupa el ancho completo en vez de dejar un hueco vacío */
  .stats-row { grid-template-columns: 1fr; }
  #main-nav .nav-links { display: none; }
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .footer-address { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}

/* ── TOUCH: neutralizar lift/scale/reveal de :hover ──
   En touch (sobre todo iOS Safari) :hover se activa con el tap y queda
   "pegado" hasta el próximo tap en otro lado. Solo se resetean movimiento
   y sombra; los cambios de color se dejan porque no se ven raros pegados. */
@media (hover: none) {
  .nav-logo:hover .nav-logo-icon,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-warm:hover,
  .btn-outline-light:hover,
  .panel-card:hover,
  .chip-dark:hover,
  .chip-amber:hover,
  .service-card:hover .service-icon,
  .service-tag:hover,
  .ideal-card:hover,
  .target-card:hover,
  .target-card.featured:hover,
  .target-card:hover .target-icon,
  .method-step:hover .method-step-num,
  .why-cell:hover::after,
  .service-card:hover::after,
  .post-card:hover,
  .post-card:hover .post-card-thumb img,
  .post-card:hover .post-card-more::after {
    transform: none;
    box-shadow: none;
  }
  .hero-panel:hover { transform: none; box-shadow: 0 24px 60px rgba(26,26,24,0.09); }
  .btn-primary:hover::before,
  .btn-warm:hover::before,
  .nav-cta:hover::before { transform: translateX(-105%); }
}

/* ══════════════ BLOG ══════════════ */

.page-hero {
  padding: 8.5rem 2rem 3.5rem; text-align: center;
  background: var(--cream-2); border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero .section-title { font-size: 40px; }
.page-hero .section-sub { margin: 0 auto; text-align: center; }

.blog-wrap { padding: 4rem 0 5rem; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(26,26,24,0.1); border-color: var(--cream-3); }
.post-card-thumb { aspect-ratio: 16/10; background: var(--cream-2); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--amber); margin-bottom: 0.6rem; }
.post-card-title { font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.3; color: var(--ink); margin-bottom: 0.6rem; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card:hover .post-card-title { color: var(--amber); }
.post-card-excerpt { font-size: 13px; color: var(--ink-3); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.post-card-more { font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.post-card-more::after { content: '→'; transition: transform 0.22s; }
.post-card:hover .post-card-more::after { transform: translateX(4px); }

.no-posts { text-align: center; padding: 4rem 0; color: var(--ink-3); }

/* pagination (WP core the_posts_pagination -> <nav class="navigation pagination"><div class="nav-links">) */
.pagination { display: flex; justify-content: center; margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-3); text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination .page-numbers:hover { background: var(--cream-2); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* single post */
.single-hero { padding: 8.5rem 2rem 2.5rem; }
.single-hero .container { max-width: 760px; }
.single-hero .post-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 0.9rem; }
.single-hero .post-meta a { color: var(--amber); text-decoration: none; }
.single-hero h1 { font-family: 'Playfair Display', serif; font-size: 38px; line-height: 1.2; color: var(--ink); }
.single-thumb { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; }
/* aspect-ratio va en el contenedor, no en el <img>: WordPress ya pone
   width/height como atributos HTML en la imagen (p.ej. 1024x768), y eso
   gana sobre un aspect-ratio puesto directamente en el <img> — la foto
   terminaba con la altura original del archivo, dominando la pantalla. */
.single-thumb-frame {
  aspect-ratio: 16/9; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border);
}
.single-thumb-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .single-thumb-frame { aspect-ratio: 4/3; }
}

.entry-content { max-width: 720px; margin: 0 auto; padding: 0 2rem 4rem; font-size: 15.5px; color: var(--ink-2); line-height: 1.85; }
.entry-content > p:first-of-type { font-size: 17.5px; color: var(--ink-2); }
.entry-content h2 {
  font-family: 'Playfair Display', serif; font-size: 26px; color: var(--ink); margin: 2.4rem 0 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--border);
}
.entry-content > h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.entry-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ink); margin: 1.8rem 0 0.8rem; }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3rem; padding-left: 0; }
.entry-content ul { list-style: none; }
.entry-content ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.65rem;
}
.entry-content ul li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
.entry-content ol { padding-left: 1.3rem; }
.entry-content ol li { margin-bottom: 0.5rem; }
.entry-content a { color: var(--amber); text-decoration: underline; text-decoration-color: var(--amber-bd); text-underline-offset: 2px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }
.entry-content blockquote {
  border-left: 3px solid var(--amber); margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.4rem;
  font-style: italic; color: var(--ink-3);
}
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption { font-size: 12px; color: var(--ink-4); text-align: center; margin-top: 0.5rem; }

.post-tags { max-width: 720px; margin: 0 auto 3rem; padding: 0 2rem; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags a { font-size: 11px; color: var(--ink-3); background: var(--cream-2); padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.post-tags a:hover { background: var(--amber-lt); color: #8A5010; }

.post-nav { max-width: 720px; margin: 0 auto 3rem; padding: 0 2rem; display: flex; gap: 1rem; }
.post-nav a { flex: 1 1 0; min-width: 0; display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.post-nav a:hover { border-color: var(--amber-bd); background: var(--cream-2); }
.post-nav .dir { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-4); margin-bottom: 4px; }
.post-nav .title { font-size: 13.5px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav-next { text-align: right; margin-left: auto; }

/* ── POST CTA (banner de contacto al cierre del artículo) ── */
.post-cta {
  max-width: 720px; margin: 0 auto 3rem; padding: 0 2rem;
}
.post-cta-inner {
  background: var(--ink); border-radius: 18px; padding: 2rem 2.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.post-cta-inner::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  border-radius: 50%; border: 1px solid rgba(184,113,26,0.2);
}
.post-cta-text { position: relative; z-index: 1; }
.post-cta-title { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--cream); margin-bottom: 4px; }
.post-cta-sub { font-size: 13px; color: #908E88; }
.post-cta .btn-warm { position: relative; z-index: 1; flex-shrink: 0; }

/* ── RELATED POSTS ── */
.related-posts { background: var(--cream-2); padding: 4rem 0; border-top: 1px solid var(--border); }
.related-posts .section-title { font-size: 24px; }

/* ── COMMENTS ── */
.comments-area { max-width: 720px; margin: 0 auto; padding: 0 2rem 4rem; }
.comments-title, .comment-reply-title {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--ink); margin-bottom: 1.5rem;
}
.comment-reply-title { margin-top: 0.5rem; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--ink-3); margin-bottom: 1.3rem; }
.comment-notes a, .logged-in-as a { color: var(--amber); }

.comment-list { list-style: none; margin: 0 0 1rem; }
.comment-list .children { list-style: none; margin-left: 2.5rem; }
.comment-list article {
  display: flex; gap: 14px; padding: 1.4rem 0; border-bottom: 1px solid var(--border);
}
.comment-list > li:first-child article { padding-top: 0; }
.comment-list .avatar { border-radius: 50%; flex-shrink: 0; display: block; }
.comment-author-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.comment-metadata { font-size: 11.5px; color: var(--ink-4); margin-bottom: 0.5rem; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { font-size: 14px; color: var(--ink-2); margin-bottom: 0.6rem; }
.comment-reply-link {
  font-size: 12px; font-weight: 600; color: var(--amber); text-decoration: none;
}
.comment-reply-link:hover { text-decoration: underline; }
.comment-awaiting-moderation { display: block; font-size: 12px; color: var(--ink-4); font-style: italic; margin-top: 0.3rem; }

.comment-form p { margin-bottom: 1.1rem; }
.comment-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 0.4rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.9rem;
  font-family: 'Inter', sans-serif; font-size: 14px; background: var(--white); color: var(--ink);
  transition: border-color 0.2s;
}
.comment-form input[type=text]:focus, .comment-form input[type=email]:focus, .comment-form input[type=url]:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--amber-bd);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form .form-submit input {
  cursor: pointer; border: none; font-family: 'Inter', sans-serif;
}
.comments-closed { font-size: 14px; color: var(--ink-3); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .single-hero h1 { font-size: 28px; }
  .page-hero { padding: 7rem 1.25rem 2.5rem; }
  .page-hero .section-title { font-size: 28px; }
}
