/* --------------------------------------------------
  VARIABLES GLOBALES Y RESET BÁSICO
   -------------------------------------------------- */
:root {
  --gris-claro: #F7F7F7;
  --gris-medio: #E6E6E6;
  --primary: #000000;
  --secondary: #555555;
  --accent: #B22222;
  --font-sans: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  color: var(--primary);
  background-color: #ffffff;
  line-height: 1.5;
}

/*HEADER Y MENÚ PRINCIPAL */
header {
  display: flex;
  align-items: center;       /* Centra verticalmente logo + botones + nav */
  justify-content: space-between; /* Logo a la izquierda, nav a la derecha */
  padding: 1.5rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--gris-medio);
}
.logo {
  max-width: 10rem;
}

.logo,
.logo-link {
  -webkit-user-drag: none;
}

/* Lista de navegación en desktop */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;  /* CENTRA los <li> verticalmente */
  gap: 2rem;
}

.nav-list li {
  position: relative; /* Para poder posicionar dropdown-content */
}
/* Enlaces normales */
.nav-list li a {
  display: block;        /* Hace que el <a> ocupe toda la altura de su contenedor <li> */
  line-height: normal;   /* Asegura que el texto se centre verticalmente */
  padding: 0.5rem 0;     /* Puedes ajustar vertical u horizontal si lo deseas */
  text-decoration: none;
  color: #1c1c1c;
  font-size: 1rem;
}

/* Botones de hamburguesa (invisibles en desktop) */
.abrir-menu,
.cerrar-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

/*DROPDOWN (desktop y mobile) */
.dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  color: #1c1c1c;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Contenido del dropdown (oculto por defecto) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  list-style: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.dropdown-content li {
  margin: 0.6rem 0;
}

.dropdown-content li a {
  color: #1c1c1c;
  text-decoration: none;
  display: block;
}

/* En desktop (≥ 551px), al hacer hover se muestra */
@media screen and (min-width: 551px) {
  .dropdown:hover .dropdown-content {
    display: block;
}
  .dropdown-btn i {
    display: none; /* Oculta el caret icon en desktop */
}
}

/* Menú en móviles (≤ 550px) */
@media screen and (max-width: 550px) {
  /* Mostrar botones hamburguesa */
  .abrir-menu,
  .cerrar-menu {
    display: block;
    color: #1c1c1c;
    background-color: transparent;
  }
  .cerrar-menu {
    color: #ececec;
  }

  /* Nav oculta por defecto */
  .nav {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: #1c1c1c;
    padding: 2rem;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5);
    width: 70%;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  }

  /* Cuando tenga clase .visible, se muestra */
  .nav.visible {
    opacity: 1;
    visibility: visible;
  }

  /* Lista vertical en mobile */
  .nav-list {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    color: #ececec;
    display: block;
    width: 100%;
    font-size: 1.1rem;
  }

  /* Botón dropdown en mobile toma todo el ancho */
  .dropdown-btn {
    color: #ececec;
    width: 100%;
    justify-content: space-between;
  }

  /* Dropdown-content adaptado a mobile */
  .dropdown-content {
    display: none;
    position: static; /* Para que ocupe 100% dentro del flujo */
    background-color: transparent !important;
    box-shadow: none;
    padding-left: 0;
    margin-top: 0.3rem;
    width: 100%;
    z-index: auto;
  }
  .dropdown-content li {
    padding-left: 1rem;
    width: 100%;
  }
  .dropdown-content li a {
    color: #ececec;
    padding: 0.15rem 0;
    display: block;
    width: 100%;
  }

  /* Si el <li class="dropdown"> tiene open, mostrar */
  .dropdown.open .dropdown-content {
    display: flex;
    flex-direction: column;
  }
}

/*BANNER 1*/
.banner {
  max-width: 100%;
  overflow: visible;
  text-align: center;
}

.banner__img {
  display: inline-block;
  width: 100%;
  height: auto;
}

/* ─── ACCESO RÁPIDO ─── */
.quick-access {
  padding: 1rem 1rem 2rem;
  background-color: var(--gris-claro);
  text-align: center;
}

.quick-access__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

.quick-access__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─ Tarjetas blancas con sombra ─ */
  .quick-access__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  background-color: #ffffff;
  border-radius: 0.8rem;
  padding: 1.2rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;

  /* ───────── Ajuste de ancho ───────── */
  max-width: 260px;  /* ancho máximo de la tarjeta */
  width: 100%;       /* para que se adapte hasta ese máximo */
  margin: 0 auto;    /* centrarla si sobra espacio en el grid */
}

