:root{
  --bg: #070A0F;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --blue: #1E76FF;
  --green: #00FF66;
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(30,118,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(0,255,102,.12), transparent 55%),
    var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
.container{ max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* =========================
   Header / Nav
========================= */

.header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7,10,15,.55);
  border-bottom: 1px solid var(--border);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  min-height: 76px;
  gap: 12px;
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
}

.brand__logo{
  height: 84px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 2px 8px rgba(0,0,0,.35))
    drop-shadow(0 0 10px rgba(0,255,102,.25));
}

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

.nav a{
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover{ color: var(--text); }

.nav__cta{
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* =========================
   Hero
========================= */

.hero{ padding: 72px 0 36px; }

.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}

.kicker{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}

h1{
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
}

.lead{
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero__cta{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 800;
}

.btn--primary{
  background: var(--green);
  color: #05110A;
  border-color: rgba(0,255,102,.35);
}

.btn--ghost{
  background: transparent;
  color: var(--text);
}

.hero__badges{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__badges span{
  font-size: .9rem;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

/* =========================
   Card
========================= */

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2{ margin: 0 0 8px; font-size: 1.1rem; }
.card p{ margin: 0 0 14px; color: var(--muted); }

.card__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card h3{ margin: 0 0 8px; font-size: .95rem; color: var(--text); }
.card ul{ margin:0; padding-left: 18px; color: var(--muted); }
.card li{ margin: 6px 0; }

/* =========================
   Sections
========================= */

.section{ padding: 56px 0; }

.section--dark{
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title{
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.section__desc{
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   Services Grid
========================= */

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.tile h3{ margin:0 0 8px; }
.tile p{ margin:0 0 12px; color: var(--muted); line-height: 1.55; }
.tile ul{ margin:0; padding-left: 18px; color: var(--muted); }
.tile li{ margin: 6px 0; }

/* =========================
   Steps
========================= */

.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.step__num{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(30,118,255,.18);
  border: 1px solid rgba(30,118,255,.35);
  color: var(--text);
  font-weight: 800;
  margin-bottom: 10px;
}

/* =========================
   Contact
========================= */

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}

.contact__cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.contact__card{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.contact__card p{ margin: 6px 0 0; color: var(--muted); }

.form{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

label{ display:block; font-weight: 700; margin-bottom: 10px; }

input, select, textarea{
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}

textarea{ resize: vertical; }

.form__hint{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* =========================
   Footer
========================= */

.footer{
  padding: 18px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.link{ color: var(--blue); font-weight: 800; }
.link:hover{ text-decoration: underline; }

/* =========================
   Utility
========================= */

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

/* =========================
   Responsive
========================= */

@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .contact__cards{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* después si quieres le hacemos menú */
  .brand__logo{ height: 44px; }
  .header__inner{ min-height: 68px; }
}

@media (min-width: 1200px){
  .brand__logo{ height: 118px; }
}

/* =========================
   Logo micro-animación scroll
========================= */

.brand__logo{
  transition:
    height .25s ease,
    transform .25s ease,
    filter .25s ease,
    opacity .25s ease;
}

/* Estado cuando se hace scroll */
.header--scrolled .brand__logo{
  height: 86px;
  transform: translateY(1px);
  opacity: .9;
  filter:
    drop-shadow(0 1px 4px rgba(0,0,0,.35))
    drop-shadow(0 0 4px rgba(0,255,102,.15));
}

/* Desktop grande */
@media (min-width: 1200px){
  .header--scrolled .brand__logo{
    height: 88px;
  }
}

/* =========================
   Hover cards de Servicios
========================= */

.tile{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  will-change: transform;
}

.tile:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(30,118,255,.18),
    0 0 22px rgba(0,255,102,.10);
}

/* Detalle: título más brillante al hover */
.tile:hover h3{
  color: rgba(255,255,255,.98);
}

/* Accesibilidad: teclado */
.tile:focus-within{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 0 2px rgba(30,118,255,.30);
}

/* Respeta usuarios que prefieren menos animación */
@media (prefers-reduced-motion: reduce){
  .tile{
    transition: none;
  }
  .tile:hover,
  .tile:focus-within{
    transform: none;
  }
}

.tile{
  position: relative;
  overflow: hidden;
}

.tile::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(30,118,255,.0), rgba(30,118,255,.55), rgba(0,255,102,.55), rgba(0,255,102,0));
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease;
}

.tile:hover::before,
.tile:focus-within::before{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Select / Listbox (estilo pro)
========================= */

/* Wrapper para poder poner ícono */
.form select{
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text);
  padding-right: 44px; /* espacio para flecha */
  cursor: pointer;
}

/* Flecha custom */
.form label:has(select){
  position: relative;
}

.form label:has(select)::after{
  content: "";
  position: absolute;
  right: 14px;
  top: calc(50% + 12px); /* ajusta por el texto "¿Qué necesitas?" */
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,.55);
  border-bottom: 2px solid rgba(255,255,255,.55);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  opacity: .85;
}

/* Hover/focus coherentes con tu estilo */
.form select:hover{
  border-color: rgba(255,255,255,.22);
  background-color: rgba(255,255,255,.04);
}

.form select:focus{
  border-color: rgba(30,118,255,.55);
  box-shadow:
    0 0 0 3px rgba(30,118,255,.18),
    0 0 14px rgba(0,255,102,.08);
}

/* Opciones (limitado; en Windows el dropdown puede ignorar parte) */
.form option{
  background: #0b0f17;
  color: rgba(255,255,255,.92);
}

/* =========================
   Scroll reveal
========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .6s ease,
    transform .6s ease;
  will-change: opacity, transform;
}

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

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

