:root {
  --bg: #0b0f1a;
  --bg-alt: #141b2d;
  --bg-alt-2: #1a233a;
  --text: #e6e9ef;
  --muted: #b9c0cc;
  --primary: #4f7cff;
  --primary-2: #7aa2ff;
  --accent: #00d4ff;
  --contrast: #ff7e67; /* Color de contraste llamativo (naranja/coral) para destacar contra logos azules/oscuros */
  --card: #1f2940;
  --border: #2a3654;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
a { color: var(--text); text-decoration: none }
img { max-width: 100%; display: block }
h1, h2, h3 { margin: 0 0 .5rem 0 }

h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--contrast);
  border-radius: 2px;
}

.contact-inner h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p { margin: 0 0 1rem 0; color: var(--muted) }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(117, 126, 145, 0.6);
  border-bottom: 1px solid rgba(245, 241, 241, 0.06);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600 }
.brand-logo { width: 100px; height: 100px; border-radius: 15px }
.brand-name { letter-spacing: .2px }
.nav { display: flex; gap: 1rem }
.nav a { padding: .4rem .6rem; border-radius: 8px }
.nav a:hover { background: rgba(255,255,255,.06) }

.hero {
  padding: 6rem 0 4rem;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(79,124,255,.25), transparent 60%),
    radial-gradient(800px 300px at 20% 10%, rgba(0,212,255,.18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.bg-dark {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.bg-light {
  background-color: var(--bg-alt-2);
  border-bottom: 1px solid var(--border);
}

.bg-accent {
  background: linear-gradient(135deg, var(--bg-alt-2), var(--bg));
  border-top: 3px solid var(--contrast);
  position: relative;
}
.hero-inner { text-align: center }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem) }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.2rem); margin: 1rem auto 1.5rem; max-width: 820px }
.cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap }

.hero-visual { margin-top: 2rem }
.viz-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.viz-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem; }
.viz-title { color: var(--muted); font-size: .95rem }
.viz-stat { font-size: 1.25rem; font-weight: 600 }
 
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease }
.reveal.in { opacity: 1; transform: translateY(0) }

.btn {
  display: inline-block;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn.small { padding: .55rem .8rem; font-size: .95rem }
.btn.primary { background: linear-gradient(180deg, var(--primary), var(--primary-2)); color: #fff }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,124,255,.35) }
.btn.ghost { background: rgba(255,255,255,.06) }
.btn.ghost:hover { background: rgba(255,255,255,.12) }

.section { padding: 3rem 0 }
.section-sub { margin-bottom: 1.2rem }

.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.35); border-color: rgba(255,255,255,.18) }
.card-actions { margin-top: .4rem }

.grid.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 1rem;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2) }

.trust .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem }
.metric { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem; text-align: center }
.m-value { font-size: 1.6rem; font-weight: 700 }
.m-label { color: var(--muted) }
.trust .logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1rem 0 }
.logo-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .8rem; text-align: center; color: var(--muted) }
.testimonials blockquote { background: rgba(255,255,255,.03); border-left: 4px solid var(--contrast); padding: 1rem; border-radius: 12px }

.final-cta { text-align: center }

.contact { padding: 3rem 0 4rem }
.contact-inner { text-align: center }
.contact-form {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.contact-form .field { display: flex; flex-direction: column; gap: .3rem }
.contact-form .field.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem }
.contact-form .label { color: var(--text); font-weight: 600 }
.radio-group { display: flex; gap: 1rem }
.radio-group label { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted) }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  width: 100%;
  height: 42px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 0 .8rem;
}
.contact-form label { color: var(--text) }
.contact-form textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: .8rem;
}
.contact-form textarea:focus { outline: 2px solid var(--primary) }
.contact-form .hint { color: var(--muted) }

@media (max-width: 640px) {
  .contact-form .field.duo { grid-template-columns: 1fr }
}

.admin-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
}

.maintenance-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.maintenance-logo {
  width: min(220px, 40vw);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 16px;
}
.maintenance-title {
  font-size: clamp(2rem, 6vw, 3rem);
}
.maintenance-sub {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--muted);
  margin-top: .5rem;
}
.maintenance-extra { color: var(--muted); margin-top: .5rem }
.loader { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--primary); border-radius: 50%; margin: 1rem auto; animation: spin 1s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
  background: rgba(10, 14, 22, .5);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center }
.footer-links { display: flex; gap: .8rem }
.footer-links a { color: var(--muted) }
.footer-links a:hover { color: var(--text) }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(180deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  z-index: 200;
}
.whatsapp-float:hover { transform: translateY(-2px) }

@media (max-width: 900px) {
  .grid.cards, .grid.features { grid-template-columns: 1fr 1fr }
  .viz-row { grid-template-columns: 1fr 1fr }
  .trust .logos { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 640px) {
  .grid.cards, .grid.features { grid-template-columns: 1fr }
  .brand-name { display: inline }
  .viz-row { grid-template-columns: 1fr }
}