.quick-access__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ─ Icono limpio ─ */
.quick-access__img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0;         /* sacamos el margen inferior original */
  background: transparent;  /* por si el PNG tuviera fondo */
  display: block;
}

/* ─ Texto con separación extra ─ */
.quick-access__name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.8rem;
  letter-spacing: 0.5px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .quick-access__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .quick-access__grid {
  grid-template-columns: 1fr;
  }
  .quick-access__title {
  font-size: 1.5rem;
}
}

/*NUESTRAS MARCAS*/
.brands-section {
  padding: 3.5rem 1rem 2.8rem 1rem;
  text-align: center;
  background: #ffffff;
}

.brands-section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2.2rem;
  letter-spacing: 0.5px;
}

.brands-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.1rem 1rem;
  max-width: 1180px;
  margin: 0 auto;
  justify-items: center;
  align-items: center;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  height: 120px;
}

.brand-item img {
  width: 140px;           /* Más grande */
  height: auto;
  max-height: 140px;      /* Mayor altura máxima */
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  transition: transform 0.18s;
  filter: grayscale(0.1) brightness(1.04);
}
.brand-item img:hover {
  transform: scale(1.06);
  filter: none;
}

@media (max-width: 1100px) {
  .brands-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.3rem 1rem;
  }
  .brand-item img {
    width: 200px;
    max-height: 120px;
  }
}
@media (max-width: 900px) {
  .brands-section__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 0.5rem;
  }
  .brand-item img {
    width: 130px;
    max-height: 55px;
  }
  .brand-item {
    min-height: 70px;
    height: 70px;
  }
}
@media (max-width: 600px) {
  .brands-section {
    padding-top: 1.5rem;
    padding-bottom: 1.2rem;
  }
  .brands-section__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .brands-section__grid {
    /* En móvil, 2 columnas para que no queden uno por fila */
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
  }
  .brand-item img {
    width: 150px;
    max-height: 100px;
  }
  .brand-item {
    min-height: 60px;
    height: 60px;
  }
}

/*INTRODUCCIÓN */
.intro-section {
  background-color: var(--gris-claro);
  width: 100%;
  padding: 3rem 1rem;
}

.intro-section__contenedor {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.intro-section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.intro-section__text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary);
  margin: 0;
}

@media (max-width: 576px) {
  .intro-section {
    padding: 2rem 1rem;
  }
  .intro-section__title {
    font-size: 1.5rem;
  }
  .intro-section__text {
    font-size: 1rem;
  }
}

/*CARRUSEL CONTINUO DE MARCAS */
.carousel-continuous {
  position: relative;
  width: 100%;
  background-color: var(--gris-claro);
  padding: 1.5rem 0;
  overflow: hidden;
}

.carousel-continuous__viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-continuous__track {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease-in-out;
}

.carousel-continuous__item {
  flex: 0 0 200px;
  height: 200px;
  margin-right: 1rem;
  background-color: #ffffff;
  border: 1px solid var(--gris-medio);
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-continuous__item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 0.6rem;
}

/* Elimina margin-right en el último para evitar espacio extra */
.carousel-continuous__track .carousel-continuous__item:last-child {
  margin-right: 0;
}

/* Flechas laterales */
.carousel-continuous__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.1);
  transition: background-color 0.2s;
  z-index: 5;
}

.carousel-continuous__arrow:hover {
  background-color: rgba(255,255,255,1);
}

.carousel-continuous__arrow--prev {
  left: 1rem;
}

.carousel-continuous__arrow--next {
  right: 1rem;
}

/* Mostrar flechas en pantallas ≥ 768px */
@media (min-width: 768px) {
  .carousel-continuous__arrow {
    display: block;
  }
}

/* En pantallas < 768px, mostrar 2 logos por fila */
@media (max-width: 767px) {
  .carousel-continuous__item {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
  }
  .carousel-continuous__item img {
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
  }
  .carousel-continuous__arrow--prev {
    left: 0.5rem;
  }
  .carousel-continuous__arrow--next {
    right: 0.5rem;
  }
}

/*REPUESTOS MÁS VENDIDOS*/
.featured-products {
  background-color: var(--gris-claro);
  padding: 2rem 1rem;
}

