* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; font-size: 15px; color: #222; }
img { display: block; width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
section { padding: 60px 0; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

.sec-header { text-align: center; margin-bottom: 40px; }
.sec-header h2 { font-family: 'Raleway', sans-serif; font-size: 26px; font-weight: 800; color: #0d1b2e; text-transform: uppercase; margin-bottom: 6px; }
.sec-header p { color: #666; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: #0d1b2e; height: 58px; }
.nav-inner { max-width: 1060px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700; }
.logo svg { color: #1e88e5; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 13px; padding: 6px 11px; border-radius: 4px; font-family: 'Raleway', sans-serif; }
.nav-links a:hover { color: #fff; }
.btn-nav { background: #1e88e5 !important; color: #fff !important; font-weight: 700 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* HERO */
#inicio { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 58px; background: url('https://www.esic.edu/sites/default/files/styles/full/public/2024-07/que%20es%20la%20ciberseguridad.jpg?itok=mVaynTnW') center/cover; }
#inicio::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,20,38,0.92) 40%, rgba(10,20,38,0.5)); }
.hero-text { position: relative; z-index: 1; max-width: 520px; padding: 60px 20px 160px; }
.hero-text h1 { font-family: 'Raleway', sans-serif; font-size: clamp(30px, 4vw, 48px); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 16px; }
.hero-text p { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: #1e88e5; color: #fff; padding: 11px 22px; border-radius: 5px; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 14px; }
.btn-outline { display: inline-block; color: #fff; padding: 11px 22px; border-radius: 5px; border: 2px solid rgba(255,255,255,0.55); font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 14px; }
.hero-cards { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; display: flex; background: rgba(10,20,38,0.85); border-top: 1px solid rgba(255,255,255,0.07); }
.hcard { flex: 1; display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-right: 1px solid rgba(255,255,255,0.08); }
.hcard:last-child { border-right: none; }
.hcard svg { color: #1e88e5; flex-shrink: 0; }
.hcard p { color: rgba(255,255,255,0.85); font-size: 12px; font-family: 'Raleway', sans-serif; font-weight: 600; }

/* SERVICIOS */
#servicios { background: #fff; }
.services-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 32px; }
.services-list { display: flex; flex-direction: column; gap: 12px; }
.srv { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid #dde3ec; border-radius: 7px; }
.srv-icon { width: 38px; height: 38px; min-width: 38px; background: #eaf3fd; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.srv-icon svg { color: #1e88e5; }
.srv h3 { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; color: #0d1b2e; margin-bottom: 4px; }
.srv p { font-size: 13px; color: #666; line-height: 1.55; }
.services-imgs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 68px; }
.services-imgs img { height: 120px; object-fit: cover; border-radius: 7px; }

/* PRODUCTOS */
#productos { background: #f4f6f9; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pack { background: #fff; border: 1.5px solid #dde3ec; border-radius: 10px; padding: 26px 20px; text-align: center; position: relative; }
.pack.featured { border-color: #1e88e5; background: #0d1b2e; transform: scale(1.03); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #1e88e5; color: #fff; font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.pack-top svg { margin: 0 auto 10px; }
.pack-top h3 { font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0d1b2e; margin-bottom: 8px; }
.pack.featured .pack-top h3 { color: #fff; }
.price { font-family: 'Raleway', sans-serif; font-size: 36px; font-weight: 900; color: #0d1b2e; }
.pack.featured .price { color: #fff; }
.pack small { font-size: 11px; color: #888; }
.pack.featured small { color: rgba(255,255,255,0.5); }
.pack ul { text-align: left; margin: 16px 0; border-top: 1px solid #eee; padding-top: 12px; }
.pack.featured ul { border-color: rgba(255,255,255,0.1); }
.pack ul li { display: flex; gap: 8px; padding: 5px 0; font-size: 13px; color: #555; border-bottom: 1px solid #f0f0f0; }
.pack.featured ul li { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.08); }
.tick { color: #2e7d32; font-weight: 700; }
.cross { color: #aaa; }
.btn-pack { display: block; padding: 10px; border: 2px solid #1e88e5; border-radius: 5px; color: #1e88e5; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 13px; }
.btn-pack-w { display: block; padding: 10px; background: #fff; border-radius: 5px; color: #0d1b2e; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 13px; }

/* CONSEJOS */
#consejos { background: #fff; }
.tips { display: flex; flex-direction: column; gap: 14px; }
.tip { display: grid; grid-template-columns: 170px 1fr; border: 1px solid #dde3ec; border-radius: 8px; overflow: hidden; }
.tip img { height: 100%; min-height: 110px; object-fit: cover; }
.tip-text { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.tip-text h3 { font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700; color: #0d1b2e; }
.tip-text p { font-size: 13px; color: #666; line-height: 1.6; }
.tip-text a { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; color: #1e88e5; }

/* CONTACTO */
#contacto { background: #f4f6f9; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.cinfo { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid #dde3ec; border-radius: 7px; padding: 12px 14px; }
.cinfo svg { color: #1e88e5; flex-shrink: 0; margin-top: 2px; }
.cinfo strong { display: block; font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 700; color: #0d1b2e; margin-bottom: 2px; }
.cinfo span { font-size: 13px; color: #666; }
.map iframe { width: 100%; height: 155px; border: 1px solid #dde3ec; border-radius: 7px; display: block; }
form { background: #fff; border: 1px solid #dde3ec; border-radius: 10px; padding: 24px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; font-family: 'Raleway', sans-serif; color: #0d1b2e; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 9px 12px; border: 1.5px solid #dde3ec; border-radius: 5px; font-size: 13px; font-family: 'Open Sans', sans-serif; outline: none; resize: none; }
.field input:focus, .field textarea:focus { border-color: #1e88e5; }
form button { width: 100%; padding: 11px; background: #1e88e5; color: #fff; border: none; border-radius: 5px; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; }

/* FOOTER */
footer { background: #0d1b2e; text-align: center; padding: 20px; font-size: 13px; color: rgba(255,255,255,0.45); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 58px; left: 0; right: 0; background: #0d1b2e; padding: 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; text-align: center; }
  .hamburger { display: flex; }
  .hero-text { padding-bottom: 200px; }
  .hero-cards { position: relative; flex-wrap: wrap; }
  .hcard { flex: 1 1 50%; }
  .services-wrap, .packs, .contact-wrap { grid-template-columns: 1fr; }
  .services-imgs { display: none; }
  .pack.featured { transform: none; }
  .tip { grid-template-columns: 1fr; }
  .tip img { height: 140px; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hcard { flex: 1 1 100%; }
}
