@import url("assets/fonts/fonts.css");

/* =============================================================
   Soluciones Empresariales — Contables · Tributarias
   Design System: High Contrast, Editorial Luxury, WCAG AAA
   ============================================================= */

:root {
  /* Marca: Dorado y Metales (extraídos del logo) */
  --oro:          #e5a93c;
  --oro-hover:    #f3c458;
  --oro-deep:     #b8821d;
  --oro-soft:     rgba(229, 169, 60, 0.12);
  --oro-glow:     rgba(229, 169, 60, 0.28);
  --oro-grad:     linear-gradient(135deg, #f7d070 0%, #d4a017 100%);
  --metal:        linear-gradient(135deg, #fce588 0%, #d4a017 50%, #996500 100%);

  /* Plata / Platino (del logo) */
  --plata:        #e2e8f0;
  --plata-dark:   #94a3b8;

  /* Modo Oscuro (Predeterminado) */
  --bg:           #0a0e17;   /* Slate noche profundo, nítido y limpio (NO marrón turbio) */
  --bg-2:         #111726;   /* Fondos alternos de secciones */
  --bg-3:         #182238;   /* Tarjetas y módulos */
  --bg-header:    rgba(10, 14, 23, 0.88);
  --bg-input:     #131c2e;

  /* Textos Modo Oscuro */
  --text-main:    #f8fafc;   /* Blanco platino, máxima nitidez */
  --text-muted:   #94a3b8;   /* Gris plata con excelente contraste */
  --text-dim:     #64748b;
  --text-oro:     #f5c442;   /* Dorado radiante sobre fondo oscuro */

  /* Bordes y Líneas */
  --border:       rgba(255, 255, 255, 0.08);
  --border-card:  rgba(245, 196, 66, 0.18);
  --border-focus: #f5c442;

  /* Sombras y Radios */
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --shadow-sm:    0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow:       0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 24px 60px rgba(0, 0, 0, 0.5);

  /* Hero Overlay - Máximo 45% opacidad, aplicado solo donde va el texto */
  --hero-overlay: linear-gradient(90deg, rgba(10, 14, 23, 0.45) 0%, rgba(10, 14, 23, 0.35) 45%, rgba(10, 14, 23, 0.05) 100%);
  --hero-text:    #f8fafc;
  --hero-muted:   #cbd5e1;

  /* Tipografía */
  --serif:        "Fraunces", Georgia, serif;
  --sans:         "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script:       "Yellowtail", cursive;

  --maxw:         1200px;
  --gutter:       clamp(1.2rem, 4vw, 2.5rem);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   Tema Claro: Fondo blanco luminoso, texto carbón y dorado bronce
   SOLUCIÓN AL CONTRASTE: Dorado bronce #9a6700 > 5.5:1 ratio
   ============================================================= */
:root[data-theme="light"] {
  --bg:           #ffffff;   /* Blanco puro, limpio y profesional */
  --bg-2:         #f8fafc;   /* Slate neutral claro */
  --bg-3:         #ffffff;   /* Tarjetas con sombra suave */
  --bg-header:    rgba(255, 255, 255, 0.92);
  --bg-input:     #ffffff;

  /* Textos Modo Claro (WCAG AAA) */
  --text-main:    #0f172a;   /* Carbón pizarra profundo */
  --text-muted:   #475569;   /* Gris medio con alto contraste */
  --text-dim:     #64748b;
  --text-oro:     #9a6700;   /* Bronce/oro oscuro de alto contraste */

  /* Dorado en Claro */
  --oro:          #9a6700;
  --oro-hover:    #7c5200;
  --oro-deep:     #614000;
  --oro-soft:     rgba(154, 103, 0, 0.08);
  --oro-glow:     rgba(154, 103, 0, 0.2);
  --oro-grad:     linear-gradient(135deg, #e5a93c 0%, #b8821d 100%);
  --metal:        linear-gradient(135deg, #b8821d 0%, #7c5200 100%);

  --plata:        #334155;
  --plata-dark:   #64748b;

  --border:       rgba(15, 23, 42, 0.09);
  --border-card:  rgba(154, 103, 0, 0.22);
  --border-focus: #9a6700;

  --shadow-sm:    0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow:       0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg:    0 24px 50px rgba(15, 23, 42, 0.12);

  /* Hero Overlay en Modo Claro: degrade translúcido luminoso */
  --hero-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.15) 100%);
  --hero-text:    #0f172a;
  --hero-muted:   #334155;
}

/* =============================================================
   Reset & Base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-family: var(--serif);
  font-weight: 600;
}

::selection {
  background: var(--oro);
  color: #0b0f19;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 1.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--oro-grad);
  color: #0b0f19;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 1.5rem;
}

/* =============================================================
   Utilidades y Layout
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.8rem, 8vw, 6.8rem);
  position: relative;
}

.bg-2 {
  background-color: var(--bg-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-oro);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--text-oro);
  display: inline-block;
  border-radius: 2px;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0.8rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow::before {
  display: none;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.8rem;
}

em {
  font-style: italic;
  color: var(--text-oro);
}

.title-underline {
  position: relative;
  display: inline-block;
}
.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--oro), transparent);
  transition: width 0.9s var(--ease-out);
}
.is-visible .title-underline::after {
  width: 75%;
}

/* =============================================================
   Botones
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}

.btn-primary {
  background: var(--oro-grad);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(229, 169, 60, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(229, 169, 60, 0.45);
}

.btn-wa-subtle {
  background: transparent;
  color: var(--hero-text);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-wa-subtle svg {
  color: #25d366;
}
.btn-wa-subtle:hover {
  border-color: #25d366;
  color: #25d366;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border-card);
  color: var(--text-main);
  background: var(--bg-3);
}
.btn-ghost:hover {
  border-color: var(--oro);
  color: var(--text-oro);
  transform: translateY(-2px);
}

.btn-wa {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
}

.btn-block {
  width: 100%;
}

.center-action {
  text-align: center;
  margin-top: 2.8rem;
}

/* =============================================================
   Header y Navegación
   REQUISITO: Logo mínimo 48px alto móvil, 64px escritorio
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 74px;
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

body.page-home .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

@media (min-width: 768px) {
  .site-header {
    height: 90px;
  }
}

/* Cabeceras de páginas internas */
.page-hero {
  padding-top: calc(74px + clamp(1.8rem, 4vw, 3rem));
  padding-bottom: clamp(2rem, 4.5vw, 3.5rem);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
}
@media (min-width: 768px) {
  .page-hero {
    padding-top: calc(90px + clamp(2.2rem, 4.5vw, 3.8rem));
  }
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  margin-top: 0.5rem;
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb a {
  color: var(--text-oro);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 48px;
}

/* LOGO: 48px en móvil, 64px en escritorio, sin deformar */
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  display: block;
}
@media (min-width: 768px) {
  .brand-logo {
    height: 64px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.8rem);
}
.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--text-oro);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a[aria-current="page"] {
  color: var(--text-oro);
  font-weight: 600;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cta {
  display: none;
}

/* Theme Toggle Button: mínimo 44x44px */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.theme-toggle:hover {
  color: var(--text-oro);
  border-color: var(--text-oro);
  transform: rotate(12deg);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Nav Toggle Button: mínimo 44x44px */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-3);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav-links, .nav-cta {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Menú Lateral Móvil */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  z-index: 300;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem 2.5rem;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-top .brand-logo {
  height: 44px;
}
.menu-close {
  min-width: 48px;
  min-height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-nav-list a {
  padding: 0.9rem 0.5rem;
  font-size: 1.15rem;
  font-family: var(--serif);
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav-list a:hover {
  color: var(--text-oro);
}
.mobile-nav-list a[aria-current="page"] {
  color: var(--text-oro);
  font-weight: 700;
  padding-left: 0.9rem;
  border-left: 3px solid var(--text-oro);
}
.mobile-menu-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* =============================================================
   1. Hero Section
   REQUISITO: 100svh, overlay máx 45% solo donde va texto,
   fondo no turbio/oliva, imagen visible y profesional
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 74px;
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 768px) {
  .hero {
    padding-top: 90px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  color: var(--hero-text);
  margin: 1.1rem 0 1.3rem;
  line-height: 1.12;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--hero-muted);
  max-width: 48ch;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

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

.hero-trust {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.8rem;
  border-top: 1px solid var(--border-card);
  padding-top: 1.6rem;
}
.trust-item b {
  color: var(--text-oro);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.1;
  display: block;
}
.trust-item span {
  font-size: 0.88rem;
  color: var(--hero-muted);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--hero-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.scroll-hint:hover {
  opacity: 1;
  color: var(--text-oro);
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--text-oro), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .scroll-hint {
    display: none;
  }
  .hero-trust {
    gap: 1rem 1.8rem;
    margin-top: 1.8rem;
  }
}

/* =============================================================
   2. Servicios (Tarjetas con íconos vectoriales)
   REQUISITO: 1 col móvil, 2 tablet, 3-4 escritorio
   ============================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--oro);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--oro-soft);
  color: var(--text-oro);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-card);
}
.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.card-link {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-oro);
  font-weight: 600;
  font-size: 0.92rem;
}
.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.card:hover .card-link svg {
  transform: translateX(5px);
}

/* =============================================================
   3. Por qué elegirnos
   ============================================================= */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.about-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.figure-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow);
}
.badge-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text-oro);
  font-weight: 700;
  line-height: 1;
}
.badge-text {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  max-width: 14ch;
  line-height: 1.25;
}

.features-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.feature-item:hover {
  border-color: var(--border-card);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--oro-soft);
  color: var(--text-oro);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* =============================================================
   4. Proceso de Trabajo (4 Pasos)
   ============================================================= */
.steps-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--text-oro);
  color: var(--text-oro);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.step-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================
   5. Confianza y Testimonios
   ============================================================= */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.8rem;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testi-card {
  background: var(--bg-3);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.testi-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.testi-card blockquote {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.testi-author strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
}
.testi-author span {
  font-size: 0.84rem;
  color: var(--text-oro);
}

.trust-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  padding: 1.6rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-banner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
}
.trust-banner-item svg {
  color: var(--text-oro);
}

/* =============================================================
   6. Preguntas Frecuentes (FAQ Accordion)
   ============================================================= */
.faq-accordion {
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
  margin-inline: auto;
}
.faq-accordion details {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-accordion details:hover {
  border-color: var(--border-card);
}
.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  min-height: 48px;
}
.faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordion summary::after {
  content: "+";
  color: var(--text-oro);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.faq-accordion details[open] summary::after {
  transform: rotate(45deg);
}
.faq-content {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* =============================================================
   7. Formulario y Contacto
   ============================================================= */
.contact-grid {
  display: grid;
  gap: 2.2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.form-card {
  background: var(--bg-3);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 1.2rem;
}
.form-row.cols-2 {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 580px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.field .req {
  color: var(--oro);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  min-height: 50px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--oro-soft);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-dim);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.form-consent input {
  width: 20px;
  height: 20px;
  min-height: auto;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--oro);
}
.form-consent a {
  color: var(--text-oro);
  text-decoration: underline;
}

.form-status {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #10b981;
}
.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: -0.4rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.4rem;
}
.info-list {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--oro-soft);
  color: var(--text-oro);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 20px;
  height: 20px;
}
.info-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.info-item a, .info-item span {
  color: var(--text-main);
  font-size: 0.98rem;
}
.info-item a:hover {
  color: var(--text-oro);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
  box-shadow: var(--shadow-sm);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================================
   8. Footer y WhatsApp Flotante
   ============================================================= */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

.footer-logo {
  margin-bottom: 1.2rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 36ch;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.socials {
  display: flex;
  gap: 0.8rem;
}
.socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-3);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.socials a:hover {
  color: var(--text-oro);
  border-color: var(--text-oro);
  transform: translateY(-2px);
}
.socials svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-oro);
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.footer-col a, .footer-col span {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.footer-bottom a {
  color: var(--text-dim);
  text-decoration: underline;
}
.footer-bottom a:hover {
  color: var(--text-oro);
}

/* WhatsApp Flotante: No tapa el contenido ni formularios */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =============================================================
   Servicios — Filas y Tarjetas de Servicio Detalladas
   ============================================================= */
.services-intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-row:hover {
  transform: translateY(-4px);
  border-color: var(--oro);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
  .service-row.reverse {
    grid-template-columns: 1fr 1.05fr;
  }
  .service-row.reverse .service-row__media {
    order: 2;
  }
  .service-row.reverse .service-row__content {
    order: 1;
  }
}

.service-row__media {
  position: relative;
  min-height: 260px;
  max-height: 420px;
  overflow: hidden;
  background: var(--bg-2);
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-row__media img {
  transform: scale(1.05);
}

.service-row__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 25, 0.4) 100%);
  pointer-events: none;
}

