/* =========================================================
   MARTÍN TRIVIÑO · Mediadores de Seguros y Energía
   Web corporativa premium · Glassmorphism Modern adaptado
   Paleta burdeos corporativa · Mobile-first
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Colores corporativos */
  --burdeos:        #7A1026;
  --burdeos-dark:   #5A0B1C;
  --burdeos-deep:   #3F0613;
  --burdeos-soft:   #9B2A3E;
  --burdeos-tint:   #FAEEF0;
  --burdeos-line:   rgba(122, 16, 38, 0.12);

  --white:          #FFFFFF;
  --paper:          #FBFAF8;
  --bg:             #FFFFFF;
  --bg-soft:        #F5F5F5;
  --bg-cream:       #FAF7F3;

  --ink:            #1A1A1A;
  --ink-soft:       #2F2F2F;
  --ink-mute:       #6B6B6B;
  --ink-faint:      #9A9A9A;
  --line:           rgba(26, 26, 26, 0.08);
  --line-strong:    rgba(26, 26, 26, 0.16);

  --shadow-sm:      0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md:      0 10px 30px -10px rgba(26, 26, 26, 0.14);
  --shadow-lg:      0 30px 60px -20px rgba(26, 26, 26, 0.18);
  --shadow-burdeos: 0 20px 50px -16px rgba(122, 16, 38, 0.35);

  /* Tipografía */
  --serif:          "Fraunces", Georgia, "Times New Roman", serif;
  --serif-italic:   "Newsreader", "Fraunces", Georgia, serif;
  --sans:           "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Geometría */
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  /* Movimiento */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:      cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container:      1240px;
  --container-pad:  clamp(1rem, 4vw, 2.5rem);
  --nav-h:          78px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

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

section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
}

/* ---------- TIPOGRAFÍA ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burdeos);
  margin-bottom: 1.2rem;
}
.kicker-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--burdeos);
  position: relative;
}
.kicker-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--burdeos);
  opacity: 0.25;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50%      { transform: scale(1.8); opacity: 0; }
}
.kicker-light { color: rgba(255, 255, 255, 0.85); }
.kicker-light .kicker-dot { background: var(--white); }
.kicker-light .kicker-dot::before { background: var(--white); }

.section-title,
.hero-title {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}
.section-title em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--burdeos);
  font-variation-settings: "opsz" 36;
}

/* HERO TITLE — sans geométrico (Inter) con italic burdeos para acento */
.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero-title em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--burdeos);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 48;
}

.section-sub {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--ink-mute);
  max-width: 56ch;
  line-height: 1.65;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 760px;
}
.section-head-center {
  margin-inline: auto;
  text-align: center;
}
.section-head-center .kicker,
.section-head-center .section-sub { margin-inline: auto; }
.section-head-light .section-title { color: var(--white); }
.section-head-light .section-title em {
  color: #F0CFA0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.section-head-light .section-sub { color: rgba(255, 255, 255, 0.82); }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out),
              color .25s var(--ease-out), box-shadow .35s var(--ease-out),
              border-color .25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:focus-visible {
  outline: 3px solid var(--burdeos);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--burdeos);
  color: var(--white);
  box-shadow: var(--shadow-burdeos);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--burdeos-soft), var(--burdeos-dark));
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px -16px rgba(122, 16, 38, 0.5);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-loading { display: none; align-items: center; gap: .5rem; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Defensa para A.4.5: elementos con .reveal + data-split nunca quedan invisibles */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ---------- SPLASH ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: grid;
  place-items: center;
  pointer-events: all;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s var(--ease-out), clip-path .9s var(--ease-out);
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to {
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
  }
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: splashFadeIn .6s var(--ease-out) both;
}
.splash-logo {
  width: 120px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 10px 25px rgba(122, 16, 38, 0.2));
}
.splash-bar {
  width: 120px;
  height: 2px;
  background: var(--burdeos-tint);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.splash-bar span {
  position: absolute;
  inset: 0;
  background: var(--burdeos);
  transform-origin: left;
  animation: splashProgress 1.4s var(--ease-out) forwards;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashProgress {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), backdrop-filter .3s var(--ease-out),
              border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -10px rgba(26, 26, 26, 0.08);
}
@supports not (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(255, 255, 255, 0.96); }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}
.nav-brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4rem 0;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--burdeos);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--burdeos); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-wa {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  transition: transform .25s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav-wa:hover {
  transform: translateY(-2px) rotate(-6deg);
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
}
.nav-cta { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  position: relative;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}
.nav-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out),
              opacity .25s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 24px; }
