/* ===========================================================
   HogarPRO Asesores — Landing Page
   Design tokens, base, layout, components, responsive
   =========================================================== */

:root {
  --bg-deep: #0a1a24;
  --bg-deep-2: #07141d;
  --bg-card: #0f2330;
  --bg-elevated: rgba(20, 48, 64, 0.5);
  --bg-card-solid: #102634;

  --green-vivid: #22f04f;
  --green-aqua: #17daaa;
  --green-soft: #16c794;
  --green-glow: rgba(34, 240, 79, 0.18);
  --green-grad: linear-gradient(135deg, #17daaa 0%, #22f04f 100%);

  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.14);

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-handwritten: 'Caveat', cursive;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 88px;

  --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px var(--green-glow);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }

/* ---------- helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--green-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
}
.kicker.center { justify-content: center; display: flex; }
.kicker strong { color: var(--green-vivid); font-weight: 700; }
.kicker-dash {
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--green-grad);
  border-radius: 3px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.section-head { margin-bottom: 56px; }
.section-head.center { display: flex; flex-direction: column; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-lg { padding: 18px 32px; font-size: 17px; gap: 14px; }
.btn-primary {
  background: var(--green-grad);
  color: #0a1a24;
  box-shadow: 0 10px 30px -10px rgba(34, 240, 79, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 240, 79, 0.7); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--green-aqua); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 26, 36, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7, 20, 29, 0.92);
  border-bottom-color: var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--green-vivid); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 2px;
  height: 3px;
  background: var(--green-grad);
  border-radius: 3px;
}
.chevron { transition: transform 0.2s ease; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover { background: rgba(34, 240, 79, 0.08); color: var(--green-vivid); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-access { padding: 12px 20px; font-size: 14px; }
.btn-access svg { stroke-width: 2.2; }
.btn-access-secondary { padding: 11px 18px; font-size: 14px; }
.btn-access-secondary svg { stroke-width: 2.2; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* ---------- SLIDER ---------- */
.hero-slider {
  position: relative;
  min-height: 820px;
  display: block;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.9s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg-deep) 0%,
      var(--bg-deep) 30%,
      rgba(10, 26, 36, 0.95) 42%,
      rgba(10, 26, 36, 0.55) 55%,
      rgba(10, 26, 36, 0) 70%),
    linear-gradient(180deg,
      transparent 0%,
      transparent 55%,
      rgba(10, 26, 36, 0.55) 80%,
      rgba(10, 26, 36, 0.92) 100%),
    radial-gradient(900px 500px at 80% 50%, rgba(34, 240, 79, 0.08), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  min-height: 820px;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 220px;
}

/* Animate copy in on active slide */
.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.hero-slide.is-active .hero-copy {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Slider side arrows ---------- */
.slider-arrow-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(7, 20, 29, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}
.slider-arrow-side:hover {
  background: rgba(34, 240, 79, 0.18);
  border-color: var(--green-vivid);
  color: var(--green-vivid);
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}
.slider-arrow-side:active {
  transform: translateY(-50%) scale(0.96);
}
.slider-arrow-side svg { display: block; }
.slider-prev { left: 28px; }
.slider-next { right: 28px; }

/* ---------- hero bullets (slide 3) ---------- */
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
}
.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-grad);
  box-shadow: 0 0 12px rgba(34, 240, 79, 0.6);
  flex-shrink: 0;
}

/* ===========================================================
   WHATSAPP FAB (Floating Action Button)
   =========================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px -6px rgba(37, 211, 102, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
}
.whatsapp-fab:active { transform: scale(0.96); }

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.55);
  z-index: -1;
  animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.fab-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-card-solid);
  border-right: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
}
.whatsapp-fab:hover .fab-tooltip,
.whatsapp-fab:focus-visible .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fab-pulse { animation: none; }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.handwritten-note {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.arrow-doodle { flex-shrink: 0; }
.handwritten-text {
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-vivid);
  line-height: 1.05;
  white-space: nowrap;
}

/* ---------- features card ---------- */
.features-card {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 32px 36px;
  background: linear-gradient(180deg, rgba(20, 48, 64, 0.45), rgba(15, 35, 48, 0.4));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--green-vivid);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.feature-text h3 .bold { font-weight: 700; color: #fff; }
.feature-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===========================================================
   GENERIC SECTIONS
   =========================================================== */
.section {
  padding: 110px 0;
  position: relative;
}
.section-dark {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(23, 218, 170, 0.07), transparent 70%),
    var(--bg-deep-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.two-col.reverse .col-image { order: -1; }
.col-text .lead { font-size: 1.15rem; color: var(--text-primary); margin-bottom: 16px; }
.col-text p { color: var(--text-muted); margin-bottom: 14px; }

.img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 20, 29, 0.4));
  pointer-events: none;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--green-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===========================================================
   SERVICIOS
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(180deg, rgba(20, 48, 64, 0.55), rgba(15, 35, 48, 0.35));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 240, 79, 0.35);
  box-shadow: 0 24px 60px -28px rgba(34, 240, 79, 0.4);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(34, 240, 79, 0.08);
  border: 1px solid rgba(34, 240, 79, 0.18);
  color: var(--green-vivid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}
