/*
Theme Name: Evolución Digital
Theme URI: https://example.com/evolucion-digital
Author: Pepe Obando
Author URI: https://example.com
Description: Tema oscuro orgánico para agencias de desarrollo web. Carbón profundo con verde salvia luminoso, glassmorphism, tipografía Lexend y estética bosque/high-tech. Generado a partir del proyecto de Stitch "Strategic Web Development" (branding actualizado).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evolucion-digital
Tags: dark, one-column, custom-menu, custom-logo, featured-images, blog, portfolio
*/

/* ==========================================================================
   Design tokens — Evolución Digital (Stitch, branding actualizado)
   ========================================================================== */
:root {
  /* Surfaces */
  --background: #131313;
  --surface: #131313;
  --surface-bright: #393939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  --surface-variant: #353534;
  --on-surface: #e5e2e1;
  --on-surface-variant: #c3c8c2;
  --outline: #8d928d;
  --outline-variant: #434844;

  /* Brand */
  --primary: #b9cbbf;
  --on-primary: #24342b;
  --primary-container: #1b2a22;
  --secondary: #b0ceb2;
  --on-secondary: #1c3622;
  --secondary-container: #354f3a;
  --on-secondary-container: #a2c0a5;
  --tertiary: #bacbbc;
  --tertiary-container: #1c2a20;
  --secondary-fixed: #cceace;
  --tertiary-fixed: #d6e7d8;
  --sage-glow: #A7C4A0;
  --forest-shadow: #0D1410;
  --charcoal-depth: #1A1A1A;
  --error: #ffb4ab;

  /* Glass */
  --glass-bg: rgba(19, 19, 19, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.12);

  /* Type */
  --font: 'Lexend', system-ui, sans-serif;

  /* Shape */
  --radius: 1rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;

  /* Layout */
  --container-max: 1100px;
  --container-padding: 2rem;
  --section-gap: 5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--on-surface);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 500; line-height: 1.33; }
h4 { font-size: 18px; font-weight: 500; }

p { margin: 0 0 1.2em; color: var(--on-surface-variant); }

a { color: var(--secondary); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--sage-glow); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--secondary-container); color: var(--secondary-fixed); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.section { padding-block: calc(var(--section-gap) / 2); position: relative; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Carrusel horizontal (Casos de Éxito) */
.carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-inline: calc(var(--container-padding) * -1);
  padding-inline: var(--container-padding);
}
.carousel::-webkit-scrollbar { display: none; }

/* Encabezado de Casos de Éxito con controles del carrusel */
.cases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.carousel-nav { display: flex; gap: 12px; }
.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface-variant);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.carousel-btn:hover { color: var(--sage-glow); border-color: var(--sage-glow); background: rgba(167, 196, 160, 0.08); }
.carousel-btn .material-symbols-outlined { font-size: 18px; }

/* Tarjeta de caso: texto a la izquierda, imagen con corte diagonal a la derecha */
.case-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  transition: transform 0.5s var(--ease);
}
.case-card:hover { transform: scale(1.01); }
.case-card-text {
  flex: 1 1 48%;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: rgba(32, 31, 31, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.case-quote { margin: 0; color: var(--on-surface); line-height: 1.6; }
.case-meta h3 { margin: 0 0 4px; font-size: 20px; }
.case-meta > p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-glow);
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}
.case-link:hover { color: var(--sage-glow); }
.case-card-media {
  flex: 1 1 52%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
@media (min-width: 768px) {
  .case-card { flex: 0 0 760px; }
}
@media (max-width: 639px) {
  .case-card { flex: 0 0 92%; flex-direction: column; min-height: 0; }
  .case-card-text { gap: 24px; padding: 24px; }
  .case-card-media {
    min-height: 210px;
    clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
  }
}

/* CTA fijo de WhatsApp — en la esquina, no centrado, para no tapar contenido */
.whatsapp-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  transition: padding 0.3s var(--ease), gap 0.3s var(--ease);
}
.whatsapp-cta svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 767px) {
  .whatsapp-cta { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 16px); }
}
/* Modo compacto (solo ícono): mientras el CTA cruza contenido que podría tapar,
   como la franja de pilares justo debajo del hero. */
.whatsapp-cta.is-compact {
  padding: 16px;
  gap: 0;
}
.whatsapp-cta.is-compact .whatsapp-cta-label { display: none; }

