:root {
  --bg: #f7f7f9;
  --bg-alt: #ffffff;
  --bg-soft: #f3f1f8;
  --primary: #7c3aed;       /* morado principal */
  --primary-dark: #4c1d95;  /* morado profundo */
  --primary-soft: #ede9fe;  /* morado muy suave */
  --accent: #a855f7;
  --text-main: #111827;
  --text-soft: #6b7280;
  --border-subtle: #e5e7eb;
  --danger: #b91c1c;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 999px;
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
  --nav-height: 72px;
  --wa: #25d366;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #ffffff 0, #f5f3ff 40%, #e5e7eb 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.92));
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #f5f3ff 0, #c4b5fd 35%, #7c3aed 80%);
  box-shadow: 0 10px 25px rgba(76, 29, 149, 0.45);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.nav-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile nav dropdown */
@media (max-width: 767px) {
  .main-nav {
    position: absolute;
    inset-inline: 1.25rem;
    top: calc(var(--nav-height) + 0.5rem);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.16);
    padding: 0.9rem 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.is-open {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.4rem;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(76, 29, 149, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 24px 55px rgba(76, 29, 149, 0.55);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid rgba(124, 58, 237, 0.45);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-outline:hover {
  background: var(--primary-soft);
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.25);
  border-color: rgba(124, 58, 237, 0.9);
}

.btn-full {
  width: 100%;
}

.btn-whatsapp-large {
  background: linear-gradient(135deg, var(--wa), #22c55e);
  color: #f9fafb;
  font-size: 1rem;
  padding-inline: 1.8rem;
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-large::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f9fafb 0, #f9fafb 35%, transparent 36%);
  box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.12);
  margin-right: 0.1rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.13), transparent 55%),
    radial-gradient(circle at 100% 20%, rgba(168, 85, 247, 0.12), transparent 55%);
  opacity: 0.8;
  z-index: -1;
  animation: heroGlow 16s ease-in-out infinite alternate;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.18);
  font-size: 0.76rem;
  color: var(--text-soft);
}

.badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #f9fafb;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  max-width: 420px;
  margin-inline: auto;
}

.hero-card {
  background: rgba(248, 250, 252, 0.98);
  border-radius: 24px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.hero-card p {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gallery-image-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #f5f3ff 0, #e5e7eb 60%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(0);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  font-size: 0.86rem;
  color: #4b5563;
}

.gallery-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

/* Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.82rem;
  color: #111827;
}

.form-group input,
.form-group select {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  font-family: inherit;
  background: #ffffff;
  outline: none;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s ease-out;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(22, 163, 74, 0.7);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
  background: #f9fafb;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.form-disclaimer {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.form-message {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.form-message--success {
  color: var(--primary-dark);
}

.form-message--error {
  color: var(--danger);
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #f9fafb 0, #f5f3ff 45%, #e5e7eb 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(124, 58, 237, 0.28);
}

.benefits-grid {
  margin-top: 0.8rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  position: relative;
  background: rgba(248, 250, 252, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1rem 0.95rem 1.05rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.section-cta {
  text-align: center;
  margin-top: 1.6rem;
}

/* Coverage */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.coverage-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
   transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.coverage-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.coverage-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
  border-color: rgba(124, 58, 237, 0.25);
}

.coverage-note {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  text-align: center;
}

/* Trust */
.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr);
  gap: 1.75rem;
  align-items: center;
}

.trust-text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.trust-text p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.trust-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.trust-list li + li {
  margin-top: 0.25rem;
}

.trust-highlight {
  background: linear-gradient(145deg, #7c3aed, #a855f7);
  border-radius: 22px;
  padding: 1.3rem 1.1rem;
  color: #f9fafb;
  box-shadow: 0 20px 55px rgba(76, 29, 149, 0.6);
  max-width: 320px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.trust-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.trust-label {
  font-size: 0.9rem;
}

.trust-subtext {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  opacity: 0.95;
}

/* Final CTA */
.final-cta {
  background: #020617;
  color: #e5e7eb;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.final-cta h2 {
  margin: 0 0 0.2rem;
  font-size: 1.4rem;
}

.final-cta p {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1.8rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  font-size: 0.85rem;
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.footer-col p {
  margin: 0;
  color: #9ca3af;
}

.footer-col ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #9ca3af;
}

.footer-col li + li {
  margin-top: 0.2rem;
}

.footer-col a {
  color: #e5e7eb;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 0.8rem;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.3rem;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, #e5fdf2 0, #22c55e 52%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.7);
  z-index: 50;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, filter 0.18s ease-out;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 25px 60px rgba(22, 163, 74, 0.8);
  filter: brightness(1.03);
}

.wa-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #f9fafb;
  position: relative;
}

.wa-icon::before,
.wa-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 2px solid #f9fafb;
}

.wa-icon::before {
  inset: 5px 4px 5px 7px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-3deg);
}

.wa-icon::after {
  width: 10px;
  height: 10px;
  border-right-color: transparent;
  border-top-color: transparent;
  border-left-color: transparent;
  bottom: -4px;
  right: 4px;
}

/* Animaciones de aparición */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@keyframes heroGlow {
  from {
    transform: translate3d(-10px, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, 6px, 0) scale(1.03);
  }
}

/* Responsive */
@media (min-width: 640px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.25rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coverage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-section {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .final-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .card {
    padding: 1.2rem 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 3.5rem 0 4.25rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

