:root {
  --navy:     #0F1E3C;
  --navy-mid: #243B6E;
  --navy-lt:  #2C5282;
  --red:      #C0392B;
  --red-lt:   #E84040;
  --ice:      #EEF2FA;
  --white:    #FFFFFF;
  --gray:     #8A95A3;
  --text:     #1A2A4A;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ice); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(15,30,60,0.97); backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-emblem { width: 52px; height: 52px; flex-shrink: 0; }
.nav-brand { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 15px; color: white; letter-spacing: 2px; text-transform: uppercase; }
.nav-brand-tag  { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 9px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,0.72); text-decoration: none; text-transform: uppercase; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.25s; }
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--red) !important; color: white !important; padding: 8px 20px; border-radius: 4px; }
.nav-cta:hover { background: var(--red-lt) !important; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; }

/* ─── HERO ─── */
#hero { position: relative; min-height: 100vh; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(192,57,43,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(192,57,43,0.07) 1px, transparent 1px); background-size: 60px 60px; animation: gridDrift 20s linear infinite; }
@keyframes gridDrift { from{transform:translate(0,0)} to{transform:translate(60px,60px)} }
.hero-glow  { position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(192,57,43,0.18) 0%, transparent 70%); pointer-events: none; }
.hero-glow2 { position: absolute; bottom: -300px; left: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(44,82,130,0.25) 0%, transparent 70%); pointer-events: none; }

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 110px 5vw 60px; width: 100%; max-width: 960px; }

.hero-logo-wrap { width: min(460px, 82vw); opacity: 0; animation: fadeUp 0.9s 0.1s ease forwards; margin-bottom: 12px; }
.hero-logo-wrap svg { width: 100%; height: auto; display: block; }

.hero-eyebrow { font-family: 'Roboto Mono', monospace; font-size: 11px; letter-spacing: 4px; color: var(--red); text-transform: uppercase; margin-bottom: 20px; text-align: center; opacity: 0; animation: fadeUp 0.8s 0.5s ease forwards; }
.hero-headline { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(36px, 5.5vw, 68px); color: white; line-height: 0.95; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px; text-align: center; opacity: 0; animation: fadeUp 0.8s 0.65s ease forwards; }
.hero-headline .accent { color: var(--red); }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.85s ease forwards; }
.btn-primary { background: var(--red); color: white; padding: 16px 40px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; transition: background 0.25s, transform 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--red-lt); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; padding: 14px 38px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; border: 2px solid rgba(255,255,255,0.3); border-radius: 4px; cursor: pointer; text-decoration: none; transition: border-color 0.25s, background 0.25s, transform 0.2s; display: inline-block; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.07); transform: translateY(-2px); }

.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.08); opacity: 0; animation: fadeUp 0.8s 1.1s ease forwards; }
.hero-stat { padding: 22px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 34px; color: var(--red); display: block; }
.hero-stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ─── SECTIONS ─── */
section { padding: 100px 5vw; }
.section-eyebrow { font-family: 'Roboto Mono', monospace; font-size: 11px; letter-spacing: 4px; color: var(--red); text-transform: uppercase; margin-bottom: 16px; display: block; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(36px, 5vw, 58px); color: var(--navy); text-transform: uppercase; line-height: 1; margin-bottom: 20px; }
.section-title-white { color: white; }
.section-sub { font-size: 16px; font-weight: 300; color: #5A6A8A; line-height: 1.7; max-width: 560px; }
.red-line { width: 48px; height: 3px; background: var(--red); margin-bottom: 24px; }

/* ─── SERVICES ─── */
#servicios { background: var(--ice); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; }
.service-card { background: white; padding: 44px 36px; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--red); transition: height 0.3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(15,30,60,0.12); }
.service-card:hover::before { height: 100%; }
.service-icon { width: 52px; height: 52px; background: var(--ice); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 24px; transition: background 0.3s; }
.service-card:hover .service-icon { background: #FFE8E5; }
.service-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.service-desc { font-size: 14px; color: #6A7A9A; line-height: 1.7; }
.service-num { position: absolute; top: 24px; right: 24px; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 48px; color: var(--ice); line-height: 1; transition: color 0.3s; }
.service-card:hover .service-num { color: #FFE8E5; }

/* ─── ABOUT ─── */
#nosotros { background: var(--navy); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-box-main { background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 48px; position: relative; }
.about-box-main::before { content: 'PC'; position: absolute; top: -30px; right: 24px; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 120px; color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none; }
.about-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.3); border-radius: 99px; padding: 6px 16px; margin-bottom: 24px; }
.about-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.about-pill span { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--red); text-transform: uppercase; }
.about-quote { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; color: white; line-height: 1.3; margin-bottom: 32px; }
.about-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.about-metric { background: rgba(255,255,255,0.04); padding: 20px 24px; }
.about-metric-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 42px; color: var(--red); line-height: 1; }
.about-metric-label { font-size: 12px; color: var(--gray); letter-spacing: 1px; margin-top: 4px; }
.about-deco-bar { position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); }
.about-body { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 40px; }
.about-features { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.about-features li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: rgba(255,255,255,0.8); }
.about-features li::before { content: '→'; color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ─── CLIENTS ─── */
#clientes { background: white; }
.clients-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector-card { border: 1px solid var(--ice); border-radius: 8px; padding: 28px 24px; text-align: center; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.sector-card:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(192,57,43,0.1); transform: translateY(-4px); }
.sector-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.sector-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; }