/* ==========================================================================
   Glass components
   ========================================================================== */
.glass-panel {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: var(--glass-bg);
}
.glass-edge {
  border: 1px solid transparent;
  border-top-color: var(--glass-edge);
  border-left-color: var(--glass-edge);
}
.glass-card {
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top-color: var(--glass-edge);
  border-left-color: var(--glass-edge);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass-card:hover { transform: scale(1.01); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }

/* Chips y badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chip-sage {
  background: rgba(167, 196, 160, 0.1);
  color: var(--sage-glow);
  border: 1px solid rgba(167, 196, 160, 0.2);
}
.chip .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--sage-glow);
  animation: pulse 2s var(--ease) infinite;
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(185, 203, 191, 0.1);
  color: var(--primary);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Texto degradado */
.gradient-text {
  background: linear-gradient(90deg, var(--sage-glow), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: scale(0.95); }
.btn .material-symbols-outlined { font-size: 20px; transition: transform 0.3s var(--ease); }
.btn:hover .material-symbols-outlined { transform: translateX(4px); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 20px rgba(167, 196, 160, 0.3);
}
.btn-primary:hover { color: var(--on-primary); box-shadow: 0 0 30px rgba(167, 196, 160, 0.5); }

.btn-sage {
  background: var(--sage-glow);
  color: var(--forest-shadow);
  box-shadow: 0 0 30px rgba(167, 196, 160, 0.3);
  border-radius: var(--radius);
  width: 100%;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.btn-sage:hover { color: var(--forest-shadow); box-shadow: 0 0 40px rgba(167, 196, 160, 0.45); }

.btn-ghost {
  background: var(--surface-variant);
  color: var(--on-surface);
  font-size: 12px;
  padding: 12px 24px;
}
.btn-ghost:hover { background: var(--primary); color: var(--on-primary); }

/* ==========================================================================
   Barra superior
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.site-header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img, .custom-logo { height: 32px; width: auto; object-fit: contain; border-radius: 8px; }
.site-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.site-title a { color: var(--on-surface); }
.site-title a:hover { color: var(--sage-glow); }

.nav-group { display: flex; align-items: center; gap: 16px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  border-radius: 9999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--primary);
  background: rgba(185, 203, 191, 0.08);
}

/* Switcher de idioma ES / EN */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-surface-variant);
}
.lang-switcher a {
  padding: 4px 6px;
  border-radius: 6px;
  color: inherit;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-switcher a:hover { color: var(--primary); }
.lang-switcher a.is-active {
  color: var(--primary);
  background: rgba(185, 203, 191, 0.08);
}
.lang-switcher span { opacity: 0.4; }

/* ==========================================================================
   Nav inferior móvil (dock de app)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: none;
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  padding-inline: 16px;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bottom-nav a:hover, .bottom-nav a.is-active { color: var(--primary); transform: scale(1.1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transform: scale(1.15);
  will-change: transform;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14, 14, 14, 0.78), rgba(14, 14, 14, 0.3) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(19, 19, 19, 0.55), rgba(19, 19, 19, 0.1) 35%, rgba(19, 19, 19, 0.6) 85%, var(--background));
}
.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 110px;
}
.hero h1 { max-width: 640px; }
.hero h1 .text-sage { color: var(--sage-glow); }
.hero-lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 40px;
}

/* Entrada animada del texto del hero */
@keyframes evo-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim { opacity: 0; animation: evo-rise 0.9s var(--ease) forwards; }
.hero h1 .hero-anim { display: inline-block; }
.hero-anim-1 { animation-delay: 0.15s; }
.hero-anim-2 { animation-delay: 0.4s; }
.hero-anim-3 { animation-delay: 0.65s; }
.hero-anim-4 { animation-delay: 0.9s; }

/* Franja de pilares al pie del hero */
.hero-features { position: relative; z-index: 1; padding-bottom: 32px; }
.hero-features-inner {
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px;
}
.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  opacity: 0;
  animation: evo-rise 0.9s var(--ease) forwards;
}
.hero-feature:nth-child(1) { animation-delay: 1.1s; }
.hero-feature:nth-child(2) { animation-delay: 1.25s; }
.hero-feature:nth-child(3) { animation-delay: 1.4s; }
.hero-feature:nth-child(4) { animation-delay: 1.55s; }
.hero-feature + .hero-feature { border-left: 1px solid var(--glass-edge); }
.hero-feature > .material-symbols-outlined { color: var(--sage-glow); font-size: 30px; flex-shrink: 0; }
.hero-feature h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface);
}
.hero-feature p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--on-surface-variant); }

