/* ═══════════════════════════════════════
   HELIOS Colectivo Empresarial
   Sistema de diseño — v1.0
═══════════════════════════════════════ */

:root {
  --gold:        #B5902A;
  --gold-light:  #E8A020;
  --gold-pale:   #F0D98A;
  --navy:        #0D1B2A;
  --navy-mid:    #162436;
  --ivory:       #F7F4EE;
  --white:       #FFFFFF;
  --charcoal:    #1C1C1E;
  --gray:        #6B7280;
  --gray-light:  #E5E7EB;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 4px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 8px 40px rgba(13, 27, 42, 0.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible — contextual ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.why :focus-visible,
.footer :focus-visible { outline-color: #fff; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Container ── */
.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Tipografía global ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-body {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: #9A7A22;
  border-color: #9A7A22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 144, 42, 0.38);
}

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

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: #9A7A22;
  border-color: #9A7A22;
  transform: translateY(-2px);
}

.btn--full  { width: 100%; }
.btn--large { font-size: 1.0625rem; padding: 1.125rem 2.75rem; }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 144, 42, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
}

.logo { display: flex; flex-direction: column; line-height: 1; }

.logo__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.logo__tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}

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

.nav a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.nav a:not(.btn):hover { color: var(--gold-light); }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(181,144,42,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181,144,42,0.3), transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: center;
  padding-block: 6rem;
}

/* ── Stats block ── */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(181,144,42,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.stat {
  padding: 1.625rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-right: 1px solid rgba(181,144,42,0.15);
  border-bottom: 1px solid rgba(181,144,42,0.15);
}

.stat:nth-child(2n) { border-right: none; }
.stat:nth-child(3),
.stat:nth-child(4)  { border-bottom: none; }

.stat__number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  order: -1;
}

.stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  line-height: 1.35;
}

.stat__detail {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.55;
  margin-top: 0.35rem;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.hero__body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.75rem;
}

/* ── Emblema decorativo ── */
.emblem {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emblem__ring {
  position: absolute;
  border-radius: 50%;
}

.emblem__ring--outer {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(181,144,42,0.22);
  animation: spin 40s linear infinite;
}

.emblem__ring--mid {
  width: 165px;
  height: 165px;
  border: 1px solid rgba(181,144,42,0.38);
  animation: spin 28s linear infinite reverse;
}

.emblem__ring--inner {
  width: 110px;
  height: 110px;
  border: 1px solid rgba(181,144,42,0.6);
  background: rgba(181,144,42,0.06);
}

.emblem__letter {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════
   PROBLEMA
═══════════════════════════════ */
.problem {
  background: var(--ivory);
  padding-block: 6rem;
}

.problem__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 3rem;
  max-width: 580px;
  line-height: 1.2;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.problem__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.problem__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.55;
}

.problem__item p {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.75;
  padding-top: 0.625rem;
}

/* ═══════════════════════════════
   SERVICIOS
═══════════════════════════════ */
.services {
  padding-block: 6rem;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5rem;
}

/* ── Tarjeta de servicio ── */
.service-card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card--featured {
  border-color: var(--gray-light);
}

.service-card--dark {
  background: var(--navy);
  border-color: transparent;
}

.service-card__badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.service-card__risk {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.375rem;
}

.service-card--dark .service-card__risk { color: var(--gold-light); }

.service-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.service-card--dark .service-card__name { color: var(--white); }

.service-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  padding-bottom: 1.125rem;
  margin-bottom: 1.125rem;
  border-bottom: 1px solid var(--gray-light);
}

.service-card--dark .service-card__price {
  border-bottom-color: rgba(255,255,255,0.1);
}

.service-card__amount {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.service-card--dark .service-card__amount { color: var(--gold-light); }

.service-card__currency {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.3;
  align-self: flex-end;
  padding-bottom: 0.25rem;
  max-width: 80px;
}

.service-card--dark .service-card__currency { color: rgba(255,255,255,0.45); }

.service-card__desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.375rem;
}

.service-card--dark .service-card__desc { color: rgba(255,255,255,0.55); }

.service-card__includes {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.service-card__includes li {
  font-size: 0.875rem;
  color: var(--charcoal);
  padding-left: 1.375rem;
  position: relative;
  line-height: 1.5;
}

.service-card__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.7rem;
  top: 3px;
}

.service-card--dark .service-card__includes li { color: rgba(255,255,255,0.78); }
.service-card--dark .service-card__includes li::before { color: var(--gold-light); }

/* ═══════════════════════════════
   POR QUÉ HELIOS
═══════════════════════════════ */
.why {
  background: var(--navy);
  padding-block: 6rem;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(181,144,42,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.why .section-title { color: var(--white); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 3rem;
  margin-top: 3.5rem;
}

.why__icon {
  display: block;
  font-size: 1.375rem;
  color: var(--gold);
  margin-bottom: 1.125rem;
}

.why__item h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.why__item p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* ═══════════════════════════════
   CTA FINAL
═══════════════════════════════ */
.cta-final {
  background: var(--ivory);
  padding-block: 7rem;
  text-align: center;
}

.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.125rem;
  line-height: 1.15;
}

.cta-final__body {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer {
  background: var(--navy);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(181,144,42,0.15);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
}

.footer .logo__name   { font-size: 1.25rem; }
.footer .logo__tagline { margin-top: 2px; }

.footer__location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.375rem;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════
   WHATSAPP FLOTANTE
═══════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 5rem;
  }
  .hero__body { max-width: 100%; }
  .hero__stats {
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav a:not(.btn) { display: none; }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .problem__grid { gap: 1.75rem; }
  .why__grid     { gap: 2rem; }

  .cta-final { padding-block: 5rem; }
}

@media (max-width: 480px) {
  .header__inner { padding-block: 0.75rem; }
  .logo__name    { font-size: 1.375rem; }
  .nav           { gap: 0.875rem; }
  .btn--outline  { padding: 0.5rem 1rem; font-size: 0.8125rem; }
  .hero__title   { font-size: 2.5rem; }
}
