:root {
  --rojo: #e63946;
  --rojo-oscuro: #c1121f;
  --oscuro: #0d0d0d;
  --gris-card: #141414;
  --gris-borde: #222;
  --texto: #e0e0e0;
  --texto-suave: #888;
  --blanco: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--oscuro);
  color: var(--texto);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 700; color: var(--blanco);
  text-decoration: none; letter-spacing: 0.5px;
}
.nav-logo span { color: var(--rojo); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--texto-suave); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--blanco); }
.nav-cta {
  background: var(--rojo); color: var(--blanco);
  padding: 0.5rem 1.2rem; border-radius: 6px;
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--rojo-oscuro); }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.12) 0%, transparent 65%);
}
.hero-badge {
  display: inline-block;
  background: rgba(230,57,70,0.15); border: 1px solid rgba(230,57,70,0.4);
  color: var(--rojo); font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
  letter-spacing: 1px; text-transform: uppercase;
}
#hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1.5rem; color: var(--blanco);
}
#hero h1 span { color: var(--rojo); }
#hero p {
  max-width: 580px; margin: 0 auto 2.5rem;
  color: var(--texto-suave); font-size: 1.1rem;
}
.btn-primary {
  display: inline-block;
  background: var(--rojo); color: var(--blanco);
  padding: 0.85rem 2rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--rojo-oscuro); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; margin-left: 1rem;
  border: 1px solid var(--gris-borde); color: var(--texto);
  padding: 0.85rem 2rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--rojo); color: var(--rojo); }

/* SECCIONES */
section { padding: 5rem 2rem; }
.section-label {
  text-align: center; color: var(--rojo);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--blanco); margin-bottom: 1rem;
}
.section-sub {
  text-align: center; color: var(--texto-suave);
  max-width: 560px; margin: 0 auto 3.5rem; font-size: 1rem;
}

/* SERVICIOS */
#servicios { background: #0a0a0a; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.card {
  background: var(--gris-card); border: 1px solid var(--gris-borde);
  border-radius: 12px; padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--rojo); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; background: rgba(230,57,70,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.5rem; }
.card p { color: var(--texto-suave); font-size: 0.9rem; }

/* PRODUCTOS FORTINET */
#productos { background: var(--oscuro); }
.productos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem; max-width: 1100px; margin: 0 auto;
}
.producto-card {
  background: var(--gris-card); border: 1px solid var(--gris-borde);
  border-radius: 10px; padding: 1.4rem 1.6rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color 0.2s;
}
.producto-card:hover { border-color: rgba(230,57,70,0.5); }
.prod-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rojo); margin-top: 6px; flex-shrink: 0;
}
.producto-card h4 { color: var(--blanco); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.producto-card p { color: var(--texto-suave); font-size: 0.82rem; }

/* SOBRE MÍ */
#sobre { background: #0a0a0a; }
.sobre-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.sobre-inner p { color: var(--texto-suave); font-size: 1rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
.chip {
  background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.3);
  color: var(--rojo); padding: 0.35rem 0.9rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

/* CONTACTO */
#contacto { background: var(--oscuro); }
.contacto-form {
  max-width: 560px; margin: 0 auto;
  background: var(--gris-card); border: 1px solid var(--gris-borde);
  border-radius: 16px; padding: 2.5rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--texto); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%; background: #1a1a1a; border: 1px solid var(--gris-borde);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--texto); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--rojo); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; background: var(--rojo); color: var(--blanco);
  border: none; padding: 0.9rem; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--rojo-oscuro); }
.form-msg { text-align: center; margin-top: 1rem; font-size: 0.9rem; display: none; }
.form-msg.ok { color: #4caf50; }
.form-msg.err { color: var(--rojo); }

/* FOOTER */
footer {
  border-top: 1px solid var(--gris-borde);
  padding: 2rem; text-align: center;
  color: var(--texto-suave); font-size: 0.85rem;
}
footer a { color: var(--rojo); text-decoration: none; }

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-outline { display: none; }
}
