/* ============================================================
   Inmersum — landing comercial inmersum.cl
   ============================================================ */

:root {
  --color-primary:       #0891B2;
  --color-primary-dark:  #0E4F66;
  --color-primary-light: #67E8F9;
  --color-accent:        #F59E0B;
  --color-surface:       #FFFFFF;
  --color-bg:            #F0FDFF;
  --color-bg-soft:       #ECFEFF;
  --color-ink:           #021F2E;
  --color-text:          #0F172A;
  --color-text-soft:     #64748B;
  --color-border:        #CFFAFE;

  --shadow-soft: 0 8px 24px rgba(8, 145, 178, 0.08);
  --shadow-card: 0 20px 60px rgba(2, 70, 95, 0.18);
  --shadow-glow: 0 30px 90px -10px rgba(8, 145, 178, 0.35);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--color-text);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.18rem; line-height: 1.3; font-weight: 700; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============ NAV ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(207, 250, 254, 0.6);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 500;
  font-size: .94rem;
  color: var(--color-text);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--color-primary); }
@media (max-width: 700px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #0891B2 0%, #06748F 100%);
  color: white;
  box-shadow: 0 10px 28px -6px rgba(8, 145, 178, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 36px -6px rgba(8, 145, 178, 0.7); }
.btn-outline {
  background: white;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.btn-outline:hover { background: var(--color-bg-soft); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-bg-soft); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, #F0FDFF 0%, white 65%);
}
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blob-1 {
  width: 540px; height: 540px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, #67E8F9 0%, transparent 70%);
}
.blob-2 {
  width: 460px; height: 460px;
  top: 120px; right: -180px;
  background: radial-gradient(circle, #A5F3FC 0%, transparent 70%);
  opacity: 0.45;
}
.blob-3 {
  width: 320px; height: 320px;
  top: 320px; left: -120px;
  background: radial-gradient(circle, #0891B2 0%, transparent 70%);
  opacity: 0.12;
}
.hero .container { position: relative; z-index: 1; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem 1rem .42rem .55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px -4px rgba(8, 145, 178, 0.18);
  transition: transform .15s, box-shadow .15s;
}
.badge.badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -4px rgba(8, 145, 178, 0.28);
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s infinite;
}
.badge .arrow {
  font-weight: 700;
  color: var(--color-primary);
  transition: transform .2s;
}
.badge.badge-link:hover .arrow { transform: translateX(2px); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}

.hero h1 {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 1.4rem;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #0891B2 0%, #67E8F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  margin-inline: auto;
  margin-bottom: 2.4rem;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.2rem;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 880px;
  margin-inline: auto;
  padding: 1.4rem .8rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 40px -12px rgba(8, 145, 178, 0.18);
  font-size: .85rem;
  color: var(--color-text-soft);
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-meta > div {
  padding: 0 1rem;
  border-right: 1px solid var(--color-bg-soft);
}
.hero-meta > div:last-child { border-right: none; }
@media (max-width: 760px) {
  .hero-meta > div { border-right: none; padding: .6rem 0; }
}
.hero-meta strong {
  display: block;
  color: var(--color-primary-dark);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .2rem;
  letter-spacing: -0.01em;
}
.hero-meta span { color: var(--color-text-soft); font-size: .82rem; line-height: 1.4; }
@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }
.section.bg-soft {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, white 100%);
}
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .8rem;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-head .lead { margin-inline: auto; }
.lead {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  color: var(--color-text-soft);
  max-width: 720px;
}

/* ============ FEATURES GRID ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.bento-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(8, 145, 178, 0.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity .3s;
  opacity: 0;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-primary-light);
}
.bento-card:hover::before { opacity: 1; }
.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ECFEFF, #CFFAFE);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.bento-card h3 { color: var(--color-primary-dark); margin-bottom: .55rem; position: relative; z-index: 1; }
.bento-card p { color: var(--color-text-soft); margin: 0; font-size: .94rem; position: relative; z-index: 1; }

@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* ============ CHECK LIST ============ */
.check-list {
  list-style: none;
  padding: 0;
  max-width: 880px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .8rem 2rem;
}
#seguridad .small { text-align: center; margin-top: 1.5rem; }
#precios .small { text-align: center; margin-top: 1.5rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-text);
  font-size: .96rem;
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: white;
  font-weight: 800;
  font-size: .82rem;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0891B2, #06748F);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
}
.small { font-size: .82rem; color: var(--color-text-soft); }

/* ============ PRICING ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 2.4rem 0 1.6rem;
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.price-card h3 { color: var(--color-primary-dark); }
.price-card.featured {
  background: linear-gradient(160deg, #062E3F 0%, #0E4F66 100%);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-card);
  transform: translateY(-8px);
}
.price-card.featured h3 { color: white; }
.price-card.featured .price { color: white; }
.price-card.featured .price span { color: rgba(255, 255, 255, 0.6); }
.price-card.featured li { color: rgba(255, 255, 255, 0.82); border-color: rgba(255, 255, 255, 0.08); }
.price-card.featured:hover { transform: translateY(-12px); box-shadow: var(--shadow-glow); }
.badge-pro {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.5);
}
.price-card .price {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: .5rem 0 1.2rem;
  letter-spacing: -0.02em;
}
.price-card .price span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-soft);
  letter-spacing: 0;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-card li {
  padding: .6rem 0;
  font-size: .93rem;
  border-bottom: 1px solid var(--color-bg-soft);
  color: var(--color-text-soft);
  position: relative;
  padding-left: 1.4rem;
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.price-card.featured li::before { color: var(--color-primary-light); }
.price-card li:last-child { border-bottom: none; }

/* ============ CTA ============ */
.section-cta {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(103, 232, 249, 0.25), transparent 50%),
    linear-gradient(135deg, #062E3F 0%, #0E4F66 60%, #0891B2 100%);
  color: white;
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
}
.section-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 80%, rgba(8, 145, 178, 0.4), transparent 60%);
  pointer-events: none;
}
.section-cta .container { position: relative; z-index: 1; }
.section-cta h2 { color: white; }
.section-cta .lead { color: rgba(255,255,255,.85); margin-inline: auto; max-width: 580px; }
.section-cta .btn-primary {
  background: white;
  color: var(--color-primary-dark);
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.3);
}
.section-cta .btn-primary:hover { box-shadow: 0 18px 50px -8px rgba(0, 0, 0, 0.4); }

/* ============ FOOTER ============ */
footer {
  background: #021F2E;
  color: rgba(255,255,255,.7);
  padding: 4.5rem 0 2rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
footer h4 {
  color: white;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
footer a {
  display: block;
  color: rgba(255,255,255,.6);
  margin-bottom: .45rem;
  transition: color .15s;
}
footer a:hover { color: white; }
.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  color: rgba(255,255,255,.4);
}
