/* ==========================================================================
   PSC Paneles Solares Cuernavaca — Design System
   Paleta derivada del logo (navy #002B7F + solar #FFA500)
   Tipografía: Space Grotesk (display) + DM Sans (body)
   ========================================================================== */

/* ---- 1. TOKENS ----------------------------------------------------------- */
:root {
  /* Paleta */
  --navy: #002B7F;
  --navy-deep: #001A4D;
  --navy-soft: #1E3A8A;
  --navy-50: #F2F6FF;
  --navy-100: #E0EAFB;
  --solar: #FFA500;
  --solar-hover: #E69500;
  --solar-tint: #FFF4E0;
  --sky: #F2F6FF;
  --text: #131A22;
  --text-muted: #5A6B7D;
  --border: #E2E8F0;
  --success: #2E7D32;
  --white: #FFFFFF;

  /* Tipografía */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Escala tipográfica (clamp responsive) */
  --fs-body: 1rem;
  --fs-lg: clamp(1.05rem, 0.9vw + 0.9rem, 1.125rem);
  --fs-h6: clamp(1rem, 0.3vw + 0.95rem, 1.1rem);
  --fs-h5: clamp(1.15rem, 0.5vw + 1rem, 1.3rem);
  --fs-h4: clamp(1.3rem, 0.8vw + 1.1rem, 1.6rem);
  --fs-h3: clamp(1.55rem, 1.5vw + 1.2rem, 2.1rem);
  --fs-h2: clamp(2rem, 3vw + 1rem, 3rem);
  --fs-h1: clamp(2.4rem, 4.5vw + 1rem, 4rem);
  --fs-hero-stat: clamp(2rem, 3vw + 1rem, 3.2rem);

  /* Espaciado (escala 8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;

  /* Layout */
  --container: 1240px;
  --container-pad: clamp(1rem, 3vw, 1.5rem);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 42, 127, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 42, 127, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 42, 127, 0.12);
  --shadow-solar: 0 8px 24px rgba(255, 165, 0, 0.3);

  /* Transiciones */
  --t-fast: 150ms ease-out;
  --t-base: 220ms ease-out;
}

/* ---- 2. RESET MÍNIMO ----------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--solar-hover);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

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

/* Iconos SVG inline (reemplazo de Font Awesome) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- 3. TIPOGRAFÍA ------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin-bottom: 1rem; }

/* ---- 4. LAYOUT HELPERS --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--s-7);
}

.section--tight {
  padding-block: var(--s-5);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--sky {
  background: var(--sky);
}

.section--solar-tint {
  background: var(--solar-tint);
}

.grid {
  display: grid;
  gap: var(--s-3);
}

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--solar-hover);
  margin-bottom: var(--s-2);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--solar);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--s-5);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow::before {
  display: none;
}

.section-head p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-top: var(--s-1);
}

/* ---- 5. BOTONES ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--t-base);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

.btn svg,
.btn i { font-size: 1.1em; }

.btn-primary {
  background: var(--solar);
  color: var(--navy-deep);
  box-shadow: var(--shadow-solar);
}

.btn-primary:hover {
  background: var(--solar-hover);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 165, 0, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1FB855;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---- 6. BADGES / PILLS --------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--solar-tint);
  color: var(--solar-hover);
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.badge-success {
  background: rgba(46, 125, 50, 0.12);
  color: var(--success);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--navy-50);
  color: var(--navy);
  border: 1px solid var(--border);
}

.chip-light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---- 7. HEADER ----------------------------------------------------------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 0.8rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.logo-link img {
  height: 56px;
  width: auto;
}

/* Nav principal */
.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-item {
  position: relative;
}

.nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.nav > li > a:hover,
.nav > li > a[aria-current="page"] {
  color: var(--navy);
  background: var(--navy-50);
}

.nav > li > a .caret {
  font-size: 0.7rem;
  transition: transform var(--t-fast);
}

.nav-item:hover > a .caret {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-base);
  z-index: 110;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.dropdown a:hover {
  background: var(--navy-50);
  color: var(--navy);
}

.dropdown a small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Hamburguesa */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ---- 8. HERO ------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 165, 0, 0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(30, 58, 138, 0.4), transparent 40%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-5);
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--s-3);
}

.hero h1 .accent {
  color: var(--solar);
  position: relative;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: var(--s-4);
}