/* Tarjeta de inspiración / imagen destacada */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 8px;
  max-width: 900px;
  margin-inline: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.media-frame-inner { border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; position: relative; }
.media-frame-inner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-frame-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.8), transparent);
}
.media-frame-caption .chip-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.media-frame-caption .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-glow);
}
.media-frame-caption p { margin: 0; color: var(--on-surface); }

/* ==========================================================================
   Stats y lista de características (Home)
   ========================================================================== */
.stat-card { display: flex; flex-direction: column; gap: 16px; }
.stat-card .glow-corner {
  position: absolute;
  width: 128px; height: 128px;
  border-radius: 9999px;
  filter: blur(40px);
  background: rgba(167, 196, 160, 0.1);
  transition: background 0.4s var(--ease);
}
.stat-card:hover .glow-corner { background: rgba(167, 196, 160, 0.2); }
.stat-card .glow-tr { top: -40px; right: -40px; }
.stat-card .glow-bl { bottom: -40px; left: -40px; }
.stat-head { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}
.stat-value { font-size: 32px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.stat-card p { margin: 0; }

/* Tarjetas de precios */
.price-card { display: flex; flex-direction: column; gap: 20px; position: relative; overflow: visible; }
.price-card.is-featured { border-color: var(--sage-glow); }
.price-badge {
  position: absolute;
  top: -14px; right: 24px;
  z-index: 2;
}
.price-name { margin: 0; }
.price-value { display: flex; align-items: baseline; gap: 6px; }
.price-value .amount { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1; }
.price-value .period { font-size: 13px; color: var(--on-surface-variant); }
.price-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--on-surface-variant); }
.price-features .material-symbols-outlined { font-size: 18px; color: var(--sage-glow); flex-shrink: 0; margin-top: 1px; }
.price-note { font-size: 12px; color: var(--outline); margin: 0; line-height: 1.5; }

.feature-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(28, 27, 27, 0.5);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
}
.feature-item .feature-icon {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage-glow);
}
.feature-item .feature-icon .material-symbols-outlined { font-size: 20px; }
.feature-item h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.feature-item p { font-size: 14px; margin: 0; }

/* ==========================================================================
   Servicios
   ========================================================================== */
.ambient-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}
.glow-sage { background: var(--sage-glow); filter: blur(100px); opacity: 0.12; }
.glow-primary { background: var(--primary); filter: blur(80px); opacity: 0.06; }

.service-card {
  padding: 4px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease);
}
.service-card:hover { transform: scale(1.02); }
.service-card-inner {
  background: rgba(32, 31, 31, 0.4);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.process-media { margin-top: 16px; border-radius: 16px; overflow: hidden; }
.process-media img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 768px) {
  .grid-4 .service-card { display: flex; }
  .grid-4 .service-card-inner { flex-direction: column; flex: 1; }
  .grid-4 .service-card-inner > div:last-child { display: flex; flex-direction: column; flex: 1; }
  .grid-4 .service-card-inner > div:last-child .process-media { margin-top: auto; }
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  color: var(--sage-glow);
}
.service-icon.bg-primary-c { background: var(--primary-container); box-shadow: 0 4px 20px rgba(167, 196, 160, 0.15); }
.service-icon.bg-secondary-c { background: var(--secondary-container); color: var(--secondary); }
.service-icon.bg-tertiary-c { background: var(--tertiary-container); color: var(--tertiary); }
.service-icon .material-symbols-outlined { font-size: 28px; }
.service-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.service-card h3 .material-symbols-outlined { font-size: 16px; color: var(--sage-glow); opacity: 0.7; }
.service-card p { font-size: 14px; margin-bottom: 12px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   Portafolio / casos de éxito
   ========================================================================== */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: scale(1.02); }