.nav-burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem var(--container-pad) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .25s ease, visibility .25s linear;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(26, 26, 26, 0.2);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 768px) {
  .nav-mobile { display: none; }
}
.nav-mobile a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 1rem; width: 100%; }

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #FBFAF8 0%, #FFFFFF 60%, #FBFAF8 100%);
}
/* Halo burdeos muy sutil en una sola esquina (no inunda toda la pantalla) */
.hero-mesh {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(122, 16, 38, 0.08) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -2;
  pointer-events: none;
  animation: haloDrift 24s ease-in-out infinite;
}
.hero-mesh::after {
  content: "";
  position: absolute;
  bottom: -60%;
  left: -120%;
  width: 90%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(122, 16, 38, 0.05) 0%, transparent 70%);
  filter: blur(30px);
}
@keyframes haloDrift {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50%      { transform: translate(-3%, 2%); opacity: 0.85; }
}
/* Grid sutil con desvanecido — más arquitectura, menos color */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 26, 26, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 0%, transparent 75%);
  z-index: -1;
  opacity: 0.7;
}
/* Línea de acento burdeos: barra fina vertical decorativa */
.hero::before {
  content: "";
  position: absolute;
  top: var(--nav-h);
  left: 0;
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--burdeos) 30%, var(--burdeos) 70%, transparent);
  z-index: -1;
  opacity: 0.5;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-mute);
  max-width: 50ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero-microcta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-pill svg { color: var(--burdeos); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 620px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.hero-photo:hover img { transform: scale(1.05); }
.hero-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(122, 16, 38, 0.2) 100%);
  mix-blend-mode: multiply;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  animation: floatY 6s ease-in-out infinite;
}
@supports not (backdrop-filter: blur(10px)) {
  .hero-card { background: rgba(255, 255, 255, 0.96); }
}
.hero-card-1 {
  bottom: -1.5rem;
  left: -1.5rem;
}
.hero-card-2 {
  top: -2rem;
  right: -1.5rem;
  animation-delay: -3s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--burdeos-tint);
  color: var(--burdeos);
  flex: 0 0 auto;
}
.hero-card-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.hero-card-label {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 4px;
  max-width: 16ch;
  line-height: 1.35;
}

.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 8px;
  background: var(--burdeos);
  border-radius: 99px;
  animation: scrollHint 1.8s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  background: var(--bg-cream);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.trust-item {
  text-align: left;
  padding: 0.6rem;
  border-radius: var(--radius);
  transition: background .3s var(--ease-out);
}
.trust-item:hover { background: rgba(122, 16, 38, 0.025); }
.trust-item svg {
  display: block;
  color: var(--burdeos);
  margin-bottom: 0.9rem;
  padding: 0.55rem;
  background: var(--white);
  border: 1px solid var(--burdeos-line);
  border-radius: 12px;
  box-sizing: content-box;
  width: 24px !important;
  height: 24px !important;
  box-shadow: 0 6px 16px -8px rgba(122, 16, 38, 0.18);
}
.trust-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.trust-item p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ---------- SERVICIOS ---------- */
.services {
  background: var(--white);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

.service-card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .45s var(--ease-out), border-color .35s var(--ease-out),
              box-shadow .45s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(122, 16, 38, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--burdeos-line);
  box-shadow: 0 30px 60px -30px rgba(122, 16, 38, 0.25);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--burdeos-tint);
  color: var(--burdeos);
  margin-bottom: 1.2rem;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.service-card:hover .service-icon {
  transform: scale(1.05) rotate(-3deg);
  background: var(--burdeos);
  color: var(--white);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin-bottom: 1.3rem;
  line-height: 1.55;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--burdeos);
  transition: gap .25s var(--ease-out), color .25s var(--ease-out);
}
.service-cta:hover {
  gap: 0.7rem;
  color: var(--burdeos-dark);
}

