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

:root {
  --navy: #0e2d4a;
  --navy-2: #12395d;
  --navy-soft: #355a7a;
  --red: #e31b23;
  --gold: #d7a047;
  --gold-soft: #f1c067;
  --text: #1d2a36;
  --muted: #607286;
  --bg: #f5f7fa;
  --white: #ffffff;
  --line: #dce5ec;
  --shadow: 0 16px 35px rgba(11, 36, 60, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 7%;
  box-shadow: 0 10px 24px rgba(10, 29, 51, 0.08);
  border-bottom: 1px solid rgba(14, 45, 74, 0.06);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  background: transparent;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 28px;
  cursor: pointer;
}

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 90px 7%;
  background:
    linear-gradient(90deg, rgba(9, 28, 47, 0.82) 0%, rgba(14, 45, 74, 0.72) 38%, rgba(14, 45, 74, 0.24) 100%),
    url("img/hero-camion-mercedes.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-content {
  max-width: 740px;
}

.eyebrow {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-size: 13px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.eyebrow.dark {
  color: var(--navy);
  text-shadow: none;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--navy);
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

.hero-text {
  font-size: 20px;
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, var(--red), #c51c21);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(225, 38, 43, 0.28);
}

.btn.secondary {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.88);
  color: var(--white);
}

.section {
  padding: 88px 7%;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
}

.company-copy p {
  color: var(--text);
}

.company-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 12px;
}

.point {
  background: #f1f6fb;
  color: var(--navy);
  border: 1px solid rgba(14,45,74,0.08);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

.company-panel {
  background: linear-gradient(135deg, #0e2d4a 0%, #173f67 100%);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.panel-item {
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px;
}

.panel-number {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-soft);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.panel-item p {
  color: rgba(255,255,255,0.92);
}

.text-link {
  color: var(--red);
  font-weight: 800;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}

.services {
  text-align: center;
  background: #f7f9fc;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  text-align: left;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(11, 36, 60, 0.14);
}

.card-image {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.04) contrast(1.03);
}

.card-content {
  padding: 26px;
}

.card-content p {
  color: var(--muted);
}

.infraestructura {
  background: var(--white);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading p,
.section-heading .section-intro,
.infraestructura p {
  color: var(--muted);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.infra-card {
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(14,45,74,0.06);
}

.infra-card h3,
.infra-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.infra-card h3 {
  padding-top: 22px;
}

.infra-card p {
  padding-bottom: 26px;
  color: var(--muted);
}

.infra-image {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(14, 45, 74, 0.94), rgba(53, 90, 122, 0.72));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  text-align: center;
  padding: 20px;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  background: linear-gradient(180deg, #eef3f7 0%, #e7edf3 100%);
}

.contact-info p {
  margin-bottom: 12px;
  color: var(--text);
}

.contact-form {
  background: var(--white);
  padding: 34px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,45,74,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #cfd9e2;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(18,57,93,0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  margin-top: 12px;
  font-weight: 700;
  color: var(--navy);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 24px 7%;
}

.footer p {
  color: rgba(255,255,255,0.92);
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 20px 7%;
    box-shadow: 0 14px 26px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(14,45,74,0.06);
  }

  .nav.open {
    display: flex;
  }

  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .cards,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
    padding-top: 84px;
  }
}

@media (max-width: 580px) {
  .logo img {
    height: 36px;
  }

  .hero {
    min-height: 78vh;
    padding: 70px 6% 60px;
  }

  .hero-text {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 6%;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .company-panel {
    padding: 22px;
  }

  .panel-number {
    font-size: 28px;
  }
}


/* Infraestructura */
.infrastructure-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.infra-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-icon {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.infra-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.infra-side {
  display: grid;
  gap: 24px;
}

.infra-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 45, 74, 0.06);
}

.infra-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.infra-featured img {
  height: 470px;
  object-position: center;
}

.infra-card-content {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px 28px;
}

.infra-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 24px;
  position: relative;
}