.project-media { position: relative; height: 256px; overflow: hidden; flex-shrink: 0; }
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: luminosity;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.9), rgba(14, 14, 14, 0.2) 50%, transparent);
}
.project-chip {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: rgba(53, 79, 58, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--on-secondary-container);
  border-top: 1px solid var(--glass-edge);
  border-left: 1px solid var(--glass-edge);
  text-transform: none;
  letter-spacing: 0.05em;
}
.project-chip .material-symbols-outlined { font-size: 14px; }
.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(32, 31, 31, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
  flex: 1;
}
.project-body h3 { margin-bottom: 4px; }
.project-body > div > p { margin: 0; }
.project-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(185, 203, 191, 0.1);
  border: 1px solid rgba(185, 203, 191, 0.2);
}
.project-metric .metric-icon {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: rgba(185, 203, 191, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.project-metric .metric-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}
.project-metric .metric-value { font-size: 22px; font-weight: 500; color: var(--on-surface); margin: 0; }
.project-body .btn { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-header { text-align: center; }
.contact-header .icon-orb {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 9999px;
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-glow);
  border-top: 1px solid var(--glass-edge);
  border-left: 1px solid var(--glass-edge);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.contact-header h2 {
  background: linear-gradient(90deg, var(--on-surface), var(--secondary-fixed));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-form { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-left: 8px;
}
.input-wrap { position: relative; }
.input-wrap > .material-symbols-outlined {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(195, 200, 194, 0.5);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.input-wrap.is-focused > .material-symbols-outlined:first-child { color: var(--sage-glow); transform: translateY(-45%) scale(1.1); }
.input-wrap input, .input-wrap select, .input-wrap textarea {
  width: 100%;
  background: rgba(42, 42, 42, 0.5);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 16px 16px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  appearance: none;
}
.input-wrap textarea { min-height: 120px; resize: vertical; }
.input-wrap input:focus, .input-wrap select:focus, .input-wrap textarea:focus {
  border-color: rgba(167, 196, 160, 0.5);
  background: var(--surface-container-high);
}
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: rgba(195, 200, 194, 0.3); }
.input-wrap select { cursor: pointer; }
.input-wrap select option { background: var(--surface-container); color: var(--on-surface); }
.input-wrap .select-arrow {
  position: absolute;
  right: 16px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(195, 200, 194, 0.5);
  pointer-events: none;
}
.contact-form .btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(185, 203, 191, 0.2);
  transition: transform 0.2s var(--ease), background 0.3s var(--ease);
}
.contact-form .btn-submit:hover { background: var(--tertiary-fixed); transform: scale(1.02); }
.contact-form .btn-submit:active { transform: scale(0.98); }

.form-notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 196, 160, 0.4);
  background: rgba(167, 196, 160, 0.1);
  color: var(--sage-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
}
.trust-card .trust-icon {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: rgba(53, 79, 58, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-fixed);
  margin-bottom: 4px;
}
.trust-card h3 { font-size: 16px; font-weight: 500; margin: 0; }
.trust-card p { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; margin: 0; }

.quote-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.quote-card .quote-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.quote-card .quote-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-container-lowest), rgba(14, 14, 14, 0.8) 50%, transparent);
}
.quote-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 48px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--on-surface);
}
.quote-card blockquote::before {
  content: "format_quote";
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-size: 40px;
  color: rgba(167, 196, 160, 0.4);
}

/* ==========================================================================
   Blog, páginas y entradas
   ========================================================================== */
.page-shell { padding-top: 140px; padding-bottom: var(--section-gap); position: relative; }
.page-header { margin-bottom: 40px; }
.page-header h1 { font-size: clamp(32px, 5vw, 48px); }

.post-card { padding: 0; display: flex; flex-direction: column; }
.post-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-container-high); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.post-card-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--outline); }
.post-card h3 { font-size: 20px; margin: 0; }
.post-card h3 a { color: var(--on-surface); }
.post-card h3 a:hover { color: var(--sage-glow); }
.post-card .read-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entry-header { margin-bottom: 40px; max-width: 760px; }
.entry-meta { font-size: 14px; color: var(--outline); }
.entry-thumb { border-radius: var(--radius-lg); overflow: hidden; max-width: 900px; margin-bottom: 48px; }
.entry-content { max-width: 720px; font-size: 17px; font-weight: 300; line-height: 1.65; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  border-left: 3px solid var(--sage-glow);
  background: var(--glass-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.entry-content code {
  background: var(--surface-container-high);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--surface-container-lowest);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; }
.wp-block-image figcaption { color: var(--outline); font-size: 13px; text-align: center; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface-variant);
  font-weight: 600;
  font-size: 14px;
}
.pagination .page-numbers.current { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.pagination a.page-numbers:hover { border-color: var(--sage-glow); color: var(--sage-glow); }

/* Comentarios */
.comments-area { max-width: 720px; margin-top: 72px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 20px; }
.comment-body { padding: 24px; border-radius: var(--radius-lg); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.comment-author img { border-radius: 9999px; }
.comment-metadata { font-size: 12px; color: var(--outline); margin: 6px 0 12px; }
.comment-metadata a { color: var(--outline); }
.comment-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; color: var(--on-surface-variant); }
.comment-form p { margin-bottom: 20px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  background: rgba(42, 42, 42, 0.5);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
  outline: none;
  transition: border-color 0.25s var(--ease);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: rgba(167, 196, 160, 0.5); }
.comment-form input[type="submit"] {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 9999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 32px;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease);
}
.comment-form input[type="submit"]:hover { box-shadow: 0 0 24px rgba(167, 196, 160, 0.4); }