/* Variante oscura para empresas */
.services-dark {
  background: linear-gradient(180deg, var(--burdeos-deep) 0%, var(--burdeos-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.services-dark-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 10%, rgba(155, 42, 62, 0.5) 0%, transparent 45%),
    radial-gradient(at 85% 80%, rgba(122, 16, 38, 0.45) 0%, transparent 50%);
  filter: blur(80px);
  z-index: 0;
}
.services-dark > .container { position: relative; z-index: 1; }
.service-card-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
@supports not (backdrop-filter: blur(10px)) {
  .service-card-dark { background: rgba(255, 255, 255, 0.08); }
}
.service-card-dark .service-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.service-card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4);
}
.service-card-dark:hover .service-icon {
  background: var(--white);
  color: var(--burdeos);
}
.service-card-dark p { color: rgba(255, 255, 255, 0.82); }
.service-card-dark .service-cta {
  color: #F0CFA0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}
.service-card-dark .service-cta:hover { color: var(--white); }

/* ---------- ENERGÍA ---------- */
.energy {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.energy::before {
  content: "";
  position: absolute;
  top: -10%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(122, 16, 38, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.energy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.energy-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.energy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.energy-list svg {
  color: var(--burdeos);
  flex: 0 0 auto;
  margin-top: 2px;
}
.energy-list strong { color: var(--ink); font-weight: 600; }

.energy-brands {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.energy-brands-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  font-weight: 600;
}
.energy-brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.energy-brand {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out),
              transform .25s var(--ease-out);
}
.energy-brand:hover {
  border-color: var(--burdeos);
  color: var(--burdeos);
  transform: translateY(-2px);
}

/* Uploader card */
.energy-uploader {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.uploader-head {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.uploader-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.uploader-head p {
  font-size: 0.95rem;
  color: var(--ink-mute);
}

.uploader-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- DROPZONE ---------- */
.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
  position: relative;
  background: var(--bg-cream);
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragover {
  border-color: var(--burdeos);
  background: var(--burdeos-tint);
  outline: none;
}
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone.has-file {
  border-style: solid;
  border-color: var(--burdeos);
  background: var(--burdeos-tint);
}

.dropzone-empty { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.dropzone-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--white);
  color: var(--burdeos);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.dropzone-icon-ok {
  background: var(--burdeos);
  color: var(--white);
}
.dropzone-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.dropzone-sub { font-size: 0.9rem; color: var(--ink-mute); }
.dropzone-link {
  color: var(--burdeos);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.dropzone-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}

.dropzone-filled {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
}
.dropzone-fileinfo { flex: 1; min-width: 0; }
.dropzone-filename {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropzone-filesize {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
.dropzone-remove {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  transition: color .25s, background .25s, transform .25s;
  flex: 0 0 auto;
}
.dropzone-remove:hover {
  background: var(--burdeos);
  color: var(--white);
  border-color: var(--burdeos);
  transform: rotate(90deg);
}

.dropzone-compact {
  padding: 0.9rem 1rem;
}
.dropzone-compact .dropzone-empty {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  text-align: left;
}
.dropzone-compact svg { color: var(--burdeos); flex: 0 0 auto; }
.dropzone-compact .dropzone-empty span { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.dropzone-compact .dropzone-empty em { color: var(--ink-faint); font-style: normal; }
.dropzone-compact .dropzone-link { margin-left: auto; font-size: 0.85rem; }
.dropzone-compact .dropzone-filled { gap: 0.6rem; }

/* ---------- FIELDS ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.field-opt {
  color: var(--ink-faint);
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s var(--ease-out), box-shadow .25s var(--ease-out);
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--burdeos);
  box-shadow: 0 0 0 4px rgba(122, 16, 38, 0.12);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.45;
  cursor: pointer;
}
.field-checkbox input {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--burdeos);
  cursor: pointer;
}
.field-checkbox a { color: var(--burdeos); text-decoration: underline; text-underline-offset: 2px; }

.form-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
  justify-content: center;
}

/* Estado éxito */
.uploader-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  animation: successIn .6s var(--ease-out) both;
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-check {
  width: 88px; height: 88px;
  color: var(--burdeos);
  margin-bottom: 1.4rem;
  animation: successPop .6s var(--ease-out) .15s both;
}
@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successCircle .8s var(--ease-out) .2s forwards;
}
.success-check path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: successPath .5s var(--ease-out) .7s forwards;
}
@keyframes successCircle { to { stroke-dashoffset: 0; } }
@keyframes successPath { to { stroke-dashoffset: 0; } }
.success-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
  line-height: 1.2;
  color: var(--ink);
}
.success-text {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.success-text-emph {
  font-family: var(--serif);
  font-style: italic;
  color: var(--burdeos);
  font-size: 1.1rem;
  margin-block: 1rem;
}

/* ---------- CÓMO FUNCIONA ---------- */
.howto {
  background: var(--white);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding-left: clamp(1rem, 4vw, 3.5rem);
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(clamp(1rem, 4vw, 3.5rem) - 1px);
  top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg,
              var(--burdeos) 0%,
              var(--burdeos-soft) 50%,
              var(--burdeos-tint) 100%);
}
.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: 1.4rem;
  align-items: center;
  position: relative;
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: calc(clamp(1rem, 4vw, 3.5rem) * -1 - 5px);
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--burdeos);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--burdeos);
}
.timeline-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  font-style: italic;
  color: var(--burdeos);
  letter-spacing: -0.02em;
  min-width: 2.4ch;
}
.timeline-body h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.timeline-body p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  line-height: 1.55;
}
.timeline-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--burdeos);
  flex: 0 0 auto;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.timeline-step:hover .timeline-icon {
  background: var(--burdeos);
  color: var(--white);
  transform: rotate(-5deg) scale(1.05);
}

