/* ===== VARIABLES ===== */
:root {
  --blue-1: #17b0e4;
  --blue-2: #2e83c3;
  --blue-3: #236292;
  --blue-4: #5fcbef;
  --blue-5: #eaf6fc;
  --navy: #16384f;
  --text: #33485a;
  --light: #ffffff;
  --gray: #6b7684;
  --border: #dcebf4;
  --shadow: 0 10px 30px rgba(46, 131, 195, 0.12);
  --radius: 14px;
  --font: "Segoe UI", "Helvetica Neue", Arial, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--navy); background: var(--light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== BOTONES ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; transition: all 0.25s ease; text-align: center; }
.btn-accent { background: linear-gradient(90deg, var(--blue-1), var(--blue-2)); color: var(--light); }
.btn-accent:hover { background: linear-gradient(90deg, var(--blue-2), var(--blue-3)); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46, 131, 195, 0.4); }
.btn-outline { border-color: var(--blue-2); color: var(--blue-2); }
.btn-outline:hover { background: var(--blue-2); color: var(--light); }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.link-accent { color: var(--blue-2); font-weight: 700; }

/* ===== HEADER ===== */
.header { padding-top: 10px; padding-bottom: 10px; position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(46, 131, 195, 0.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; }
.brand-name { color: var(--navy); font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--text); font-size: 0.95rem; font-weight: 600; position: relative; transition: color 0.2s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--blue-1); transition: width 0.25s; }
.nav-link:hover, .nav-link.active { color: var(--blue-2); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 9px 20px; font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: url('../img/cotiza/TRUCKS.png') center right / 60% auto no-repeat; padding: 150px 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 40%, rgba(255,255,255,0.25) 75%, rgba(255,255,255,0.08) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.1; color: var(--navy); margin-bottom: 16px; }
.hero-title span { color: var(--blue-1); }
.hero-subtitle-hero { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; color: var(--blue-3); margin-bottom: 12px; }
.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-media { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; transform: translateX(-2%); pointer-events: none; }
.hero-float-card { position: absolute; right: 6%; bottom: 44px; background: var(--blue-2); color: var(--light); padding: 16px 22px; border-radius: 14px; box-shadow: 0 14px 30px rgba(35, 98, 146, 0.35); display: flex; flex-direction: column; transform: rotate(-3deg); }
.hero-float-card strong { font-size: 1.05rem; font-weight: 800; }
.hero-float-card span { font-size: 0.8rem; opacity: 0.92; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--navy); padding: 32px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--light); }
.trust-icon { font-size: 1.8rem; color: var(--blue-4); flex-shrink: 0; }
.trust-text strong { display: block; font-size: 1rem; font-weight: 700; }
.trust-text span { font-size: 0.85rem; opacity: 0.8; }

/* ===== SECCIONES ===== */
.section { padding: 96px 0; }
.section-light { background: var(--blue-5); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-kicker { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; color: var(--blue-2); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.15; color: var(--navy); margin-bottom: 16px; }
.section-lead { color: var(--gray); font-size: 1.05rem; }

/* ===== PRODUCTOS ===== */
.products-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card { display: flex; align-items: center; gap: 24px; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(46, 131, 195, 0.18); }
.product-card-img { width: 140px; height: 140px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--blue-5); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.1); }
.product-card-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-card-body p { color: var(--gray); font-size: 0.95rem; margin-bottom: 12px; }
.product-card-body .link-accent { display: inline-flex; align-items: center; gap: 6px; }

/* ===== SOLUCIONES ===== */
.solutions-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 48px; }
.solution-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; box-shadow: var(--shadow); flex: 0 1 calc(33.333% - 16px); min-width: 260px; }
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(46, 131, 195, 0.18); }
.solution-icon { font-size: 2.2rem; color: var(--blue-1); margin-bottom: 16px; }
.solution-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.solution-card p { color: var(--gray); font-size: 0.93rem; }
.solution-cta { text-align: center; padding: 40px 0 0; }
.solution-cta p { color: var(--gray); font-size: 1.05rem; margin-bottom: 20px; }