/* Búsqueda */
.search-form { display: flex; gap: 12px; max-width: 480px; }
.search-form input[type="search"] {
  flex: 1;
  background: rgba(42, 42, 42, 0.5);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 9999px;
  border: 1px solid var(--glass-edge);
  outline: none;
}
.search-form input[type="search"]:focus { border-color: rgba(167, 196, 160, 0.5); }
.search-form button {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 9999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  cursor: pointer;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--glass-edge);
  background: var(--surface-container-lowest);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--on-surface-variant); font-size: 14px; }
.footer-grid a:hover { color: var(--sage-glow); }
.footer-tagline { max-width: 320px; font-size: 14px; font-weight: 300; }
.footer-bottom {
  border-top: 1px solid var(--glass-edge);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--outline);
}

/* ==========================================================================
   Animación de aparición
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Revelado escalonado dentro de grids y carruseles */
.js .grid .reveal:nth-child(2), .js .carousel .reveal:nth-child(2) { transition-delay: 0.15s; }
.js .grid .reveal:nth-child(3), .js .carousel .reveal:nth-child(3) { transition-delay: 0.3s; }
.js .grid .reveal:nth-child(4), .js .carousel .reveal:nth-child(4) { transition-delay: 0.45s; }

/* Pasos de "Cómo Trabajamos": apagados hasta entrar en vista, se encienden uno a uno */
.js .step-card {
  opacity: 0.2;
  filter: grayscale(70%) brightness(0.7);
  transform: translateY(16px) scale(0.98);
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 1.4s var(--ease);
}
.js .step-card.is-lit { opacity: 1; filter: none; transform: none; }
.step-card .service-icon { transition: box-shadow 1.4s var(--ease); }
.step-card.is-lit .service-icon { box-shadow: 0 0 24px rgba(167, 196, 160, 0.45); }

/* Pulso del CTA fijo de WhatsApp */
@keyframes evo-pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(167, 196, 160, 0.3); }
  50% { box-shadow: 0 0 36px rgba(167, 196, 160, 0.6); }
}
.whatsapp-cta { animation: evo-pulse-glow 2.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
  .js .step-card { opacity: 1; filter: none; transform: none; transition: none; }
  .chip .pulse-dot, .whatsapp-cta { animation: none; }
  .hero-anim, .hero-feature { opacity: 1; animation: none; }
  .hero-bg-img { transform: none; }
  html { scroll-behavior: auto; }
}

/* Accesibilidad */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none;
  height: auto; width: auto;
  position: fixed !important;
  top: 8px; left: 8px;
  z-index: 200;
  background: var(--sage-glow);
  color: var(--forest-shadow);
  padding: 10px 18px;
  border-radius: 9999px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-features-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-feature + .hero-feature { border-left: none; }
}

@media (max-width: 767px) {
  :root { --container-padding: 1.5rem; --section-gap: 4rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-grid.grid-2 { grid-template-columns: 1fr 1fr; }

  .main-nav { display: none; }
  .bottom-nav { display: block; }
  body { padding-bottom: 80px; }

  .site-header-inner { height: 72px; }
  .hero-content { padding-top: 96px; }
  .hero-features-inner { grid-template-columns: 1fr; }
  .hero-feature { padding: 14px 16px; }
  .hero-feature + .hero-feature { border-left: none; border-top: 1px solid var(--glass-edge); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-bottom: 100px; }
}
