/* ============================================
   DICSAY — Transportes y Logística
   Layout inspirado en fedex.com
   ============================================ */

:root {
  --primary: #0b2545;      /* azul corporativo oscuro */
  --primary-dark: #061627;
  --accent: #ff6600;       /* naranjo de acento / CTA */
  --accent-dark: #e05a00;
  --gray-light: #f4f5f7;
  --gray-mid: #6b7280;
  --border: #e2e5eb;
  --white: #ffffff;
  --radius: 6px;
  --font: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--primary-dark);
  line-height: 1.55;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { opacity: 0.85; }
.topbar a:hover { opacity: 1; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}
.logo span { color: var(--accent); }

nav.main-nav ul {
  display: flex;
  gap: 32px;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dark);
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--accent);
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background .2s;
}
.btn-cta:hover { background: var(--accent-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--white);
  transition: all .2s;
}
.btn-outline:hover { background: var(--white); color: var(--primary) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(6,22,39,.75), rgba(6,22,39,.55)),
              url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1600')
              center/cover no-repeat;
  color: var(--white);
  padding: 110px 0 90px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  max-width: 640px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero p {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 30px;
  opacity: .92;
}
.hero .hero-actions { display: flex; gap: 16px; }

/* Quote / quick-action bar (estilo tracking bar de FedEx) */
.quick-bar {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: var(--radius);
  margin-top: -46px;
  position: relative;
  z-index: 10;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.quick-bar .qb-item { flex: 1 1 200px; }
.quick-bar label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 6px;
}
.quick-bar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.quick-bar .btn-cta { flex: 0 0 auto; }

/* ---------- Section headings ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--gray-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head p { color: var(--gray-mid); font-size: 16px; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Services grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.card .icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.card p { font-size: 14px; color: var(--gray-mid); }

/* ---------- Routes list ---------- */
.routes-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.routes-block ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.routes-block li {
  padding: 10px 14px;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Split feature (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); }
.split h2 { color: var(--primary); font-size: 28px; margin-bottom: 14px; }
.split p { color: var(--gray-mid); margin-bottom: 12px; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p.quote { font-style: italic; margin-bottom: 16px; }
.testimonial .author { font-weight: 700; color: var(--primary); }
.testimonial .location { font-size: 13px; color: var(--gray-mid); }

/* ---------- Clients logos ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.logo-strip img { max-height: 60px; opacity: .75; filter: grayscale(100%); transition: opacity .2s; }
.logo-strip img:hover { opacity: 1; filter: none; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-banner h2 { font-size: 28px; margin-bottom: 12px; }
.cta-banner p { opacity: .85; margin-bottom: 24px; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
form.contact-form label { font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--gray-mid); }
form.contact-form input,
form.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
.info-box {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
}
.info-box h3 { color: var(--primary); margin-bottom: 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.info-box p { margin-bottom: 20px; color: var(--gray-mid); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 20px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; color: var(--white); }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; opacity: .8; }
.footer-grid ul li a:hover { opacity: 1; text-decoration: underline; }
.footer-logo { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-tagline { opacity: .75; font-size: 14px; margin-bottom: 16px; max-width: 280px; }
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: .65;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .routes-block, .split, .contact-grid, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
