/* Tokens base de la identidad visual de CápsulaTech. */
:root {
  --bg: #07111f;
  --bg-secondary: #101827;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #22d3ee;
  --primary-strong: #38bdf8;
  --warm: #f59e0b;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.14), transparent 22%),
    linear-gradient(180deg, #08111d 0%, #07111f 45%, #0b1220 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--text);
  color: #020617;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.62), rgba(10, 16, 30, 0.74));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 14px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.brand-text,
.brand-footer {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #04111c;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.button-nav {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: 64px 0 48px;
}

.hero-grid,
.hosting-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 32px;
}

.hero-grid {
  align-items: center;
}

.eyebrow,
.section-kicker,
.pricing-label,
.dashboard-label,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.eyebrow,
.section-kicker,
.pricing-label {
  color: var(--primary);
  font-weight: 600;
}

.hero h1,
.section-heading h2,
.cta-banner h2 {
  margin: 16px 0 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  max-width: 12ch;
}

.hero-lead,
.section-heading p,
.contact-details,
.site-footer p {
  color: var(--muted);
}

.hero-lead {
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 22px;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li,
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.hero-points li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
  z-index: -1;
}

.orb-cyan {
  width: 180px;
  height: 180px;
  top: 8%;
  right: 8%;
  background: rgba(34, 211, 238, 0.3);
}

.orb-blue {
  width: 140px;
  height: 140px;
  bottom: 6%;
  left: 0;
  background: rgba(56, 189, 248, 0.22);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.dashboard-card {
  padding: 24px;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-head h2 {
  margin: 8px 0 0;
  font-size: 1.35rem;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.dashboard-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-item strong,
.section-heading h2,
.service-card h3,
.process-step h3,
.pricing-card h3,
.cta-banner h2 {
  color: var(--text);
}

.dashboard-item span,
.dashboard-item em,
.service-card p,
.service-card small,
.process-step p,
.mini-card,
.pricing-card li,
.form-note,
label {
  color: var(--muted);
}

.dashboard-item div {
  display: grid;
}

.dashboard-item em {
  font-style: normal;
  color: var(--primary);
}

.dashboard-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-footer span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.trust-strip {
  padding-bottom: 16px;
}

.trust-grid {
  display: grid;
  gap: 16px;
}

.trust-grid article,
.process-step,
.mini-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.trust-grid strong,
.service-card h3,
.process-step h3,
.pricing-card h3 {
  display: block;
  margin-bottom: 6px;
}

.cards-grid,
.pricing-grid,
.process-grid {
  display: grid;
  gap: 20px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-card,
.pricing-card,
.hosting-panel,
.contact-form,
.cta-banner {
  padding: 24px;
}

.service-card,
.pricing-card,
.mini-card,
.process-step,
.trust-grid article {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.service-card:hover,
.pricing-card:hover,
.mini-card:hover,
.process-step:hover,
.trust-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.icon-chip {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(56, 189, 248, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.process-step {
  position: relative;
  overflow: hidden;
}

.step-number {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
  font-size: 1.35rem;
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing-card h3 {
  margin: 0;
  font-size: 2rem;
}

.pricing-featured {
  border-color: rgba(34, 211, 238, 0.34);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(255, 255, 255, 0.05));
}

.compact {
  gap: 10px;
}

.contact-details a {
  color: var(--text);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--text);
  padding: 14px 16px;
}

input::placeholder,
textarea::placeholder {
  color: #7b8ba3;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (min-width: 720px) {
  .hero-grid,
  .hosting-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-grid {
    grid-template-columns: 1.1fr 0.8fr 0.9fr;
  }

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

@media (min-width: 1024px) {
  .cards-grid.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
  }

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

  .button-nav {
    margin-left: 0;
    margin-top: 6px;
  }
}

@media (max-width: 719px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