/* ---------- COMPAÑÍAS (BRAND STRIP) ---------- */
.brands {
  background: var(--bg-cream);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}
.brands-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.brands-head .kicker { margin-inline: auto; }
.brands-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.brands-title em {
  font-style: italic;
  color: var(--burdeos);
  font-weight: 500;
}

.brands-block {
  margin-bottom: 1.8rem;
}
.brands-block-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 0.8rem;
}

.brands-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands-marquee-track {
  display: flex;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: max-content;
  animation: marqueeRoll 38s linear infinite;
  align-items: center;
  padding: 0.6rem 0;
}
.brands-marquee-reverse .brands-marquee-track {
  animation-direction: reverse;
  animation-duration: 44s;
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brands-marquee:hover .brands-marquee-track {
  animation-play-state: paused;
}

.brand-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.05rem 0.6rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out),
              transform .3s var(--ease-out);
  white-space: nowrap;
}
.brand-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: saturate(0.9);
  border-radius: 6px;
}
.brand-chip span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.brand-chip:hover {
  border-color: var(--burdeos-line);
  box-shadow: 0 12px 24px -12px rgba(122, 16, 38, 0.25);
  transform: translateY(-2px);
}
.brand-chip:hover img { filter: saturate(1.05); }

.brands-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 1.2rem;
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.5;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee-track { animation: none; transform: translateX(0); }
  .brands-marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

/* ---------- SOBRE NOSOTROS ---------- */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-visual {
  position: relative;
  width: 100%;
}
.about-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.about-carousel-track {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .8s var(--ease-out);
  z-index: 1;
}
.about-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 4;
  transition: background .25s, transform .25s var(--ease-out);
  opacity: 0;
}
.about-carousel:hover .about-carousel-arrow,
.about-carousel:focus-within .about-carousel-arrow {
  opacity: 1;
}
.about-carousel-arrow:hover {
  background: var(--burdeos);
  color: var(--white);
}
.about-carousel-prev { left: 0.7rem; }
.about-carousel-next { right: 0.7rem; }
.about-carousel-prev:hover { transform: translateY(-50%) translateX(-3px); }
.about-carousel-next:hover { transform: translateY(-50%) translateX(3px); }

