:root {
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
}

* { box-sizing: border-box; }
body {
  font-family: Inter, sans-serif;
  color: var(--text);
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #edf0f5;
}
.brand-logo { height: 42px; width: auto; }
.nav-link { font-weight: 500; color: #20293a; }
.nav-link:hover { color: var(--primary); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.section-hero {
  padding: 6.5rem 0 5rem;
  background: radial-gradient(circle at 10% 10%, #5b53ee 0%, #1f2b6f 45%, #10162f 100%);
  color: #fff;
}
.section-hero.inner-hero {
  padding: 5rem 0 3.5rem;
}
.section-hero.inner-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.breadcrumb-light a {
  color: #d9dcf8;
  text-decoration: none;
}
.breadcrumb-light a:hover { color: #fff; }
.breadcrumb-light .current { color: #fff; font-weight: 600; }
.section-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}
.section-hero p { color: #d9dcf8; font-size: 1.05rem; }
.hero-image {
  border-radius: 1.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.section-block { padding: 5.2rem 0; }
.bg-soft { background: var(--bg); }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-weight: 800; }
.kicker {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
}

.card-service,
.price-card,
.testimonial,
.resource-card,
.contact-box {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-service:hover,
.resource-card:hover,
.testimonial:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.08);
}
.card-service img {
  width: 100%;
  border-radius: .8rem;
  margin-bottom: 1rem;
}
.card-service h3,
.price-card h3,
.resource-card h3 { font-size: 1.1rem; font-weight: 700; }
.card-service p,
.resource-card p,
.testimonial p { color: var(--muted); margin-bottom: 0; }

.metric {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: .9rem;
  padding: 1.5rem 1rem;
}
.metric strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.metric span { color: var(--muted); font-weight: 500; }

.portfolio-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.portfolio-card img {
  width: 100%;
  min-height: 290px;
  object-fit: cover;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(16, 22, 47, .9) 100%);
  color: #fff;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.price-card ul {
  padding-left: 1rem;
  color: var(--muted);
  margin: 0;
}
.price { font-size: 1.8rem; font-weight: 800; margin-bottom: .8rem; }
.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f5f4ff, #fff);
}
.featured span {
  display: inline-block;
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  margin-bottom: .8rem;
}

.section-cta {
  padding: 5rem 0;
  background: linear-gradient(120deg, #312e81, #4f46e5);
  color: #fff;
}
.section-cta h2 { font-weight: 800; }

.contact-box { padding: 1.5rem; }
.form-control,
.form-select {
  border-color: #d7dfe9;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.site-footer {
  background: #0f172a;
  color: #d3d9e7;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a {
  display: block;
  color: #d3d9e7;
  margin-bottom: .45rem;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
}
.cookie-banner__inner {
  margin: 0 auto;
  max-width: 920px;
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #334155;
  border-radius: .8rem;
  padding: .95rem 1rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .28);
}
.cookie-banner__inner p {
  margin: 0 0 .75rem;
  font-size: .95rem;
  line-height: 1.35;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .4rem;
}
.cookie-banner__inner small,
.cookie-banner__inner a {
  color: #cbd5e1;
}

/* ===== Mejoras visuales (2026-10) ===== */
html { scroll-behavior: smooth; }
::selection { background: var(--primary); color: #fff; }

.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
}
.btn-outline-light:hover { transform: translateY(-2px); }

/* Hero con profundidad sutil */
.section-hero { position: relative; overflow: hidden; }
.section-hero::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, transparent 65%);
  pointer-events: none;
}
.section-hero .container { position: relative; }

/* Chips de servicios (hosting bajo demanda) */
.service-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #eef1ff;
  color: #3730a3;
  font-weight: 600;
  font-size: .88rem;
  border: 1px solid #dfe3ff;
  transition: background .2s ease, transform .2s ease;
}
.chip:hover { background: #e0e5ff; transform: translateY(-2px); }

/* Pasos "como funciona" */
.step-card {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.08);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; }
.step-card p { color: var(--muted); margin-bottom: 0; }

/* Checkbox tipo chip en el formulario de hosting */
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1px solid #d7dfe9;
  background: #fff;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  margin: 0;
}
.check-chip:hover { border-color: var(--primary); }
.check-chip input { accent-color: var(--primary); margin: 0; }
.check-chip:has(input:checked) {
  border-color: var(--primary);
  background: #eef1ff;
  color: #3730a3;
  font-weight: 600;
}

/* Formulario: foco y profundidad */
.contact-box { box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07); }
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .22rem rgba(79, 70, 229, 0.16);
}
.form-label { font-weight: 600; }

/* Cabecera: CTA visible tambien en movil */
@media (max-width: 991.98px) {
  .site-header .btn-primary { margin-top: .75rem; }
  .section-hero { padding: 4.5rem 0 3.5rem; }
}

/* Pie: respiracion y jerarquia */
.site-footer { border-top: 1px solid #1e293b; }
.site-footer .row { justify-content: center; }
.site-footer .row > [class*="col"] { text-align: center; }
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  display: block;
  margin-inline: auto;
}
