/* --- SISTEMA DE DISEÑO --- */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;700;900&display=swap");

:root {
  --blue: #2778e3;
  --blue-dark: #1550a0;
  --dark: #0a0a0a;
  --gray-deep: #141414;
  --gray-med: #1a1a1a;
  --gray-light: #2a2a2a;
  --white: #ffffff;
  --text-muted: #a0a0a0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-decoration: none;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- BOTONES --- */
.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.btn-primary {
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--dark);
}

/* --- TIPOGRAFÍA --- */
.heavy {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

input,
select,
textarea {
  width: 100%;
  padding: 1.2rem;
  background: var(--dark);
  border: 1px solid transparent;
  color: var(--white);
  font-family: "Archivo Black", sans-serif;
  font-size: 0.75rem;
  outline: none;
  transition: var(--transition);
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}

/* --- ANIMACIONES --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

section {
  padding: 6rem 0;
}
.sms__float {
  background-color: var(--blue);
  border-radius: 50%;
  bottom: 1.5rem;
  box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.4);
  position: fixed;
  right: 1.5rem;
  text-align: center;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 0.6rem 0.6rem 0.7rem;
}
.sms__float svg {
  color: var(--white);
  fill: white;
}
/* ------------------------------------------ */

/* --- NAVEGACIÓN --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  background: var(--dark);
  padding: 1rem 0;
  border-bottom: 3px solid var(--blue);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-content-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mach {
  background: var(--blue);
  color: var(--dark);
  padding: 0.5rem 1rem;
  font-weight: 900;
  font-size: 1.5rem;
  border-radius: var(--radius);
  transform: skew(-15deg);
}

.logo-trans {
  color: var(--white);
  font-weight: 900;
  font-size: 1.3rem;
}

@media (max-width: 480px) {
  .logo-mach {
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
  }

  .logo-trans {
    font-size: 1rem;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links-contact {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  background: var(--blue);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.nav-links-contact:hover,
.nav-links-contact:focus,
.nav-links-contact:active {
  color: var(--white) !important;
  background: #25d366;
}

/* --- NAVEGACIÓN MOBILE --- */
#menu-open {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* --- MENÚ MÓVIL --- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.mobile-overlay.active {
  visibility: visible;
  opacity: 1;
}

.mobile-overlay a {
  color: var(--white);
  text-decoration: none;
  font-size: 2rem;
}

.mobile-link:hover,
.mobile-link:focus,
.mobile-link:active {
  color: var(--blue);
}

/* ------------------------------------------ */

/* --- HERO --- */
.hero {
  height: 110vh;
  position: relative;
  background:
    linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
    url("./media/freight-logistics.webp") no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

@media (max-width: 480px) {
  .hero {
    background-position: right center;
  }
}

.hero-container {
  position: relative;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
}

.hero-container h2 {
  letter-spacing: 0.4em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--blue);
  font-weight: 800;
}

.hero-container p {
  max-width: 600px;
  margin: 0 0 3rem 0;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: 0.9;
  margin-bottom: 2rem;
}

.hero-title span {
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: 0.9;
  margin-bottom: 2rem;
  color: var(--blue);
}

.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.hero-cta-wrapper a {
  display: flex;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius);
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .hero-cta-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .mail-bt {
    font-size: 0.8rem;
  }
}

/* ------------------------------------------ */

.about-wrapper {
  background: var(--dark);
}

