/* --- GLOBAL STYLES & VARIABLES --- */
:root {
  --primary-color: #008f39;
  --dark-color: #333;
  --secondary-dark: #555;
  --light-gray-color: #f4f4f4;
  --gray-color: #ccc;
  --white-color: #fff;
  --font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--white-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

section {
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: #006d2c;
}

.division {
  border: 1px solid #b3b3b37a;
  margin: 0 20px;
}

/* --- HEADER & NAVIGATION --- */
.header {
  background-color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 1200px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}
.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  color: #333;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* --- HERO SECTION --- */

#inicio {
  scroll-margin-top: 0;
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  padding: 0;
  background: url("Images/Carrousel/camion3.jpg") no-repeat center center/cover;
  background-color: #555;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* --- FEATURES SECTION --- */
.features {
  background-color: var(--light-gray-color);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: center;
}
.feature-item .icon-placeholder {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* --- ABOUT US SECTION --- */

#nosotros {
  scroll-margin-top: 60px;
}

.about-us-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.about-us-logo img {
  width: 250px;
  height: auto;
}
.about-us-text {
  max-width: 600px;
  text-align: center;
}
.about-us-text h2 {
  text-align: center;
}

/* --- SERVICES SECTION --- */

#servicios {
  scroll-margin-top: 50px;
}

.soluciones {
  text-align: center;
}

.image-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* Proporción 1:1 para cuadrado */
}

.image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  opacity: 0;
  transition: 0.4s ease;
  padding: 10px;
}

.image-box:hover img {
  filter: brightness(60%);
}

.image-box:hover .overlay {
  opacity: 1;
}

/* --- COVERAGE SECTION --- */
.coverage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.coverage-info ul {
  list-style-type: disc;
  padding-left: 20px;
}
.coverage-info li {
  margin-bottom: 1rem;
}
.coverage-map img {
  max-width: 250px;
  margin: 0 auto;
}

/* --- METODOS SECTION --- */

.metodos {
  height: 250px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bloque {
  height: auto;
  width: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 35px;
}

.bloque h2 {
  font-size: 25px;
}

.bloque img {
  width: 120px;
}

/* --- CAROUSEL SECTION --- */
.carousel-section {
  padding: 0;
}
.carousel-item img {
  height: 60vh;
  max-height: 500px;
  min-height: 300px;
  object-fit: cover;
  width: 100%;
}

.carousel-item {
  zoom: 140%;
}

/* --- CONTACT & QUOTE SECTION --- */

#contacto {
  scroll-margin-top: 60px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-details {
  text-align: center;
}
.contact-details h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 1rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1.5rem auto;
  border: 1px solid #b3b3b3;
  border-radius: 13px;
  padding: 10px 20px;
  width: 100%;
  max-width: 350px;
  text-align: left;
}
.contact-method div p {
  margin: 0;
  padding: 5px 0;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--light-gray-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background-color: transparent;
}
.email-icon::before {
  content: "✉";
  font-size: 2rem;
  color: #555;
}
.phone-icon::before {
  content: "📞";
  font-size: 2rem;
  color: #555;
}

/* FORM STYLES */

#cotizacion {
  scroll-margin-top: 124px;
}

.contact-form-wrapper {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}
.contact-form-wrapper h2 {
  text-align: left;
  font-size: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-color);
  border-radius: 5px;
  font-family: inherit;
}
.form-group input[placeholder="Comuna"] {
  margin-top: 10px;
}
.fuel-options {
  display: flex;
  gap: 10px;
}
.fuel-btn {
  flex: 1;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--gray-color);
  background: var(--light-gray-color);
  font-weight: 500;
  transition: all 0.3s;
}
.fuel-btn.active {
  background: var(--dark-color);
  color: var(--white-color);
  border-color: var(--dark-color);
}
.fuel-btn.active[data-fuel="Kerosene"] {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}
.btn-whatsapp {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.btn-whatsapp:hover {
  background-color: #006d2c;
}
.btn-whatsapp img {
  width: 24px;
  height: 24px;
  background-color: transparent;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Footer Section */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

footer p {
  margin: 0;
}

/* --- RESPONSIVE STYLES --- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
  .about-us-container {
    flex-direction: row;
    text-align: left;
  }
  .about-us-text h2 {
    text-align: left;
  }
  .coverage-container {
    flex-direction: row;
  }
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
  .contact-details {
    text-align: left;
  }
  .contact-method {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  h2 {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .about-us-container,
  .coverage-container {
    gap: 2rem;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: var(--white-color);
    text-align: center;
    transition: left 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu li {
    padding: 1rem 0;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s linear;
  }

  .about-us-logo img {
    width: 330px;
    height: auto;
  }

  .carousel-inner {
    height: 400px;
  }

  .carousel-item {
    zoom: 70%;
  }

  .metodos {
    height: 350px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px;
  }

  .bloque {
    height: auto;
    width: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 35px;
  }

  .bloque h2 {
    font-size: 20px;
  }

  .bloque img {
    width: 90px;
  }

  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  #contacto {
    scroll-margin-top: 260px;
  }

  #cotizacion {
    scroll-margin-top: 280px;
  }

  #servicios {
    scroll-margin-top: 270px;
  }

  #nosotros {
    scroll-margin-top: 260px;
  }
}