.service-card-cta {
  background: linear-gradient(135deg, rgba(23, 218, 170, 0.18), rgba(34, 240, 79, 0.10));
  border-color: rgba(34, 240, 79, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.service-card-cta h3 { color: #fff; }
.service-card-cta p { margin-bottom: 18px; }

/* ===========================================================
   PROCESO
   =========================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 240, 79, 0.4), transparent);
}
.step {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  z-index: 1;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--green-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ===========================================================
   TESTIMONIOS
   =========================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.testimonial-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.testimonial-body {
  padding: 28px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  position: absolute;
  top: 0;
  right: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--green-vivid);
  opacity: 0.25;
}
.testimonial-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.testimonial-author strong { color: #fff; font-weight: 600; }
.testimonial-author span { color: var(--text-dim); font-size: 0.85rem; }

/* ===========================================================
   CHECKLIST
   =========================================================== */
.check-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-grad);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") center / 70% no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") center / 70% no-repeat;
}

/* ===========================================================
   CTA + CONTACTO
   =========================================================== */
.cta-section {
  background: var(--bg-deep-2);
}
.cta-box {
  position: relative;
  padding: 80px 48px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(34, 240, 79, 0.12), transparent 60%),
    var(--bg-card);
  border: 1px solid rgba(34, 240, 79, 0.18);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 240, 79, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 36px 0 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.contact-item:hover { color: var(--green-vivid); }
.contact-item svg { color: var(--green-vivid); flex-shrink: 0; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: #050f15;
  padding-top: 72px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-tag { color: var(--text-muted); max-width: 280px; font-size: 0.95rem; }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4, .footer-contact h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-vivid);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-body);
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-contact p { color: var(--text-muted); font-size: 0.95rem; }

