/* ==========================================================================
   VETA & ROBLE — Atelier de Mobiliario de Autor & Diseño de Interiores
   Sistema de Diseño CSS de Alta Fidelidad
   ========================================================================== */

/* --- 1. Variables CSS y Temas (Claro & Oscuro) --- */
:root {
  /* Paleta Cromática Primaria (Tonos Tierra, Roble y Madera Noble) */
  --color-primary: #8c5835;
  --color-primary-hover: #734526;
  --color-primary-light: #f5ece5;
  --color-primary-rgb: 140, 88, 53;

  /* Paleta Secundaria (Verde Bosque / Sostenibilidad) */
  --color-secondary: #24382c;
  --color-secondary-light: #3d5a47;
  --color-secondary-subtle: #ebf0ec;

  /* Acentos de Lujo (Oro Satinado / Bronce) */
  --color-accent: #c59b27;
  --color-accent-hover: #a8811b;
  --color-accent-light: #fbf6ea;

  /* Fondos y Superficies (Modo Claro) */
  --bg-body: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f4efe9;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #faf7f2;
  --bg-header: rgba(251, 249, 245, 0.92);

  /* Texto y Contrastes (Modo Claro) */
  --text-main: #1e2221;
  --text-muted: #5c6460;
  --text-light: #8e9692;
  --text-inverse: #ffffff;
  --text-accent: #8c5835;

  /* Bordes, Separadores y Sombras */
  --border-color: #e5ded4;
  --border-light: #eee9e0;
  --border-focus: #8c5835;
  --shadow-sm: 0 2px 8px rgba(30, 34, 33, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 34, 33, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 34, 33, 0.12);
  --shadow-premium: 0 25px 60px -15px rgba(140, 88, 53, 0.18);

  /* Tipografías */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciados y Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --header-height: 84px;
  --header-height-scrolled: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Oscuro / Dark Theme */
[data-theme="dark"] {
  --bg-body: #121415;
  --bg-surface: #181b1d;
  --bg-surface-alt: #202427;
  --bg-surface-elevated: #24292d;
  --bg-card: #1b1e20;
  --bg-card-hover: #222629;
  --bg-header: rgba(18, 20, 21, 0.94);

  --color-primary-light: #2c211a;
  --color-secondary-subtle: #19241d;
  --color-accent-light: #2b2515;

  --text-main: #f2f3f4;
  --text-muted: #a6b0aa;
  --text-light: #727c76;
  --text-inverse: #121415;
  --text-accent: #dca376;

  --border-color: #2c3237;
  --border-light: #242a2e;
  --border-focus: #c59b27;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-premium: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

/* --- 2. Reset y Estilos Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enlaces de salto accesible (Skip Links) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.8rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.3rem, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
a:hover {
  color: var(--color-primary-hover);
}

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

ul, ol {
  list-style: none;
}

/* Focus accesibilidad */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface-alt);
}

.section-dark {
  background-color: var(--color-secondary);
  color: #f2f5f3;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}
.section-dark p {
  color: #c0ccc3;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-dark .section-tag {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- 3. Componentes de UI y Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.25);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff !important;
}
.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-secondary) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --- 4. Header & Navegación --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: height var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-color);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}
.brand-logo svg {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1;
}
.brand-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}
.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* --- 5. Hero Section --- */
.hero-section {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-surface-alt) 0%, var(--bg-body) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin-bottom: 1.5rem;
}
.hero-title span.highlight {
  color: var(--color-primary);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}
.trust-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
}
.hero-image-wrapper img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--bg-surface);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
  z-index: 3;
}
.floating-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-card-icon svg {
  width: 22px;
  height: 22px;
}
.floating-card-text p {
  font-size: 0.825rem;
  margin: 0;
  line-height: 1.3;
}
.floating-card-text strong {
  font-size: 1.1rem;
  color: var(--text-main);
  display: block;
}

/* --- 6. Clientes / Aliados / Certificaciones Bar --- */
.partners-bar {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.partners-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.75;
}
.partner-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.partner-logo svg {
  width: 22px;
  height: 22px;
}

