/* ===== VARIABLES ===== */
:root {
  --teal: #00B4A6;
  --teal-dark: #008F84;
  --teal-glow: rgba(0, 180, 166, 0.15);
  --bg: #1A1A2E;
  --bg-card: #16213E;
  --bg-card2: #0F3460;
  --text: #E8E8F0;
  --text-muted: #9090A8;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Inter', system-ui, sans-serif;
  --max-w: 1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== UTILIDADES ===== */
.contenedor {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.contenedor--narrow { max-width: 680px; }

.seccion__titulo {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
}
.seccion__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal-glow); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); }
.btn--lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn--sm { padding: 6px 14px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon { font-size: 1.4rem; }
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-glow);
  border: 1px solid rgba(0,180,166,0.3);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero__titulo {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.hero__titulo-acento { color: var(--teal); }
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero__nota {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,166,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== SECTORES ===== */
.sectores {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.sectores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.sector-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,180,166,0.3);
}
.sector-card__icono {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.sector-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.sector-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.sector-card--mas {
  border-color: rgba(0,180,166,0.25);
  background: var(--teal-glow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sector-card--mas .btn { margin-top: auto; align-self: flex-start; }

/* ===== CÓMO FUNCIONA ===== */
.como-funciona {
  padding: 80px 0;
}
.pasos {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.paso {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.paso__num {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.paso h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.paso p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.paso__flecha {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
  padding-top: 48px;
  align-self: flex-start;
}

/* ===== PLANES ===== */
.planes {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}
.planes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.plan-card--destacado {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--bg-card2) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(0,180,166,0.15);
}
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-card__nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.plan-card__precio {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-card__eur {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.plan-card__mes {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.plan-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-card__features li {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.plan-card__features li::first-letter { color: var(--teal); }
.planes__nota {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.planes__nota a {
  color: var(--teal);
  font-weight: 600;
}
.planes__nota a:hover { text-decoration: underline; }

/* ===== DEMO FORM ===== */
.demo {
  padding: 80px 24px;
}
.demo__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__campo label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form__campo input,
.form__campo select,
.form__campo textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  width: 100%;
}
.form__campo input:focus,
.form__campo select:focus,
.form__campo textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form__campo input::placeholder,
.form__campo textarea::placeholder { color: var(--text-muted); }
.form__campo select option { background: var(--bg-card); }
.form__campo textarea { resize: vertical; min-height: 80px; }

.demo__ok {
  background: rgba(0,180,166,0.1);
  border: 1px solid rgba(0,180,166,0.3);
  border-radius: 8px;
  padding: 14px 20px;
  color: var(--teal);
  font-weight: 600;
  text-align: center;
}
.demo__err {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: 8px;
  padding: 14px 20px;
  color: #ff8080;
  text-align: center;
  font-size: 0.9rem;
}
.demo__err a { color: var(--teal); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer__nombre {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--teal); }
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__inner { gap: 16px; }
  .hero { padding: 64px 20px 60px; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 320px; }
  .form__fila { grid-template-columns: 1fr; }
  .demo__form { padding: 24px 20px; }
  .paso__flecha { display: none; }
  .pasos { flex-direction: column; align-items: center; }
  .paso { max-width: 100%; width: 100%; }
}
