:root {
  --page: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #edf2ef;
  --ink: #1c2c27;
  --muted: #62726c;
  --line: #dce5e0;
  --brand: #176b57;
  --brand-dark: #105341;
  --brand-soft: #e6f1ed;
  --brand-button-text: #ffffff;
  --section: #edf2ef;
  --hero-glow: rgba(216, 233, 225, 0.58);
  --hero-note-shadow: #dcebe4;
  --announcement-bg: #1c2c27;
  --announcement-text: #e4ece8;
  --footer-bg: #1c2c27;
  --footer-text: #c4d0ca;
  --feature-bg: #1c2c27;
  --feature-text: #ffffff;
  --feature-muted: #d5e0db;
  --brand-mark-text: #ffffff;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

[data-theme='dark'] {
  --page: #111916;
  --surface: #18221e;
  --surface-soft: #202d27;
  --ink: #edf4f0;
  --muted: #a1b1a9;
  --line: #33443b;
  --brand: #79c7a6;
  --brand-dark: #8ed6b7;
  --brand-soft: #243d32;
  --brand-button-text: #10251c;
  --section: #151f1b;
  --hero-glow: rgba(64, 135, 105, 0.16);
  --hero-note-shadow: #263a30;
  --announcement-bg: #0b100d;
  --announcement-text: #e4ece8;
  --footer-bg: #090e0b;
  --footer-text: #c4d0ca;
  --feature-bg: #090e0b;
  --feature-text: #edf4f0;
  --feature-muted: #c1d0c8;
  --brand-mark-text: #10251c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
.brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.035em;
}

h1.font-black,
h2.font-black,
h3.font-black,
h4.font-black {
  font-weight: 700;
}

::selection {
  background: #c6e4d9;
  color: var(--ink);
}

a {
  text-underline-offset: 3px;
}

header.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.announcement-bar {
  background: var(--announcement-bg);
  color: var(--announcement-text);
}

.brand-mark {
  background: var(--brand);
  color: var(--brand-mark-text);
  border-radius: 0.75rem;
  box-shadow: none;
}

.hero-section {
  background:
    radial-gradient(ellipse at 82% 18%, var(--hero-glow), transparent 34%),
    var(--page);
}

.hero-layout {
  min-height: 480px;
}

.hero-copy h1 {
  max-width: 13ch;
  color: var(--ink);
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  line-height: 1.08;
}

.hero-title-accent {
  color: var(--brand);
}

.hero-note {
  position: relative;
  max-width: 510px;
  margin-left: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(28, 44, 39, 0.08);
}

.hero-note::after {
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: -1;
  width: 42%;
  height: 42%;
  border-radius: 1rem;
  background: var(--hero-note-shadow);
  content: '';
}

.hero-note-label,
.section-eyebrow {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.hero-step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-step p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.benefit-index {
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-icon {
  color: #fff !important;
}

.neon-text {
  text-shadow: none;
}

.neon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--brand-button-text) !important;
  font-weight: 700;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.neon-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  box-shadow: none;
}

.glass-box {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 44, 39, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glass-box:hover {
  border-color: #b7cec3;
}

.hero-metrics .glass-box {
  box-shadow: none;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(28, 44, 39, 0.08);
}

.service-card::after {
  display: none;
}

.service-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-featured {
  background: var(--feature-bg);
  border: 1px solid var(--feature-bg);
  border-radius: 1rem;
  color: var(--feature-text);
}

.service-featured h4,
.service-featured .text-white {
  color: var(--feature-text) !important;
}

.service-featured p,
.service-featured li {
  color: var(--feature-muted) !important;
}

.service-featured .service-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #c6e4d9;
}

.service-featured li span {
  color: var(--brand) !important;
}

.calc-checkbox:checked + label {
  border-color: var(--brand);
  background: var(--brand-soft);
}

#cotizador label.flex {
  background: var(--surface);
  border-color: var(--line);
}

#cotizador label.flex:hover {
  border-color: #91b6a5;
}

#cotizador input[type='checkbox'] {
  accent-color: var(--brand);
}

#contacto input,
#contacto select,
#contacto textarea {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

#contacto input::placeholder,
#contacto textarea::placeholder {
  color: var(--muted);
}

#contacto input:focus,
#contacto select:focus,
#contacto textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(23, 107, 87, 0.12);
}

#mobile-menu {
  background: var(--surface);
  border-color: var(--line);
}

#servicios,
#beneficios,
#contacto {
  background: var(--section) !important;
  border-color: var(--line) !important;
}

#cotizador .bg-brand-black {
  background: var(--surface-soft) !important;
}

.theme-toggle {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

footer {
  background: var(--footer-bg) !important;
  border-color: #34443e !important;
  color: var(--footer-text) !important;
}

footer .text-white {
  color: var(--brand-button-text) !important;
}

footer .brand-mark {
  background: #d6e8df;
  color: var(--ink);
}

.text-white {
  color: var(--ink) !important;
}

.text-brand-green {
  color: var(--brand) !important;
}

.text-slate-100,
.text-slate-200,
.text-slate-300 {
  color: var(--muted) !important;
}

.text-slate-400,
.text-slate-500 {
  color: var(--muted) !important;
}

.text-slate-800,
.text-slate-900 {
  color: var(--ink) !important;
}

.border-slate-700,
.border-slate-800,
.border-slate-900 {
  border-color: var(--line) !important;
}

.bg-slate-800 {
  background-color: var(--surface-soft) !important;
}

footer .text-slate-400,
footer .text-slate-500 {
  color: var(--footer-text) !important;
}

@media (max-width: 767px) {
  .hero-layout {
    min-height: 0;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .hero-note::after {
    right: -8px;
    bottom: -8px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  header nav {
    gap: 0.75rem !important;
  }

  header nav a {
    font-size: 0.75rem;
  }

  header .neon-btn {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