/* Lead debajo del H1 (beneficio principal) */
.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw + 0.8rem, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--s-3);
}

.hero-lead strong {
  color: var(--solar);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: var(--s-4);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--solar);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 0.3rem;
}

/* Formulario rápido de cotización */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.hero-form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.hero-form-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

/* ---- 9. FORMULARIOS ------------------------------------------------------ */
.form-group {
  margin-bottom: var(--s-2);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-label .req { color: var(--solar-hover); }

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 42, 127, 0.1);
}

.form-control.error {
  border-color: #DC2626;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  display: none;
  color: #DC2626;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-error.show {
  display: block;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-check a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.form-feedback {
  display: none;
  padding: var(--s-2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: var(--s-2);
}

.form-feedback.success {
  display: block;
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* ---- 10. TRUST BAR ------------------------------------------------------- */
.trust-bar {
  padding-block: var(--s-6);
  background: var(--white);
}

.trust-bar-head {
  max-width: 680px;
  margin: 0 auto var(--s-5);
  text-align: center;
}

.trust-bar-head h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-1);
}

.trust-bar-head p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  align-items: stretch;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: var(--s-3) var(--s-2);
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t-fast);
  min-height: 130px;
}

.brand-item:hover {
  border-color: var(--navy-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--t-fast), opacity var(--t-fast);
}

.brand-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-align: center;
}

@media (max-width: 768px) {
  .brands {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .brands {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 11. CARDS DE SERVICIOS --------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.card-service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

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

.card-service-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.card-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-base);
}

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

.card-service-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--solar-tint);
  color: var(--solar-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--s-2);
}

.card-service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-service p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.card-link i {
  transition: transform var(--t-fast);
}

.card-service:hover .card-link i {
  transform: translateX(4px);
}

/* ---- 12. DIFERENCIADORES ------------------------------------------------ */
.diferenciadores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.diferenciador {
  padding: var(--s-3);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--t-base);
}

.diferenciador:hover {
  border-color: var(--solar);
  box-shadow: var(--shadow-md);
}

.diferenciador .card-icon {
  background: var(--navy-50);
  color: var(--navy);
}

.diferenciador h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.diferenciador p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- 13. PROCESO -------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--s-3) var(--s-2);
  text-align: center;
}

.process-step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto var(--s-2);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--solar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  position: relative;
  z-index: 2;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.process-step p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Línea conectora */
.process-grid::before {
  content: "";
  position: absolute;
  top: calc(var(--s-3) + 27px);
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 165, 0, 0.3);
  z-index: 1;
}

/* ---- 14. MÉTRICAS (FIRMA) ----------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  text-align: center;
}

.metric {
  padding: var(--s-3) var(--s-2);
  position: relative;
}

.metric:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.metric-num {
  font-family: var(--font-display);
  font-size: var(--fs-hero-stat);
  font-weight: 700;
  color: var(--solar);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-num .suffix {
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.2rem;
}

.metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

/* ---- 15. SECTORES ------------------------------------------------------- */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.card-sector {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}

.card-sector img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-base);
}

.card-sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 26, 77, 0.92) 0%, rgba(0, 26, 77, 0.3) 50%, transparent 100%);
}

.card-sector:hover img {
  transform: scale(1.05);
}

.card-sector-body {
  position: relative;
  z-index: 2;
  padding: var(--s-3);
}

.card-sector h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.card-sector p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: var(--s-2);
}

.card-sector .card-link {
  color: var(--solar);
}

/* ---- 16. ZONAS ---------------------------------------------------------- */
.zonas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.zonas-block h3 {
  font-size: 1.2rem;
  margin-bottom: var(--s-2);
}

.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zonas-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
  transition: all var(--t-fast);
}

.zonas-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.zonas-link i {
  color: var(--solar);
  font-size: 0.8rem;
}

.zonas-link:hover i {
  color: var(--solar);
}

/* ---- 17. TESTIMONIOS ---------------------------------------------------- */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.testimonio {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--solar);
  font-size: 0.95rem;
  margin-bottom: var(--s-2);
  letter-spacing: 0.1em;
}

.testimonio-text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: var(--s-2);
  flex-grow: 1;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- 18. CERTIFICACIONES ------------------------------------------------ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--solar);
  border-radius: var(--radius);
  padding: var(--s-3);
}