.featured-products__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.featured-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 120rem;
  margin: 0 auto;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--gris-medio);
  border-radius: 0.8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 32rem;
}

.product-card__image {
  background-color: #ffffff;
  border: none;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.6rem;
}

.product-card__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
  box-orient: vertical;
}

.product-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: 0.6rem;
  background-color: transparent;
  color: var(--primary);
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .featured-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card {
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .featured-products__grid {
    grid-template-columns: 1fr;
  }
  .featured-products__title {
    font-size: 1.5rem;
  }
}


/* INFO FEATURES (3 íconos con texto)*/
.info-features {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  background-color: #ffffff;
  padding: 1.5rem 1rem 1.2rem 1rem;
  flex-wrap: wrap;
  max-width: 950px;
  margin: 0 auto;
}

.feature-item {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item__icon {
  width: 100px;
  height: 100px;
  background-color: #ffffff;
  border: 1px solid var(--gris-medio);
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-item__icon img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.feature-item__text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.2;
  color: #4b4b4b;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .feature-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .feature-item {
    flex: 0 0 45%;
    max-width: 45%;
    margin-bottom: 2rem;
  }
  .info-features {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .feature-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  .feature-item__icon {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 400px) {
  .feature-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/*BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.75rem;
  height: 3.75rem;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .whatsapp-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}

/*FOOTER*/
.site-footer {
  background-color: #F2F2F2;
  color: #22232E;
  padding: 3rem 1rem;
}

.site-footer__content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 120rem;
  margin: 0 auto;
  gap: 8rem;
  flex-wrap: wrap;
}

.footer-column {
  flex: 0 0 auto;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #222222;
  text-transform: uppercase;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #555555;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #000000;
}

.site-footer__copy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #666666;
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .footer-column {
    flex: 0 0 45%;
    max-width: 45%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-column {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  @media (max-width: 768px) {
    .site-footer__content {
      gap: 2rem;
    }
  }
  .site-footer {
    padding: 2rem 1rem;
  }
  .site-footer__copy {
    margin-top: 1.5rem;
  }
}

/*Nosotros*/
.nosotros {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem 2rem 1rem;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background: #fff;
}
.nosotros__intro {
  margin-bottom: 2.2rem;
  text-align: center;
}
.nosotros__intro h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
}
.nosotros__intro p {
  font-size: 1rem;
  color: #353535;
  margin-bottom: 0;
}
.nosotros__valores-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem 2rem 1.2rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.04);
}
.nosotros__valores-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
.nosotros__valores-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nosotros__valores-list li {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.nosotros__valores-list li span {
  font-weight: 700;
  color: #222;
}
.nosotros__mision-vision {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
}
.nosotros__mv-card {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 2rem 1.5rem 1.4rem 1.5rem;
  flex: 1 1 0;
  min-width: 250px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nosotros__mv-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.6rem 0 0.8rem 0;
  color: #1a1a1a;
}
.nosotros__mv-card p {
  font-size: 1.05rem;
  color: #222;
  text-align: center;
}
.mv-icon {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nosotros__mision-vision {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nosotros__mv-card {
    min-width: 0;
    padding: 1.5rem 1rem;
  }
  .nosotros__valores-card {
    padding: 1.3rem 1rem 1rem 1rem;
  }
}

/* CONTACTO MEJORADO */
.contacto-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem 2rem 1rem;
  max-width: 1050px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
}
.contacto-info {
  flex: 1 1 320px;
  max-width: 380px;
  padding: 1.5rem 1rem;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.03);
}
.contacto-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.contacto-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  color: #222;
  letter-spacing: 0.5px;
}
.contacto-info p {
  margin: 0 0 0.7rem 0;
  font-size: 1rem;
  color: #222;
}
.contacto-info strong {
  color: #000;
  font-weight: 700;
}
.contacto-info em {
  color: #555;
  font-size: 0.95rem;
}
.contacto-info a {
  color: #000;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.18s;
}
.contacto-info a:hover {
  color: #444;
}
.contacto-info i {
  font-size: 1.06em;
  vertical-align: middle;
  margin-right: 0.18em;
  color: #000;
}
.contacto-mapa {
  flex: 1 1 370px;
  min-width: 300px;
  padding: 0.5rem 0.2rem 0.5rem 0.2rem;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacto-mapa iframe {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  border: none;
}

@media (max-width: 900px) {
  .contacto-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 0.5rem;
    box-shadow: none;
    border-radius: 0;
  }
  .contacto-info, .contacto-mapa {
    max-width: 100%;
    box-shadow: none;
    border-radius: 8px;
    margin: 0 auto 1.2rem auto;
  }
  .contacto-info {
    padding: 1.2rem 0.8rem;
  }
  .contacto-mapa {
    padding: 0.2rem;
  }
}