/* ─── PRODUCTOS ─── */
#productos { background: var(--navy); }
.products-header { text-align: center; margin-bottom: 72px; }
.products-header .red-line { margin: 0 auto 24px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4); border-color: rgba(192,57,43,0.5); }
.product-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--navy-lt), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red); color: white;
  font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
}
.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--red); text-transform: uppercase; margin-bottom: 8px; display: block; }
.product-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 20px; }
.product-specs { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; flex: 1; }
.product-specs li { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.product-specs li:last-child { border-bottom: none; }
.spec-label { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 1px; color: var(--gray); text-transform: uppercase; }
.spec-value { font-weight: 600; color: rgba(255,255,255,0.85); font-size: 12px; text-align: right; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.product-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 28px; color: white; }
.product-price span { font-size: 13px; font-weight: 400; color: var(--gray); }
.product-btn { background: var(--red); color: white; padding: 10px 20px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; transition: background 0.25s; white-space: nowrap; }
.product-btn:hover { background: var(--red-lt); }

/* ─── CONTACT ─── */
#contacto { background: var(--ice); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; }
.contact-icon-wrap { width: 48px; height: 48px; flex-shrink: 0; background: var(--navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-item-label { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--gray); text-transform: uppercase; margin-bottom: 6px; display: block; }
.contact-item-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 18px; color: var(--navy); }
.contact-form { background: white; padding: 48px; box-shadow: 0 4px 40px rgba(15,30,60,0.08); }
.form-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; color: var(--navy); text-transform: uppercase; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--gray); text-transform: uppercase; display: block; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 16px; border: 1px solid #D8E2F4; background: var(--ice); color: var(--navy); font-family: 'Barlow', sans-serif; font-size: 15px; border-radius: 4px; outline: none; transition: border-color 0.25s, background 0.25s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); background: white; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 18px; background: var(--navy); color: white; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; transition: background 0.25s, transform 0.2s; margin-top: 8px; }
.form-submit:hover { background: var(--red); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer { background: var(--navy); border-top: 2px solid var(--red); padding: 60px 5vw 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo-wrap { width: 190px; margin-bottom: 16px; }
.footer-logo-wrap svg { width: 100%; height: auto; display: block; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-col-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px; color: white; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(192,57,43,0.4); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); font-family: 'Roboto Mono', monospace; letter-spacing: 1px; }
.footer-badge { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--red); border: 1px solid rgba(192,57,43,0.4); padding: 4px 12px; border-radius: 99px; }
.footer-dev { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,0.25); margin-top: 8px; }
.footer-dev a { color: rgba(192,57,43,0.7); text-decoration: none; transition: color 0.2s; }
.footer-dev a:hover { color: var(--red); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── WA FLOAT ─── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.4); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-stats { display: none; }
  #nosotros { grid-template-columns: 1fr; }
  .clients-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 72px 5vw; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