.cert-code {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--navy-50);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.cert-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cert-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- 19. FAQ ACORDEÓN --------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--t-fast);
}

.faq-item[open] {
  border-color: var(--navy-100);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  width: 100%;
  text-align: left;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--solar-tint);
  color: var(--solar-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--t-base);
}

.faq-item[open] .faq-question .faq-icon {
  transform: rotate(45deg);
  background: var(--solar);
  color: var(--white);
}

.faq-answer {
  padding: 0 var(--s-3) var(--s-3);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* ---- 20. CTA FINAL + CONTACTO ------------------------------------------- */
.cta-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}

.contacto-info h3 {
  font-size: 1.3rem;
  margin-bottom: var(--s-2);
  color: var(--white);
}

/* Tarjetas de contacto (sobre fondo navy) */
.contacto-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: var(--s-3);
}

.contacto-lista li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: all var(--t-fast);
}

.contacto-lista li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 165, 0, 0.4);
}

.contacto-lista i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.15);
  color: var(--solar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto-lista strong {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.contacto-lista a,
.contacto-lista > li > span > span,
.contacto-lista > li > span > a {
  font-size: 0.98rem;
  color: var(--white);
  font-weight: 600;
}

.contacto-lista a:hover {
  color: var(--solar);
}

@media (max-width: 640px) {
  .contacto-lista {
    grid-template-columns: 1fr;
  }
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--s-3);
}

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

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  margin-bottom: 0.3rem;
}

.form-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--s-3);
}

/* ---- 21. FOOTER ---------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--s-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
}

.footer-brand img {
  max-width: 180px;
  height: auto;
  margin-bottom: var(--s-2);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--s-2);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t-fast);
}

.footer-social a:hover {
  background: var(--solar);
  color: var(--navy-deep);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--s-2);
  letter-spacing: 0.02em;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--solar);
}

.footer-contacto li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contacto i {
  color: var(--solar);
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
}

.footer-contacto a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contacto a:hover {
  color: var(--solar);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--solar);
}

.footer-legal {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ---- 22. WHATSAPP FLOTANTE ---------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--t-base);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  color: var(--white);
  transform: scale(1.08);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ---- 22b. CONTENIDO DE TEXTO (páginas de servicio) -------------------- */
.content-text {
  max-width: 760px;
}
.content-text p {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-2);
  color: var(--text);
}
.content-text p:last-child {
  margin-bottom: 0;
}
.content-text h3 {
  font-size: 1.25rem;
  margin-top: var(--s-3);
  margin-bottom: var(--s-1);
}
.content-text h3:first-child {
  margin-top: var(--s-2);
}
.content-text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 42, 127, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast);
}
.content-text a:hover {
  text-decoration-color: var(--solar);
  color: var(--navy);
}
.content-text ul,
.content-text ol {
  margin: 0 0 var(--s-2) var(--s-3);
  padding-left: var(--s-2);
}
.content-text ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  font-size: var(--fs-lg);
}
.content-text ol li {
  list-style: decimal;
  margin-bottom: 0.4rem;
  font-size: var(--fs-lg);
}

/* ---- 23. UTILIDADES ------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 24. RESPONSIVE ------------------------------------------------------ */
@media (max-width: 1024px) {
  .cards-grid,
  .sectores-grid,
  .testimonios-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diferenciadores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
  }
  .metric:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .nav,
  .header-cta .btn:not(.btn-whatsapp) {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-5) var(--s-3) var(--s-3);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow-y: auto;
    gap: 0.3rem;
  }
  .nav.open li > a {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
  .nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--s-2);
    margin-top: 0.3rem;
    background: var(--sky);
  }
  .nav-backdrop {
    display: none;
  }
  .nav-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 26, 77, 0.5);
    z-index: 150;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cta-contacto {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--s-5);
  }
  /* Ocultar boton WhatsApp del header en movil (el flotante sigue visible) */
  .header-cta .btn-whatsapp {
    display: none;
  }
  .cards-grid,
  .sectores-grid,
  .testimonios-grid,
  .cert-grid,
  .diferenciadores-grid,
  .metrics-grid,
  .zonas-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid::before { display: none; }
  .metric::after { display: none; }
  .hero-stats {
    gap: var(--s-3);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-link img { height: 46px; }
}

/* ---- 25. ACCESIBILIDAD / MOTIÓN ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .whatsapp-float {
    animation: none;
  }
}