.about-subcontainer {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.about-leftpanel h2 {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.about-leftpanel h3 {
  line-height: 1;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 3vw, 5rem);
}

.about-leftpanel p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-leftpanel-icons-wrapper {
  gap: 1.5rem;
}

.about-leftpanel-icons {
  display: flex;
  gap: 1rem;
}

.leftpanel-icon {
  background: var(--gray-med);
  padding: 1rem;
  color: var(--blue);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.leftpanel-text h4 {
  font-size: 0.9rem;
}

.leftpanel-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-rightpanel {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-rightpanel-icons {
  text-align: center;
  border-radius: var(--radius);
}

.about-rightpanel a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

.about-rightpanel-icons p {
  font-size: 2rem;
}

.about-rightpanel-icons span {
  font-size: 1.5rem;
}

.about-rightpanel-icons:nth-child(1) {
  background: var(--gray-med);
  padding: 3rem;
}

.about-rightpanel-icons:nth-child(2) {
  background: var(--blue);
  color: var(--dark);
  padding: 3rem;
}

.about-rightpanel-icons:nth-child(3) {
  background: var(--gray-light);
  grid-column: span 2;
  padding: 1rem;
}

.about-rightpanel a:nth-child(3):hover {
  background: #25d366;
}

@media (max-width: 950px) {
  .about-rightpanel-icons p {
    font-size: 1.5rem;
  }
  .about-rightpanel-icons span {
    font-size: 1.2rem;
  }
  .about-rightpanel-icons:nth-child(1) {
    padding: 1rem;
  }
  .about-rightpanel-icons:nth-child(2) {
    padding: 1rem;
  }
}

/* ------------------------------------------ */

.services-wrapper {
  background: var(--gray-deep);
}

.services-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 4rem;
}

.services-header h2 span {
  color: var(--blue);
}

.grid-cargo {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cargo-item {
  background: var(--gray-med);
  padding: 2rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
  transition: var(--transition);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.cargo-item:hover {
  background: var(--gray-light);
  transform: translateY(-5px);
  border-color: var(--blue);
}

.cargo-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.cargo-item:hover i {
  color: var(--blue);
}

.cargo-item h5 {
  font-size: 0.7rem;
}

.cargo-item-select {
  background: var(--blue);
  color: var(--dark);
}

.cargo-item-select:hover {
  background: var(--blue-dark);
}

.cargo-item-select i {
  color: var(--dark);
}

.cargo-item-select:hover i {
  color: var(--white);
}

/* ------------------------------------------ */

.team-header h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 4rem;
}

.team-header h3 span {
  color: var(--blue);
}

/* --- CARDS Y GRIDS --- */
.grid-pillars {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: var(--gray-med);
  padding: 2rem;
  border-top: 4px solid var(--blue);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius);
}

.pillar-card:nth-child(even) {
  border-top-color: var(--white);
}

.pillar-card-title {
  background: var(--text-muted);
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.pillar-card h4 {
  /* margin-bottom: 1rem; */
  font-size: 1.25rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.pillar-card a {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.25rem;
}

.pillar-card a:hover {
  color: var(--blue-dark);
}

/* ------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-med);
  padding: 4rem;
  gap: 4rem;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 98% 100%, 0 100%);
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 576px) {
  .form-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.contact-leftpanel h2 {
  font-size: 3rem;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.contact-leftpanel h2 span {
  color: var(--blue);
  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 0.9;
}

.contact-leftpanel p {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-leftpanel-info {
  display: grid;
  gap: 1rem;
}

.contact-leftpanel-info a {
  color: var(--white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .contact-leftpanel-info .email-link {
    font-size: 0.8rem;
  }
}

.social-wrapper {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.social-wrapper a i {
  font-size: 1.5rem;
}

.social-wrapper a:hover {
  color: var(--blue);
}

.contact-rightpanel button {
  border-radius: var(--radius);
}

/* ------------------------------------------ */

footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--gray-med);
}

.logo-container {
  margin-bottom: 1rem;
}

.logo-container img {
  width: 350px;
}

.footer-copyright {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .logo-container img {
    width: 100%;
  }
  .footer-copyright {
    text-align: center;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
  .nav-links {
    display: none;
  }
  #menu-open {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .grid-cargo {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1483px) {
}
@media (max-width: 1280px) {
}
@media (max-width: 1150px) {
}
@media (max-width: 950px) {
}
@media (max-width: 768px) {
}
@media (max-width: 576px) {
}
@media (max-width: 480px) {
}
@media (max-width: 455px) {
}
@media (max-width: 350px) {
}
