:root {
  --primary: #0D233A;
  --secondary: #1B5299;
  --accent: #00A8CC;
  --dark-neutral: #333333;
  --light-bg: #F4F6F9;
  --white: #ffffff;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); color: var(--dark-neutral); background: var(--light-bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.header { background: var(--primary); color: var(--white); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; }
.logo img { height: 100px; width: auto; display: block; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* Page hero (inner pages) */
.page-hero { background: var(--secondary); padding: 60px 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,.02) 20px, rgba(255,255,255,.02) 21px); }
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-badge { display: inline-block; padding: 5px 14px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-family: var(--font-mono); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { font-size: 32px; font-weight: 700; color: var(--white); }
.page-hero p { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 8px; max-width: 500px; }

/* Sections */
.section { padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.section h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.section h2 span { color: var(--accent); }
.section p { color: #555; font-size: 15px; line-height: 1.8; margin-bottom: 16px; max-width: 700px; }
.section > p { color: var(--dark-neutral); font-size: 15px; margin-bottom: 32px; max-width: 600px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; border: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* CTA banner */
.cta-banner { background: var(--secondary); padding: 50px 40px; text-align: center; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: rgba(13,35,58,.78); }
.cta-banner { position: relative; overflow: hidden; background: url('../img/cta-bg.webp') center/cover no-repeat; }
.cta-banner h2, .cta-banner p, .cta-banner .btn { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 28px; color: var(--white); margin-bottom: 12px; }
.cta-banner h2 span { color: var(--accent); }
.cta-banner p { color: rgba(255,255,255,.6); font-size: 15px; margin-bottom: 24px; }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 50px 40px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer p, .footer a { font-size: 13px; color: rgba(255,255,255,.55); line-height: 2; }
.footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.35); max-width: 1200px; margin-left: auto; margin-right: auto; }

/* WhatsApp float */
.whatsapp { position: fixed; bottom: 24px; right: 24px; z-index: 1000; background: #25d366; color: var(--white); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: transform .25s; cursor: pointer; }
.whatsapp:hover { transform: scale(1.1); }

/* Placeholder images */
.placeholder-img { background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-family: var(--font-mono); font-size: 12px; min-height: 200px; border-radius: var(--radius); }

/* ===== HOMEPAGE ===== */
.hero { color: var(--white); padding: 100px 40px 80px; position: relative; overflow: hidden; background: url('../img/hero.webp') center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,35,58,.94) 0%, rgba(13,35,58,.82) 50%, rgba(13,35,58,.45) 100%); }
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 5px 14px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-family: var(--font-mono); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; max-width: 700px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: rgba(255,255,255,.65); max-width: 560px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid #e8e8e8; border-radius: var(--radius); transition: all .25s; position: relative; overflow: hidden; }
.service-card .card-img { height: 130px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.service-card:hover .card-img img { transform: scale(1.06); }
.service-card .card-body { padding: 20px 24px 28px; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent); transform: scaleY(0); transition: transform .25s; z-index: 2; }
.service-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.service-card:hover::before { transform: scaleY(1); }
.service-card .icon { font-size: 32px; margin-bottom: 10px; }
.service-card h3 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--dark-neutral); line-height: 1.6; margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; padding: 60px 40px; position: relative; overflow: hidden; background: url('../img/stats-bg.webp') center/cover no-repeat; }
.stats::before { content: ''; position: absolute; inset: 0; background: rgba(13,35,58,.82); }
.stat { text-align: center; padding: 24px; position: relative; z-index: 1; }
.stat .num { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 4px; }

/* ===== EMPRESA ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0; align-items: start; }
.about-text p { font-size: 14px; color: #666; line-height: 1.8; }
.about-img { border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.about-img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.value-card { background: var(--white); border: 1px solid #e8e8e8; border-radius: var(--radius); padding: 28px 24px; }
.value-card .icon { font-size: 28px; margin-bottom: 12px; }
.value-card h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--dark-neutral); margin-bottom: 0; }

.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.mv-card { background: var(--secondary); color: var(--white); border-radius: var(--radius); padding: 32px; }
.mv-card h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mv-card p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin-bottom: 0; max-width: 100%; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.stats-grid .stat { text-align: center; padding: 24px; background: var(--white); border: 1px solid #e8e8e8; border-radius: var(--radius); }
.stats-grid .num { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--accent); }
.stats-grid .label { font-size: 13px; color: var(--dark-neutral); margin-top: 4px; }

/* ===== SERVICIOS ===== */
.service-detail { background: var(--white); border: 1px solid #e8e8e8; border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.service-detail-header { display: flex; align-items: center; gap: 16px; padding: 28px 32px; cursor: pointer; }
.service-detail-header .icon { font-size: 36px; }
.service-detail-header h3 { font-size: 18px; font-weight: 600; color: var(--primary); }
.service-detail-img { width: 110px; height: 74px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; margin-left: auto; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.service-detail:hover .service-detail-img img { transform: scale(1.06); }
.service-detail-body { padding: 0 32px 28px; border-top: 1px solid #e8e8e8; }
.service-detail-body p { font-size: 14px; color: #666; line-height: 1.8; margin: 16px 0; max-width: 700px; }
.service-detail-body ul { list-style: none; padding: 0; }
.service-detail-body li { padding: 6px 0 6px 20px; font-size: 14px; color: #555; position: relative; }
.service-detail-body li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== CATALOGO ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-item { background: var(--white); border: 1px solid #e8e8e8; border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.cat-item:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.cat-img { height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.cat-item:hover .cat-img img { transform: scale(1.05); }
.cat-info { padding: 20px; }
.cat-info h3 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.cat-info p { font-size: 13px; color: var(--dark-neutral); margin-bottom: 12px; }
.cat-tag { display: inline-block; background: var(--accent); color: var(--primary); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 50px; font-family: var(--font-mono); }
.cat-tag.outline { background: transparent; border: 1px solid var(--accent); color: var(--secondary); }
a.cat-tag.outline { text-decoration: none; cursor: pointer; margin-top: 6px; }
a.cat-tag.outline:hover { background: var(--accent); color: var(--white); }
.cat-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-cat { padding: 8px 18px; border: 1px solid #ddd; border-radius: 50px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .2s; }
.cat-cat:hover, .cat-cat.active { border-color: var(--accent); background: var(--accent); color: var(--primary); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 14px 20px; }
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 16px 20px; gap: 12px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 30px; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 26px; }
  .section { padding: 40px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .mission-vision { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-header { padding: 20px; }
  .service-detail-body { padding: 0 20px 20px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}
