/* RESET Y VARIABLES BÁSICAS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #cc0000;
  --background-dark: #1a1a1a;
  --background-light: #ffffff;
  --text-color-dark: #1a1a1a;
  --text-color-light: #f5f5f5;
  --border-radius: 10px;
  --box-shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.4);
  --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* FONDOS */
.dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

/* TIPOGRAFÍA */
h1,
h2 {
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-color-dark);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* BOTONES CTA */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.3rem 2.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color-light);
  background-color: var(--primary-color);
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
  margin-top: 1.5rem;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(204, 0, 0, 0.5);
}

.cta-button i {
  margin-right: 0.8rem;
  font-size: 1.4rem;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.whatsapp-float-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 2rem;
  color: var(--text-color-light);
  background-color: #25d366;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* SECCIONES */
section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;

  /* Fallback: degradado de color mientras carga la imagen */
  background: linear-gradient(to bottom, #0d1b2a, #1a1a1a);
}

/* Imagen + degradado overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.2)),
              url("./img/fondocamion.webp") center/cover no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-section.loaded::before {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content .logo {
  width: clamp(200px, 40vw, 300px);
  margin-bottom: 2rem;
}

.hero-content .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #e9e6e6;
}

.hero-section h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* FEATURES, DETAILS y CTA FINAL se mantienen igual */
.features-section .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  background-color: var(--background-light);
  color: var(--text-color-dark);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-light);
}

.feature-item i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.feature-item p {
  color: #555555;
}

.details-section .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.details-text {
  text-align: center;
}

.details-text ul {
  list-style: none;
  margin-top: 1.5rem;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.details-text li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: #555555;
}

.details-text li i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.details-image {
  text-align: center;
}

.details-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.cta-final-section {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-final-section h2 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
  .features-section .container {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }

  .feature-item {
    max-width: 300px;
  }

  .details-section .container {
    flex-direction: row;
    text-align: left;
  }

  .details-text {
    text-align: left;
    flex: 1;
  }

  .details-text ul {
    margin-left: 0;
  }

  .details-image {
    flex: 1;
  }
}