.service-row__content {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-oro);
  margin-bottom: 0.8rem;
}

.service-row__content h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--text-main);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.service-row__content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 540px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

.service-features li svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--text-oro);
  stroke: var(--text-oro);
  flex-shrink: 0;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

/* =============================================================
   Formularios y Secciones de Contacto / Postulación
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
  }
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.3rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-item:hover {
  transform: translateY(-2px);
  border-color: var(--oro);
  box-shadow: var(--shadow);
}

.info-icon,
.info-item > svg {
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  max-height: 26px;
  stroke: var(--text-oro);
  color: var(--text-oro);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.info-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: rgba(208, 144, 16, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-oro);
  color: var(--text-oro);
}

.info-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-family: var(--sans);
}

.info-item span,
.info-item a {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--text-oro);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  background: var(--bg-2);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* Formulario moderno */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

@media (min-width: 600px) {
  .form-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.req {
  color: #e53e3e;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-main);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--oro);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(208, 144, 16, 0.2);
}

.file-input {
  padding: 0.7rem;
  background: var(--bg-2);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
}

.file-input:focus {
  border-color: var(--oro);
  outline: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--oro);
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent a {
  color: var(--text-oro);
  text-decoration: underline;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  text-align: center;
}

.form-status {
  margin-bottom: 1.2rem;
  border-radius: var(--radius-sm);
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.form-status:not(:empty) {
  padding: 1rem 1.2rem;
}

.form-status.success {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #107c41;
}

.form-status.error {
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid rgba(229, 62, 62, 0.4);
  color: #c53030;
}

.hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* =============================================================
   Splash Screen
   ============================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  animation: splashSafety 0.01s 4s forwards;
}
.splash.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash img {
  width: min(65vw, 300px);
  animation: splashPulse 1.8s ease-in-out infinite;
}
@keyframes splashPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =============================================================
   Reveals (Animación suave de entrada)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* =============================================================
   Prefers Reduced Motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wa-float::after, .splash img, .scroll-hint::after {
    animation: none !important;
  }
}