/* ===== BENEFICIOS ===== */
.benefits-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.benefit-card { background: var(--light); border: 1px solid var(--border); border-top: 4px solid var(--blue-1); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; flex: 0 1 calc(33.333% - 19px); min-width: 260px; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(46, 131, 195, 0.18); }
.benefit-icon { font-size: 2rem; margin-bottom: 16px; color: var(--blue-1); }
.benefit-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.benefit-card p { color: var(--gray); font-size: 0.97rem; }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(120deg, var(--blue-2) 0%, var(--blue-3) 100%); color: var(--light); padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.cta-inner p { opacity: 0.92; }
.cta-band .btn-accent { background: var(--light); color: var(--blue-2); }
.cta-band .btn-accent:hover { background: var(--blue-5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

/* ===== GALERIA ===== */
.gallery-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--blue-5); box-shadow: 0 10px 30px rgba(35, 98, 146, 0.15); transition: transform 0.3s, box-shadow 0.3s; }
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(35, 98, 146, 0.3); }
.gallery-card-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(to top, rgba(22, 56, 79, 0.88) 0%, rgba(22, 56, 79, 0.25) 60%, rgba(22, 56, 79, 0.1) 100%); color: var(--light); text-align: center; padding: 20px; }
.gallery-card-overlay h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.gallery-card-count { font-size: 0.95rem; opacity: 0.85; }

/* ===== CONTACTO ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 18px; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.contact-item:hover { transform: translateX(6px); border-color: var(--blue-1); box-shadow: var(--shadow); }
.contact-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--blue-5); border-radius: 12px; border: 1px solid var(--border); }
.contact-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.contact-item span { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.contact-form { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { color: var(--navy); margin-bottom: 20px; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 600; margin: 14px 0 6px; color: var(--navy); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.98rem; background: var(--light); transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--blue-1); }
.contact-form select { appearance: auto; cursor: pointer; }
.contact-form .btn { margin-top: 22px; width: 100%; }
.form-note { margin-top: 12px; font-size: 0.9rem; color: var(--blue-2); text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-3); color: rgba(255, 255, 255, 0.85); padding: 44px 0; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-name { color: var(--light); font-size: 1.2rem; }
.footer-brand .brand-logo { background: var(--light); }
.footer-text { max-width: 560px; margin: 0 auto 10px; }
.footer-copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--light); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); transition: transform 0.25s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(22, 56, 79, 0.96); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: 88vw; max-height: 82vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-figure img { max-width: 88vw; max-height: 76vh; object-fit: contain; border-radius: 10px; }
.lightbox-figure figcaption { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--light); font-size: 1.8rem; width: 46px; height: 46px; border-radius: 50%; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.15); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--light); font-size: 3rem; width: 60px; height: 90px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.12); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 130px 0 70px; }
  .hero::before { background: rgba(255, 255, 255, 0.45); }
  .hero-media { position: relative; inset: auto; z-index: auto; transform: none; pointer-events: auto; display: flex; align-items: center; justify-content: center; margin-top: 48px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .products-list { grid-template-columns: 1fr; }
  .solutions-grid { gap: 20px; }
  .solution-card { flex: 0 1 calc(50% - 10px); }
  .benefits-grid { gap: 20px; }
  .benefit-card { flex: 0 1 calc(50% - 10px); }
  .gallery-categories { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 74px; right: 0; width: min(320px, 82vw); height: calc(100vh - 74px); background: var(--light); flex-direction: column; align-items: flex-start; gap: 0; padding: 24px; transform: translateX(100%); transition: transform 0.35s ease; border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(35, 98, 146, 0.12); }
  .nav.open { transform: translateX(0); }
  .nav-link { padding: 14px 0; font-size: 1.05rem; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 20px; width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .solutions-grid { gap: 16px; }
  .solution-card { flex: 0 1 100%; }
  .benefits-grid { gap: 16px; }
  .benefit-card { flex: 0 1 100%; }
  .cta-inner { flex-direction: column; text-align: center; }
  .lightbox-nav { width: 44px; font-size: 2rem; }
}

@media (max-width: 480px) {
  .gallery-categories { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
}