.social { display: flex; gap: 12px; margin-top: 12px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.social a:hover {
  background: rgba(34, 240, 79, 0.1);
  border-color: var(--green-vivid);
  color: var(--green-vivid);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- focus styles ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--green-vivid);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .hero-bg { background-position: right -120px center; }
  .hero-overlay {
    background:
      linear-gradient(90deg,
        var(--bg-deep) 0%,
        var(--bg-deep) 25%,
        rgba(10, 26, 36, 0.95) 45%,
        rgba(10, 26, 36, 0.55) 65%,
        rgba(10, 26, 36, 0) 85%),
      radial-gradient(700px 400px at 80% 50%, rgba(34, 240, 79, 0.06), transparent 65%);
  }
  .features-card { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-deep-2);
    border-top: 1px solid var(--border-subtle);
    padding: 16px 24px 32px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link { padding: 14px 16px; font-size: 16px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: rgba(34, 240, 79, 0.08); border-radius: 10px; }
  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0 0 0 16px;
  }
  .nav-toggle { display: flex; }
  .btn-access-secondary { display: none; }
  .btn-access span { display: none; }
  .btn-access { padding: 12px; }
  .header-actions { gap: 6px; }

  .hero { padding-bottom: 56px; }
  .hero-slider { min-height: 720px; }
  .hero-content {
    min-height: 720px;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 180px;
  }
  .hero-bg {
    background-position: right 60% center;
    background-size: auto 110%;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(10, 26, 36, 0.55) 0%,
        rgba(10, 26, 36, 0.78) 45%,
        var(--bg-deep) 100%);
  }
  .hero-subtitle br { display: none; }
  .hero-title br { display: none; }
  .slider-arrow-side { width: 44px; height: 44px; }
  .slider-prev { left: 14px; }
  .slider-next { right: 14px; }
  .features-card { margin-top: -100px; }

  .section { padding: 72px 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-image { order: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .cta-box { padding: 56px 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .features-card { grid-template-columns: 1fr; padding: 24px; gap: 20px; margin-top: -40px; }
  .hero-content { padding-bottom: 160px; }
  .slider-arrow-side { width: 38px; height: 38px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .whatsapp-fab { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .whatsapp-fab svg { width: 28px; height: 28px; }
  .fab-tooltip { display: none; }
  .hero-title br { display: none; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .handwritten-note { padding-left: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* ============================================================
   Páginas interiores (multi-page CMS) — v1.1.0
   page-hero, breadcrumbs, layout servicios con sidebar,
   testimonios, noticias, guías, FAQ y CTA final.
   ============================================================ */

.page-hero {
  padding: calc(var(--header-h) + 70px) 0 56px;
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(23, 218, 170, 0.10), transparent 70%),
    var(--bg-deep-2);
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--text-primary);
  margin: 10px 0 8px;
}
.page-hero-sub {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.06rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-aqua); }
.breadcrumbs .crumb-actual { color: var(--green-vivid); }

.pagina-interior { padding: 70px 0 90px; }
.contenido-bloques { color: var(--text-muted); line-height: 1.75; }
.contenido-bloques h2, .contenido-bloques h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 1.4em 0 0.5em;
}
.contenido-bloques p { margin-bottom: 1em; }
.contenido-bloques ul, .contenido-bloques ol { margin: 0 0 1em 1.2em; }
.contenido-bloques img { max-width: 100%; border-radius: var(--radius-md); }

/* --- Servicios: sidebar + contenido --- */
.servicios-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: start;
}
.servicios-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.servicios-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.servicios-nav-titulo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.servicios-nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.servicios-nav-link:hover { background: rgba(34, 240, 79, 0.08); color: var(--green-vivid); }
.servicios-nav-link.activo {
  background: var(--green-glow);
  color: var(--green-vivid);
  font-weight: 600;
}
.servicios-aside-cta {
  margin-top: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.servicios-aside-cta .cta-texto { color: var(--text-muted); margin-bottom: 12px; font-size: 0.94rem; }
.btn-block { display: block; width: 100%; }
.servicios-contenido { min-width: 0; }

/* --- Testimonios --- */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.testimonio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonio-rating .estrella { color: var(--border-soft); font-size: 1rem; }
.testimonio-rating .estrella.llena { color: var(--green-vivid); }
.testimonio-texto { color: var(--text-muted); font-style: italic; line-height: 1.65; }
.testimonio-autor { display: flex; flex-direction: column; gap: 2px; }
.testimonio-autor strong { color: var(--text-primary); }
.testimonio-autor span { color: var(--text-dim); font-size: 0.88rem; }

/* --- Noticias / blog --- */
.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 28px;
}
.articulo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.articulo-imagen img { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 0; }
.articulo-cuerpo { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.articulo-fecha { color: var(--text-dim); font-size: 0.85rem; }
.articulo-titulo { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.4; margin: 0; }
.articulo-titulo a { color: var(--text-primary); text-decoration: none; }
.articulo-titulo a:hover { color: var(--green-aqua); }
.articulo-extracto { color: var(--text-muted); font-size: 0.94rem; }
.articulo-leer { margin-top: auto; color: var(--green-vivid); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.estado-vacio {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

/* --- FAQ (details/summary) --- */
.contenido-faq details.faq-item, .contenido-faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.contenido-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}
.contenido-faq summary::-webkit-details-marker { display: none; }
.contenido-faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  color: var(--green-vivid);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.contenido-faq details[open] summary::after { content: '–'; }
.contenido-faq details > *:not(summary) { padding: 0 24px 20px; color: var(--text-muted); }

/* --- Contacto --- */
.contacto-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}
.contacto-info h2 { font-family: var(--font-display); color: var(--text-primary); margin-bottom: 8px; }
.contacto-intro { color: var(--text-muted); margin-bottom: 24px; }
.contacto-canales { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.contacto-canal {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.contacto-canal svg { color: var(--green-aqua); flex-shrink: 0; }
a.contacto-canal:hover { border-color: var(--green-soft); color: var(--text-primary); }
.contacto-whatsapp { width: 100%; text-align: center; }
.contacto-bloques { min-width: 0; }

/* --- CTA final --- */
.cta-final { text-align: center; }
.cta-final-inner h2 { font-family: var(--font-display); color: var(--text-primary); margin-bottom: 10px; }
.cta-final-inner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 26px; }
.cta-final-acciones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Responsive páginas interiores --- */
@media (max-width: 992px) {
  .servicios-layout { grid-template-columns: 1fr; gap: 32px; }
  .servicios-aside { position: static; }
  .contacto-layout { grid-template-columns: 1fr; gap: 36px; }
}