.about-carousel-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
  padding: 0.4rem 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
}
.about-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: background .25s, transform .25s, width .3s var(--ease-out);
}
.about-dot:hover { background: rgba(255, 255, 255, 0.8); }
.about-dot.is-active {
  background: var(--white);
  width: 22px;
}

.about-photo-mark {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--burdeos);
  color: var(--white);
  width: 130px; height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--shadow-burdeos);
  border: 6px solid var(--white);
  z-index: 3;
}
.about-photo-mark-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  font-weight: 500;
}
.about-photo-mark-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.about-copy .section-sub { margin-bottom: 1.2rem; }
.about-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-bullet strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--burdeos);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.about-bullet span {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.35;
  display: block;
}

/* ---------- MAPA CONTACTO ---------- */
.contact-map {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  aspect-ratio: 16 / 9;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.7) brightness(0.95);
  display: block;
}
.contact-map-link {
  position: absolute;
  bottom: 0.6rem; right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: var(--white);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: color .25s, background .25s;
}
.contact-map-link:hover { color: var(--burdeos); }

.timeline-cta {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  background: var(--bg-cream);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--burdeos-line);
}
.timeline-cta h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.timeline-cta p {
  font-size: 0.98rem;
  color: var(--ink-mute);
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.timeline-cta-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- TESTIMONIOS ---------- */
.testimonials {
  background: var(--bg-cream);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.testi-card {
  background: var(--white);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-stars {
  display: flex;
  gap: 2px;
  color: #E8B931;
  margin-bottom: 1rem;
}
.testi-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burdeos), var(--burdeos-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}
.testi-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.testi-role {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: 2px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(clamp(1rem, 2vw, 2rem) / -2);
  top: 20%; bottom: 20%;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--burdeos);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-feature-settings: "ss01" on, "tnum" on;
}
.stat-num span[data-counter] { font-variant-numeric: tabular-nums; }
.stat-label {
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-intro .section-sub { margin-bottom: 1.5rem; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--bg-cream);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
  overflow: hidden;
}
.faq-item[open] {
  background: var(--white);
  border-color: var(--burdeos-line);
  box-shadow: 0 14px 32px -20px rgba(122, 16, 38, 0.2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: color .25s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--burdeos); }

.faq-plus {
  display: inline-block;
  width: 18px; height: 18px;
  position: relative;
  flex: 0 0 auto;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--burdeos);
  border-radius: 99px;
  transition: transform .3s var(--ease-out);
}
.faq-plus::before {
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.faq-plus::after {
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }

.faq-content {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-mute);
  line-height: 1.6;
  animation: faqOpen .35s var(--ease-out);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- CONTACTO ---------- */
.contact {
  background: linear-gradient(135deg, var(--burdeos-deep) 0%, var(--burdeos-dark) 60%, var(--burdeos) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(at 20% 80%, rgba(155, 42, 62, 0.35) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(122, 16, 38, 0.4) 0%, transparent 45%);
  filter: blur(70px);
  z-index: 0;
}
.contact > .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-copy .section-title { color: var(--white); }
.contact-copy .section-title em {
  color: #F0CFA0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.contact-copy .section-sub { color: rgba(255, 255, 255, 0.82); }

.contact-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-info-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-info-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-info-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  display: inline-block;
  transition: color .25s;
}
a.contact-info-value:hover { color: #FFC9D1; }

.contact-hours {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}
.contact-hours p { margin-bottom: 0.25rem; }
.contact-hours p strong { color: var(--white); font-weight: 600; }
.contact-hours-row {
  margin-top: 0.6rem !important;
}
.contact-hours-row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}
.contact-hours-note {
  margin-top: 0.8rem !important;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
}

/* Contact form */
.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.form-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-cream);
  border-radius: 99px;
  padding: 4px;
  border: 0;
}
.form-tabs label {
  cursor: pointer;
  text-align: center;
}
.form-tabs input { display: none; }
.form-tabs span {
  display: block;
  padding: 0.6rem 0.5rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-mute);
  transition: background .25s, color .25s;
}
.form-tabs label:hover span { color: var(--ink); }
.form-tabs input:checked + span {
  background: var(--burdeos);
  color: var(--white);
  box-shadow: var(--shadow-burdeos);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--paper);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  color: var(--ink-soft);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.footer-tag {
  font-size: 0.92rem;
  color: var(--ink-mute);
  max-width: 36ch;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.footer-tag-2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--burdeos);
  max-width: 36ch;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col li, .footer-col a {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.5;
  transition: color .25s;
}
.footer-col a:hover { color: var(--burdeos); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--ink-mute);
  transition: color .25s;
}
.footer-legal a:hover { color: var(--burdeos); }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed;
  bottom: clamp(1rem, 2.5vw, 1.8rem);
  right: clamp(1rem, 2.5vw, 1.8rem);
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.55);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.wa-float:hover {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 22px 50px -10px rgba(37, 211, 102, 0.7);
}
.wa-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: waPulse 2.2s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--ink);
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: clamp(0.8rem, 2vw, 1.5rem);
  left: clamp(0.8rem, 2vw, 1.5rem);
  right: clamp(0.8rem, 2vw, 1.5rem);
  z-index: 95;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -15px rgba(26, 26, 26, 0.25);
  max-width: 720px;
  margin-inline: auto;
  animation: cookieIn .55s var(--ease-out) .8s both;
}
@keyframes cookieIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}
.cookie-banner-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.cookie-banner-desc {
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.cookie-banner-desc a {
  color: var(--burdeos);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE — Mobile First Adjustments
   ============================================================ */

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .hero-title { max-width: none; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .energy-grid,
  .contact-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .testi-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-visual { max-width: 420px; margin-inline: auto; }
  .about-bullets { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-h: 68px; }
  .cookie-banner-inner { padding: 0.9rem 1rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
  .wa-float { bottom: 6rem; }
  .cookie-banner:has(+ .wa-float) ~ .wa-float,
  body:has(.cookie-banner:not([hidden])) .wa-float { bottom: 6rem; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 1.5rem); min-height: auto; }
  .hero-visual { aspect-ratio: 4/4.5; max-height: 460px; }
  .hero-card-1 { left: 0.5rem; bottom: -1rem; padding: 0.85rem 1rem; }
  .hero-card-2 { right: 0.5rem; top: -1.75rem; padding: 0.85rem 1rem; }
  .hero-card-num { font-size: 1.3rem; }
  .hero-card-label { font-size: 0.72rem; max-width: 14ch; }
  .hero-scroll { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-tabs { grid-template-columns: 1fr; gap: 4px; padding: 4px; }

  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: calc(1.5rem - 1px); }
  .timeline-step { grid-template-columns: auto 1fr; gap: 0.8rem; }
  .timeline-step::before { left: calc(1.5rem * -1 - 5px); }
  .timeline-icon { display: none; }
  .timeline-num { font-size: 1.4rem; }
  .timeline-body h3 { font-size: 1.1rem; }

  .stats-row { grid-template-columns: 1fr 1fr; padding: 1.5rem 1rem; }
  .stat::after { display: none !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .wa-float { width: 54px; height: 54px; }
  .wa-tooltip { display: none; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .hero-card-1 { left: 0.4rem; bottom: -0.6rem; padding: 0.7rem 0.85rem; }
  .hero-card-1 .hero-card-icon { width: 36px; height: 36px; }
  .hero-card-1 .hero-card-num { font-size: 1.1rem; }
  .hero-card-1 .hero-card-label { font-size: 0.66rem; max-width: 12ch; }
  .hero-card-2 { right: 0.4rem; top: -1.6rem; padding: 0.7rem 0.85rem; }
  .hero-card-2 .hero-card-icon { width: 36px; height: 36px; }
  .hero-card-2 .hero-card-num { font-size: 1.1rem; }
  .hero-card-2 .hero-card-label { font-size: 0.66rem; max-width: 11ch; }
}

/* Reduced motion: solo elementos verdaderamente intrusivos */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .splash-bar span,
  .hero-card,
  .kicker-dot::before,
  .wa-pulse,
  .hero-scroll span {
    animation: none !important;
  }
  .hero-card { transform: none !important; }
  .reveal { transition-duration: .4s; }
}
