/* ===== CBA Equipos — estilos institucionales ===== */
:root {
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --text: #0f1b2d;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 27, 45, 0.16);
  --maxw: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Secciones */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  color: var(--blue); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
.lead { color: var(--slate); font-size: 1.08rem; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.18s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--navy); }
.brand img { height: 48px; width: auto; display: block; }
.brand .accent { color: var(--blue); }
.brand small { display:block; font-size:0.6rem; font-weight:600; letter-spacing:0.22em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--navy); }
.nav-links .btn { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 120px 0 130px;
  background: linear-gradient(rgba(15,27,45,0.82), rgba(15,27,45,0.92)), var(--hero-img, none);
  background-size: cover; background-position: center;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; max-width: 900px; margin: 0 auto; }
.hero p { color: #cbd5e1; font-size: 1.15rem; max-width: 620px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Nosotros ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text p { color: var(--slate); margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--blue); }
.stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ===== Productos / servicios ===== */
.features { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), #60a5fa); color: #fff; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 0.97rem; }

/* ===== Galería ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery-grid figure {
  position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid .wide { grid-column: span 2; }

/* ===== Showrooms ===== */
.showrooms { background: var(--navy); color: #fff; }
.showrooms h2, .showrooms .section-head p { color: #fff; }
.showrooms .section-head p { color: #cbd5e1; }
.show-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.show-card {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 34px; text-align: center; transition: border-color 0.2s ease, transform 0.2s ease;
}
.show-card:hover { border-color: rgba(255,255,255,0.35); transform: translateY(-4px); }
.show-card h3 { color: #fff; font-size: 1.4rem; }
.show-card p { color: #94a3b8; margin: 10px 0 22px; }
.ig-link {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #f9557e, #a021b0);
}
.ig-link:hover { opacity: 0.92; transform: translateY(-1px); }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info h3 { margin-bottom: 6px; }
.contact-info .lead { margin-bottom: 28px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-item .ic { color: var(--blue); flex: 0 0 auto; margin-top: 3px; }
.info-item strong { display: block; color: var(--navy); }
.info-item span, .info-item a { color: var(--slate); }

form.contact-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Footer ===== */
.site-footer { background: #0a1420; color: #94a3b8; padding: 48px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-grid .brand { color: #fff; }
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; text-align: center; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 15, 26, 0.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
  transition: background 0.15s ease;
}
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column;
    gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform 0.25s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 4px 24px; }
  .nav-links a { display: block; padding: 10px 0; }
  .nav-links .btn { justify-content: center; margin: 8px 0; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .wide { grid-column: span 2; }
  .show-cards { grid-template-columns: 1fr; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