/* --- 7. Servicios & Productos Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}
.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--bg-surface);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.service-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-title {
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-features-list {
  margin-bottom: 1.75rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.25rem;
}
.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.service-features-list li svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-card .btn {
  margin-top: auto;
  width: 100%;
}

/* --- 8. Ventajas Competitivas ("¿Por qué elegirnos?") --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-surface);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
}
.feature-title {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.feature-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- 9. Proceso "Cómo Funciona" --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}

.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-normal);
}
.process-step:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.process-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}
.process-step-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.process-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- 10. Estadísticas & Contadores Animados --- */
.stats-section {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
}
.stat-item {
  padding: 1rem;
}
.stat-number-wrapper {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.stat-subtext {
  font-size: 0.85rem;
  color: #b0c0b5;
  margin: 0;
}

/* --- 11. Galería / Portafolio con Filtros --- */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 20, 21, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #ffffff;
  opacity: 0.95;
  transition: opacity var(--transition-normal);
}
.gallery-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.gallery-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-content img {
  max-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* --- 12. Testimonios --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-stars {
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}
.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}
.author-role {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --- 13. Preguntas Frecuentes (FAQ Accordion) --- */
.faq-wrapper {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item.active {
  border-color: var(--color-primary);
}
.faq-trigger {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}
.faq-trigger:hover {
  color: var(--color-primary);
}
.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.75rem;
}
.faq-item.active .faq-panel {
  padding-bottom: 1.5rem;
}
.faq-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- 14. Blog Cards & Artículos --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.blog-card-img {
  height: 220px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.blog-tag {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
}
.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.blog-card-title a {
  color: var(--text-main);
}
.blog-card-title a:hover {
  color: var(--color-primary);
}
.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.blog-read-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
}
.blog-read-more:hover {
  gap: 0.7rem;
}

/* Artículo individual / Blog post reader */
.article-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}
.article-featured-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}
.article-body {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--text-main);
}
.article-body h2 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-surface-alt);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body ul, .article-body ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}
.article-body li {
  list-style: disc;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* --- 15. Formulario de Contacto & Cotizador --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.info-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.info-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 24px;
  height: 24px;
}
.info-details strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.info-details p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-form-card {
  background: var(--bg-surface);
  padding: 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-control:focus {
  border-color: var(--color-primary);
  background: var(--bg-surface);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.form-feedback.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* Cotizador Estimador */
.estimator-box {
  background: var(--color-secondary-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}
.estimator-result {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

/* --- 16. Footer --- */
.site-footer {
  background-color: var(--color-secondary);
  color: #d1ded5;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}
.footer-brand .brand-title {
  color: #ffffff;
}
.footer-brand p {
  color: #a3b5a8;
  font-size: 0.925rem;
  margin: 1.25rem 0 1.75rem;
  max-width: 320px;
}
.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #b5c7ba;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}
.social-link:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
}
.social-link svg {
  width: 18px;
  height: 18px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.9rem;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #8c9e91;
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: #8c9e91;
}
.footer-legal-links a:hover {
  color: #ffffff;
}

/* --- 17. Botones Flotantes (WhatsApp & Scroll to Top) --- */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.float-whatsapp {
  background: #25d366;
  color: #ffffff !important;
}
.float-whatsapp:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}
.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

.float-scrolltop {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
}
.float-scrolltop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.float-scrolltop:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.float-scrolltop svg {
  width: 22px;
  height: 22px;
}

/* --- 18. Banner de Consentimiento de Cookies --- */
.cookie-banner {
  position: fixed;
  bottom: 25px;
  left: 25px;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9990;
  display: none;
  animation: slideInUp 0.4s ease forwards;
}
.cookie-banner.active {
  display: block;
}
.cookie-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* --- 19. Animaciones y Clases de Revelado al Scroll --- */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retardos escalonados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- 20. Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-media {
    max-width: 600px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    gap: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .mobile-nav-toggle {
    display: block;
  }
  .header-actions .btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
  }
}
