/* ===========================================================
   CEA Consultores — hoja de estilos
   Diseño moderno sobre la paleta original marrón/caramelo
   =========================================================== */

:root {
  --primary: #8B5E3C;
  --primary-dark: #6F472C;
  --primary-deep: #4E3019;
  --secondary: #C7A17A;
  --secondary-light: #E3CBA9;
  --background: #F8F6F3;
  --background-alt: #FDFCFA;
  --white: #FFFFFF;
  --text: #2E2E2E;
  --gray: #6B7280;

  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-deep: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139, 94, 60, 0.12), rgba(199, 161, 122, 0.16));

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 6px 18px rgba(46, 46, 46, 0.06);
  --shadow-md: 0 18px 44px rgba(78, 48, 25, 0.12);
  --shadow-lg: 0 28px 70px rgba(78, 48, 25, 0.18);
  --shadow-glow: 0 12px 34px rgba(139, 94, 60, 0.35);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --border: rgba(139, 94, 60, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  background-image:
    radial-gradient(1100px 520px at 100% -10%, rgba(199, 161, 122, 0.14), transparent 62%),
    radial-gradient(900px 480px at -12% 22%, rgba(139, 94, 60, 0.09), transparent 60%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  font-feature-settings: "liga", "dlig";
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/*
  ---- Barra de desplazamiento moderna ----
*/
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 999px;
  border: 3px solid var(--background);
}
::selection { background: var(--primary); color: #fff; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll reveal (GSAP) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Encabezado (glassmorphism) ---------- */
header#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(78, 48, 25, 0.5);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

header#site-header.scrolled {
  background-color: rgba(78, 48, 25, 0.82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 30px;
  max-width: 1400px;
  margin: 0 auto;
  transition: padding 0.3s ease;
}

header#site-header.scrolled .header-inner {
  padding-top: 4px;
  padding-bottom: 4px;
}

.logo {
  height: 84px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
  transition: height 0.3s ease;
}

header#site-header.scrolled .logo {
  height: 68px;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transition: width 0.35s var(--ease);
}

nav a:hover { color: var(--white); }
nav a:hover::after { width: 100%; }

.btn-c,
.btn-contacto {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  color: var(--primary-dark);
  border: 1px solid rgba(139, 94, 60, 0.14);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14.5px;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s var(--ease), box-shadow 0.3s ease;
}

.btn-c::after,
.btn-contacto::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn-c:hover,
.btn-contacto:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-c:hover::after,
.btn-contacto:hover::after { left: 130%; }

.btn-contacto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
}

.btn-contacto i { transition: transform 0.3s ease; }
.btn-contacto:hover i { transform: scale(1.15) rotate(-6deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 110px 0 90px;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 460px at 50% 42%, rgba(199, 161, 122, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(46, 30, 18, 0.76) 0%, rgba(46, 30, 18, 0.5) 50%, rgba(46, 30, 18, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
}

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  padding: 8px 16px;
  border: 1px solid rgba(199, 161, 122, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(199, 161, 122, 0.1);
  backdrop-filter: blur(4px);
  margin-bottom: 22px;
}

.eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--secondary);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 26px;
  color: var(--white);
  text-wrap: balance;
}

.hero-subtitle {
  display: block;
  background: linear-gradient(110deg, var(--secondary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Secciones genéricas ---------- */
section {
  padding: clamp(80px, 11vw, 132px) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 600;
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-divider {
  width: 88px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(139, 94, 60, 0.3);
}

/* ---------- ¿Por qué elegirnos? ---------- */
.why-section {
  background-color: var(--white);
}

.why-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 94, 60, 0.34);
}

.why-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(139, 94, 60, 0.08);
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}

.why-card:hover .why-icon {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray);
  font-size: 15px;
}

/* ---------- Quiénes somos ---------- */
.about-section {
  background-color: var(--background);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.about-text p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.75;
}

.stats-grid {
  margin-top: 48px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.stat i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 900px) {
  .stat { justify-content: flex-start; }
}

/* ---------- Misión y Visión ---------- */
.mission-vision {
  background-color: var(--white);
  position: relative;
}

.mission-vision-grid {
  display: grid;
  gap: 32px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { transform: scaleX(1); }

.card-content {
  padding: 40px 36px;
  text-align: left;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 18px;
}

.card-content h3 {
  font-size: 23px;
  margin-bottom: 14px;
}

.card-content p {
  color: var(--gray);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .mission-vision-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Nuestros valores ---------- */
.values-section {
  background-color: var(--background);
}

.values-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.value-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(199, 161, 122, 0.4);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(199, 161, 122, 0.22), rgba(199, 161, 122, 0.1));
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 18px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}

.value-card:hover .value-icon {
  background: var(--gradient);
  color: var(--white);
  transform: rotate(-6deg) scale(1.06);
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--gray);
  font-size: 15px;
}

/* ---------- Servicios ---------- */
.services-section {
  background-color: var(--white);
}

.services-intro {
  text-align: center;
  max-width: 760px;
  margin: -24px auto 60px auto;
}