/* Sesión "CÓMO COMPRAR" */
.how-to-buy-header {
  text-align: center;
  margin: 0 auto 2.5rem;
  padding-top: 2.5rem;
  max-width: 1100px;
}
.how-to-buy-title {
  font-size: 2rem;
  font-family: var(--font-heading, 'Montserrat', Arial, sans-serif);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  color: #18191a;
  margin-bottom: 0.6rem;
}
.how-to-buy-header .how-to-buy-subtitle {
  font-size: 1rem;
  color: #4b4b4b;
}

/* Contenedor principal */
.how-to-buy-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* Pasos */
.how-to-buy-steps {
  max-width: 800px;
  width: 100%;
  margin-left: 0;
  margin-right: auto;  /* <-- Alinea a la izquierda */
  text-align: left;
}

.how-to-buy-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  max-width: 100%;
}

.how-to-buy-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 2.2rem;
  text-align: left;
  justify-content: flex-start;
}

.step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid #B22222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(178,34,34,0.08);
  margin-right: 0.7rem;
  background: #fff;
}
.step-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.step-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  width: auto;
}

/* Forzar textos a la izquierda en desktop */
.how-to-buy-list li strong,
.how-to-buy-list li p,
.step-text {
  text-align: left !important;
  align-items: flex-start !important;
}

.how-to-buy-list li strong {
  color: #B22222;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: block;
  text-align: left;
}
.how-to-buy-list li p {
  color: #222;
  font-size: 1.07rem;
  margin: 0;
  text-align: left;
}
.how-to-buy-mini-label {
  font-size: 1rem;    /* o prueba 0.9em, 0.85em, etc. */
  font-weight: 500;
  color: #18191a;       /* mismo color que el texto normal */
  margin-right: 2px;
  vertical-align: baseline;
}
/* Imagen de entrega alineada a la derecha */
.how-to-buy-image {
  flex: 0 0 350px;
  max-width: 350px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  min-height: 0;
}
.how-to-buy-image img {
  width: 100%;
  height: auto;
  max-height: 315px;
  object-fit: cover;
  /* sin borde, sin sombra */
}

/* Términos y condiciones */
.how-to-buy-terms {
  margin-top: 1rem;
  text-align: left;
}
.how-to-buy-terms a {
  color: #B22222;
  text-decoration: underline;
  font-size: 1rem;
}

/*RESPONSIVE*/
/* Desktop hasta tablet */
@media (max-width: 1100px) {
  .how-to-buy-container {
    max-width: 98vw;
  }
  .how-to-buy-header {
    max-width: 98vw;
  }
}

/* Tablet y mobile: imagen abajo */
@media (max-width: 900px) {
  .how-to-buy-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .how-to-buy-steps,
  .how-to-buy-image {
    max-width: 98vw;
    text-align: center;
    justify-content: center;
  }
  .how-to-buy-image {
    margin-top: 1.5rem;
  }
}

/* Mobile: pasos verticales y centrados */
@media (max-width: 700px) {
  .how-to-buy-title{
    font-size: 1.5rem;
  }
  .how-to-buy-subtitle{
    font-size: 0.5rem;
  }
  .how-to-buy-list li {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 96vw !important; /* Evita el desborde */
    box-sizing: border-box;
  }
  .how-to-buy-list li > div,
  .step-text {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 95vw !important;  /* Limita el ancho al viewport */
    word-break: break-word;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .how-to-buy-list li p,
  .how-to-buy-list li strong {
    text-align: center !important;
    width: 100%;
    max-width: 90vw !important;
    margin: 0 auto;
    word-break: break-word;
  }
  .how-to-buy-mini-label{
    text-align: center;
  }
}

/* Transicion Camion*/
#page-transition-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  justify-content: center;
  align-items: center;
}
#page-transition-overlay.active {
  display: flex;
}
#page-transition-truck {
  position: relative;
  opacity: 1;
  animation: truck-slide-in 0.7s cubic-bezier(.6,0,.4,1);
}
@keyframes truck-slide-in {
  0%   { transform: translateX(-200px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
#page-transition-truck svg { width: 120px; height: 120px; display: block; }