.infra-icon::after {
  content: "";
  position: absolute;
  width: 68px;
  height: 3px;
  background: var(--red);
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.infra-card h3 {
  color: var(--blue);
  font-size: 24px;
  margin-bottom: 8px;
}

.infra-card p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .infra-featured img,
  .infra-card img {
    height: 260px;
  }

  .infra-card-content {
    grid-template-columns: 1fr;
  }
}


/* Sección Por qué elegirnos */
.why-section {
  background: var(--white);
}

.why-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(14,45,74,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 14px 34px rgba(11, 36, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(11, 36, 60, 0.12);
}

.why-number {
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.why-card h3 {
  color: var(--blue);
  font-size: 21px;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--muted);
  line-height: 1.55;
}

/* Contacto final */
.contact-final {
  background:
    linear-gradient(135deg, rgba(14,45,74,0.94), rgba(12,35,59,0.96)),
    linear-gradient(90deg, rgba(227,27,35,0.16), rgba(215,160,71,0.12));
  color: var(--white);
}

.contact-final .contact-content {
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-final .contact-text h2 {
  color: var(--white);
}

.contact-final .contact-text p {
  color: rgba(255,255,255,0.82);
}

.contact-info-card,
.location-card {
  margin-top: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 20px;
}

.contact-info-card p,
.location-card p {
  margin: 0;
}

.location-card h3 {
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.email-button {
  display: inline-block;
  margin-top: 8px;
  color: var(--white);
  background: var(--red);
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(227,27,35,0.25);
}

.email-button:hover {
  transform: translateY(-2px);
}

.contact-final .contact-form {
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}


/* Nuestros Clientes */
.clients-section {
  background:
    radial-gradient(circle at top left, rgba(215,160,71,0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  text-align: center;
}

.clients-heading {
  max-width: 820px;
  margin: 0 auto 38px;
}

.clients-logo-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.client-logo-card {
  min-height: 138px;
  background: var(--white);
  border: 1px solid rgba(14,45,74,0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(11, 36, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.client-logo-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(11, 36, 60, 0.13);
  border-color: rgba(14,45,74,0.16);
}

.client-logo-card:hover::after {
  opacity: 1;
}

.client-logo-card img {
  width: 100%;
  max-width: 190px;
  max-height: 82px;
  object-fit: contain;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

@media (max-width: 1080px) {
  .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .clients-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .client-logo-card {
    min-height: 118px;
    padding: 20px 16px;
  }

  .client-logo-card img {
    max-height: 68px;
  }
}

@media (max-width: 420px) {
  .clients-logo-grid {
    grid-template-columns: 1fr;
  }
}



/* Formulario Netlify */
.hidden-field {
  display: none;
}

.thanks-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(14,45,74,0.94), rgba(12,35,59,0.96)),
    linear-gradient(90deg, rgba(227,27,35,0.16), rgba(215,160,71,0.12));
  color: var(--white);
  display: grid;
  place-items: center;
  padding: 40px 7%;
  text-align: center;
}

.thanks-card {
  max-width: 680px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 48px 36px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

.thanks-card img {
  width: 180px;
  height: auto;
  margin-bottom: 26px;
}

.thanks-card h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 16px;
  color: var(--white);
}

.thanks-card p {
  color: rgba(255,255,255,0.86);
  font-size: 18px;
  margin-bottom: 28px;
}

.thanks-card .btn {
  background: var(--red);
  color: var(--white);
}


.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}


/* Mensaje de confirmación del formulario */
.form-message {
  margin-top: 14px;
  font-weight: 700;
  min-height: 24px;
}

.form-message.success {
  color: #0e7a3c;
  background: rgba(14, 122, 60, 0.08);
  border: 1px solid rgba(14, 122, 60, 0.16);
  padding: 12px 14px;
  border-radius: 10px;
}

.form-message.error {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.16);
  padding: 12px 14px;
  border-radius: 10px;
}

.contact-form button:disabled {
  opacity: 0.75;
  cursor: wait;
}