.services-intro p {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.75;
}

.services-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  background-color: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 94, 60, 0.3);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(139, 94, 60, 0.08);
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-4px) scale(1.06);
}

.service-card h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  line-height: 1.65;
  font-size: 15px;
}

/* ---------- Proceso de trabajo ---------- */
.process-section {
  background-color: var(--background);
}

.process-track {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}

.process-step {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(199, 161, 122, 0.4);
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--gradient-soft);
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(139, 94, 60, 0.08);
  transition: background 0.4s ease, color 0.4s ease;
}

.process-step:hover .process-number {
  background: var(--gradient);
  color: var(--white);
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray);
  font-size: 15px;
}

/* ---------- Honorarios ---------- */
.fees-section {
  background-color: var(--white);
  position: relative;
}

.fees-card {
  max-width: 660px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 52px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.fees-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient);
}

.fees-card h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.fees-card > p {
  color: var(--gray);
  margin-bottom: 26px;
}

.fees-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.fees-list li {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.fees-list i {
  color: var(--primary);
  margin-right: 10px;
}

/* ---------- Llamado a la acción ---------- */
.cta-final {
  background: var(--gradient-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 380px at 50% 0%, rgba(199, 161, 122, 0.28), transparent 70%),
    radial-gradient(480px 300px at 85% 100%, rgba(139, 94, 60, 0.4), transparent 70%);
  pointer-events: none;
}

.cta-final .container { position: relative; z-index: 2; }

.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 18px;
  text-wrap: balance;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 34px auto;
  font-size: 17px;
}

.btn-cta-final {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 32px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.btn-cta-final::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn-cta-final:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.btn-cta-final:hover::after { left: 130%; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: #241811;
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-content: start;
}

.footer-logo {
  height: 108px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 4px 0;
}

.footer-description {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0;
  margin: 0 0 14px;
  color: var(--secondary-light);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-col a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-contact {
  min-width: 0;
}

.footer-bottom {
  text-align: center;
  padding: 26px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===========================================================
   Mejoras GSAP, preloader y elementos visuales
   =========================================================== */

body.is-loading {
  overflow: hidden;
  height: 100vh;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(500px 320px at 50% 40%, rgba(199, 161, 122, 0.18), transparent 70%),
    var(--primary-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.preloader-logo {
  height: 64px;
  opacity: 0.95;
  animation: preloaderFloat 2.4s ease-in-out infinite;
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.preloader-count {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
}

.preloader-bar {
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

/* ---------- Hero: texto dividido y guía de scroll ---------- */
.hero-title .line {
  padding-bottom: 0.08em;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-cue .cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
  animation: cueMove 1.8s ease-in-out infinite;
}

@keyframes cueMove {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Formas decorativas ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.about-section .blob-1 { width: 360px; height: 360px; background: var(--secondary); top: -120px; right: -100px; }
.about-section .blob-2 { width: 280px; height: 280px; background: var(--primary); bottom: -100px; left: -80px; opacity: 0.16; }

.cta-final .blob-1 { width: 420px; height: 420px; background: var(--secondary); top: -180px; left: 50%; transform: translateX(-50%); opacity: 0.14; }

/* ---------- Quiénes somos: ilustración ---------- */
@media (min-width: 900px) {
  .about-content {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: left;
  }

  .about-content .about-text {
    margin: 0;
    max-width: none;
  }
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.about-visual svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(78, 48, 25, 0.16));
}

.about-visual .ring {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px dashed rgba(139, 94, 60, 0.3);
  border-radius: 50%;
  animation: ringSpin 40s linear infinite;
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Tarjetas con perspectiva (tilt, GSAP) ---------- */
.why-card, .value-card, .service-card, .process-step, .card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Línea de progreso del proceso (GSAP) ---------- */
.process-track {
  position: relative;
}

.process-line {
  display: none;
  position: absolute;
  top: -18px;
  left: 4%;
  right: 4%;
  height: 2px;
  background-color: rgba(139, 94, 60, 0.15);
}

.process-line span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
}

@media (min-width: 900px) {
  .process-line { display: block; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2EE07B, #1FAF5A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}

.float-whatsapp:hover {
  transform: translateY(-4px) scale(1.06);
}

.float-whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Botones magnéticos (GSAP) ---------- */
.btn-contacto, .btn-cta-final, .btn-c {
  will-change: transform;
}

/* ---------- Accesibilidad: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #preloader,
  .scroll-cue .cue-line,
  .float-whatsapp-ring,
  .about-visual .ring {
    display: none !important;
    animation: none !important;
  }

  .hero video { animation: none; }
  .preloader-logo { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 6px 20px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .hero {
    min-height: 560px;
    padding: 100px 0 84px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fees-card {
    padding: 40px 28px;
  }

  .card-content { padding: 32px 26px; }
}

@media (max-width: 640px) {
  .float-whatsapp { width: 52px; height: 52px; font-size: 23px; bottom: 18px; right: 18px; }
  .logo { height: 66px; }
  .footer-logo { height: 92px; }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-contact { grid-column: auto; }

  nav {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}