/* Base styles */
:root {
  --primary-color: #2b3094;
  --accent-color: #84c454;
  --hover-accent: #6ba843;
  --text-color-light: #666666;
  --light-bg: #f5f5f5;
  --white: #ffffff;
}

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

body {
  font-family: "Merriweather Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color-light);
}

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

/* Header */
.header {
  background-color: var(--white);
  padding: .8rem 0;
  color: var(--white);
}

.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .container img {
  display: block;
  max-width: 100%;
  width: min(40vw, 180px);
  height: auto;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 2.1705rem + 0.3788vw, 2.625rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.125rem;
  line-height: normal;
  font-weight: 500;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--hover-accent);
}

/* Button WhatsApp */
.boton-whatsapp-flotante {
  background-color: #40c351;
  border-radius: 25px;
  position: fixed;
  z-index: 1;
  bottom: 120px;
  right: 50px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  height: 47px;
  width: 155px;
  text-decoration: none;
  transition: transform 0.3s linear;
  /*La siguiente propiedad evita que en el movimiento transform: scale(1.02) el texto salte al agrandarse*/
  will-change: transform;
}

.boton-whatsapp-flotante img {
  position: absolute;
  max-width: 55px;
  width: 100%;
  height: auto;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.boton-whatsapp-flotante span {
  position: absolute;
  display: inline-block;
  vertical-align: middle;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  letter-spacing: 0.5px;
  font-weight: 500;
  font-size: 15px;
  line-height: 2.5;
}

.boton-whatsapp-flotante:hover {
  transform: scale(1.02) translate3d(0, 0, 0) perspective(1px);
}

.primary-h2 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--primary-color);
  text-align: center;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.feature-icon svg {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.1);
}

.primary-h3 {
  line-height: 1.2;
  margin-bottom: .5rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.product-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-content {
  padding: 1.5rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: .5rem;
}

ul li svg {
  flex-shrink: 0;
  margin-right: .5rem;
  margin-top: .25rem;
  color: var(--accent-color);
}

.py-4-own {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

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

.bg-blue {
  background-color: var(--primary-color);
}

.d-grid {
  display: grid;
}

.gap-2 {
  gap: 2rem;
}

.gap-4 {
  gap: 4rem;
}

.max-w-48 {
  max-width: 48rem;
}

.mx-auto-own {
  margin-left: auto;
  margin-right: auto;
}

.mb-2-own {
  margin-bottom: 2rem;
}

.mb-1-own {
  margin-bottom: 1rem;
}

.my-05-own {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mb-05-own {
  margin-bottom: 0.5rem;
}

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

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

@media (min-width: 768px) {

  .grid-template-columns-1fr {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  text-align: center;
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

#truck {
  animation-name: moving-car;
  animation-timing-function: linear;
  animation-duration: .8s;
  animation-iteration-count: infinite;
}

@keyframes moving-car {
  0% {
    transform: translateX(-5px);
    transform: translateY(1px);
  }

  50% {
    transform: translateX(5px);
    transform: translateY(0px);
  }

  100% {
    transform: translateX(10px);
    transform: translateY(1px);
  }
}

.payment-methods-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-methods img {
  display: block;
  max-height: 45px;
  height: 100%;
  width: auto;
}

.contact-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(132, 196, 84, 0.2);
}

.submit-button {
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 16px;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: var(--hover-accent);
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .boton-whatsapp-flotante {
    right: 30px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-text p {
  text-align: center;
}