/**
 * Layout - Header, secciones, footer
 */

/* ========== HEADER PRINCIPAL ========== */
.header-main {
  background: var(--color-dark-alt);
  padding: clamp(0.5rem, 1.28vw, 0.65rem) clamp(0.75rem, 2.5vw, 1.25rem);
  padding-right: clamp(1.75rem, 3.75vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Reservar espacio para la barra fija (mínimo para evitar línea blanca) */
body {
  padding-top: clamp(2.5rem, 6vw, 3rem);
}

/* Contenedor del contenido principal: crece para empujar el footer al fondo (sticky footer) */
.site-content {
  flex: 1 0 auto;
}

/* Contenedor logo + buscador */
.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  flex-shrink: 0;
}

.header-main .logo {
  height: clamp(36px, 5.5vw, 52px);
  width: auto;
  flex-shrink: 0;
  display: block;
  margin-left: 0.5rem;
}

.header-main .logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Botón hamburger (oculto en desktop) */
.header-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}
.header-menu-btn__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Buscador en header */
.header-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 520px;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.32rem 0.65rem;
  width: 100%;
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: var(--fs-text-2);
  min-width: 0;
}

.header-search input::placeholder {
  color: var(--color-gray);
}

.header-search button {
  color: var(--color-white);
  padding: 0.2rem;
  flex-shrink: 0;
}

.header-search svg {
  width: 13px;
  height: 13px;
}

/* Dropdown resultados búsqueda */
.header-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.header-search-results[hidden] {
  display: none !important;
}

.header-search-results__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--color-dark);
  font-family: var(--font-archivo);
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
  cursor: pointer;
  transition: background 0.15s;
}

.header-search-results__item:hover,
.header-search-results__item:focus {
  background: #f3f4f6;
  color: var(--color-dark);
}

.header-search-results__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.header-search-results__item:hover .header-search-results__icon,
.header-search-results__item:focus .header-search-results__icon {
  color: #6b7280;
}

.header-search-results__text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.header-search-results__item strong {
  font-weight: 700;
}

.header-search-results__code {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 0.15rem;
}

.header-search-results--overlay {
  background: rgba(26, 26, 26, 0.98);
  margin-top: 0.5rem;
  border-radius: 8px;
}

.header-search-results--overlay .header-search-results__item {
  color: #fff;
}

.header-search-results--overlay .header-search-results__item:hover,
.header-search-results--overlay .header-search-results__item:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.header-search-results--overlay .header-search-results__icon {
  color: rgba(255, 255, 255, 0.6);
}

.header-search-results--overlay .header-search-results__item:hover .header-search-results__icon,
.header-search-results--overlay .header-search-results__item:focus .header-search-results__icon {
  color: rgba(255, 255, 255, 0.9);
}

.header-search-results--overlay .header-search-results__code {
  color: rgba(255, 255, 255, 0.7);
}

.nav-overlay__search-wrap {
  position: relative;
  margin-bottom: 2rem;
}

/* Navegación: distribución prolija, ítem activo moderno (todo en una línea) */
.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: clamp(0.35rem, 1vw, 0.65rem);
  margin-left: clamp(1rem, 2.5vw, 1.5rem);
}

.nav-main a {
  color: var(--color-white);
  font-family: var(--font-archivo);
  font-weight: 400;
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-main a:hover {
  background: rgba(230, 45, 43, 0.85);
  color: var(--color-white);
}

.nav-main a.active {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(230, 45, 43, 0.35);
  font-weight: 500;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark) center/cover no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
}

/* Hero con imagen completa: anclada a la izquierda para que se vea bien el texto "CALIDAD / PARA TU MOTOR" */
.hero.hero--image {
  width: 100%;
  aspect-ratio: 100/63;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left 20%;
  background-color: var(--color-dark);
  z-index: 0;
}

.hero.hero--image::before {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero__title {
  font-family: var(--font-archivo);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.25em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-family: var(--font-archivo);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ========== SECCIÓN CARACTERÍSTICAS (4 tarjetas 400×300 según diseño) ========== */
.section-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
  max-width: min(1168px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(-480px, -52vw, -680px);
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .section-features {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}

@media (max-width: 600px) {
  .section-features {
    grid-template-columns: 1fr;
  }
}

/* ========== SECCIÓN NOVEDADES ========== */
.section-novedades {
  margin-top: clamp(-100px, -12vw, -180px);
  position: relative;
  z-index: 1;
  padding-top: var(--space-section-title-top);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-bottom: var(--space-novedades-bottom);
}

.section-novedades .section-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: var(--space-section-title-bottom);
}

.section-novedades .section-title.titulo-with-line {
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 243px);
  justify-content: center;
  gap: var(--space-products-grid-gap);
  max-width: 100%;
  margin: 0 auto;
}

.products-grid .card-product {
  margin: 0 auto;
}

/* Novedades: solo 4 visibles; si hay más, scroll horizontal */
.section-novedades .products-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  gap: var(--space-products-grid-gap);
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  max-width: min(100%, calc(4 * 243px + 3 * var(--space-products-grid-gap)));
  margin-left: auto;
  margin-right: auto;
}

.section-novedades .products-grid .card-product {
  flex: 0 0 auto;
  width: 243px;
  min-width: 243px;
  scroll-snap-align: start;
  margin: 0;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 243px);
  }
}

@media (max-width: 580px) {
  .products-grid {
    grid-template-columns: minmax(0, 243px);
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .products-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.section-novedades .link-wrap {
  text-align: center;
  margin-top: var(--space-ver-to-link);
}

/* ========== CARRUSEL MARCAS (carrusel 50% más ancho que viewport, franja gris) ========== */
.section-carousel {
  padding: var(--space-carousel-top) 0 var(--space-carousel-bottom);
  overflow: hidden;
  width: 150vw;
  position: relative;
  left: 50%;
  margin-left: -75vw;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  min-height: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  background: var(--color-gray-carousel);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  animation: carousel-scroll 50s linear infinite;
  width: max-content;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  flex-shrink: 0;
  min-width: clamp(100px, 16vw, 200px);
  height: 56px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-carousel);
}

.carousel-item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  mix-blend-mode: multiply;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SOBRE NOSOTROS ========== */
.section-sobre {
  padding: var(--space-sobre-top) clamp(1rem, 4vw, 2rem) var(--space-sobre-bottom);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section-sobre .section-title {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  display: inline-block;
}

.section-sobre .section-title.titulo-with-line::after {
  max-width: 100%;
}

.section-sobre .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .section-sobre .content-grid {
    grid-template-columns: 1fr;
  }
}

.section-sobre .text-block p {
  margin: 0 0 1rem;
  font-size: var(--fs-text-2);
  line-height: 1.5;
}

.section-sobre .text-block a {
  color: var(--color-red);
  text-decoration: underline;
}

.section-sobre .image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Collage “Sobre” – según modelo: dos personas arriba izq, piezas centro-derecha, grupo abajo izq */
.section-sobre .sobre-collage {
  position: relative;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
}

.section-sobre .sobre-collage__img {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 48%;
  max-height: 175px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--color-white);
}

/* Arriba izquierda – dos personas */
.section-sobre .sobre-collage__img--1 {
  top: 0;
  left: 0;
  z-index: 3;
  max-height: 151px;
  transform: rotate(2deg);
}

/* Centro-derecha – piezas/motor */
.section-sobre .sobre-collage__img--2 {
  top: 55px;
  left: 42%;
  right: auto;
  bottom: auto;
  z-index: 2;
  max-height: 186px;
  max-width: 52%;
  transform: rotate(-2deg);
}

/* Abajo izquierda – grupo */
.section-sobre .sobre-collage__img--3 {
  bottom: 25px;
  left: 0;
  top: auto;
  right: auto;
  z-index: 1;
  max-height: 178px;
  transform: rotate(1deg);
}

@media (max-width: 900px) {
  .section-sobre .sobre-collage {
    min-height: 300px;
  }
  .section-sobre .sobre-collage__img {
    max-width: 58%;
    max-height: 150px;
  }
  .section-sobre .sobre-collage__img--3 {
    max-height: 160px;
  }
}

/* ========== BANNER CANAL DE CLIENTES (Recurso 1.png + botón) ========== */
.section-canal {
  background: var(--color-dark-alt);
  padding: 0 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-canal .canal-banner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 1rem;
}

.section-canal .canal-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section-canal .btn-canal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -2.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-archivo);
  font-weight: 500;
  font-size: var(--fs-text-1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.section-canal .btn-canal:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ========== PRODUCTOS DE INTERÉS ========== */
.section-productos-interes {
  padding: clamp(2.24rem, 6.4vw, 5.44rem) clamp(1rem, 4vw, 2rem) clamp(0.84rem, 2.52vw, 2.31rem);
}

.section-productos-interes .section-title {
  margin-bottom: var(--space-productos-gap);
  font-size: clamp(2rem, 4.15vw, 3.05rem);
}

.section-productos-interes .section-title.titulo-with-line {
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Mismo layout que Novedades: 4 visibles, scroll horizontal si hay más */
.section-productos-interes .products-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  gap: var(--space-products-grid-gap);
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-productos-gap);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  max-width: min(100%, calc(4 * 243px + 3 * var(--space-products-grid-gap)));
  margin-left: auto;
  margin-right: auto;
}

.section-productos-interes .products-grid .card-product {
  flex: 0 0 auto;
  width: 243px;
  min-width: 243px;
  scroll-snap-align: start;
  margin: 0;
}

.section-productos-interes .link-wrap {
  text-align: center;
}

/* ========== DATOS DE CONTACTO + FORMULARIO ========== */
.section-contact {
  padding: clamp(0.84rem, 2.52vw, 2.31rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* Título alineado a la izquierda + línea roja y línea gris debajo */
.contact-title-wrap {
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gray-light);
  margin-bottom: 2.5rem;
}

.section-contact .section-title {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
}

.section-contact .section-title.titulo-with-line {
  display: inline-block;
  padding-bottom: 0.25em;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 100%;
}

/* Formulario arriba, ancho contenido; luego oficinas en 2 columnas */
.contact-form {
  order: 1;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1vw, 0.85rem);
  align-items: start;
  order: 2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 320px) {
  .contact-layout {
    gap: 1.5rem;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Bloque por oficina: compacto, tres columnas, Argentina tercera, centrado */
.contact-office {
  margin-bottom: 0;
  min-width: 0;
  text-align: center;
}

.contact-office__title {
  font-family: var(--font-archivo);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(0.6rem, 0.9vw, 0.8rem);
  color: var(--color-dark);
  margin: 0 0 0.2rem;
  line-height: 1.15;
  word-break: break-word;
}

.contact-office p,
.contact-office a {
  font-size: clamp(0.55rem, 0.75vw, 0.7rem);
  margin: 0 0 0.1rem;
  color: var(--color-dark);
  line-height: 1.25;
  word-break: break-word;
}

.contact-office__socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.contact-social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-social-icon:hover {
  color: var(--color-red);
  transform: scale(1.05);
}

.contact-form {
  max-width: var(--form-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.contact-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-width: var(--form-max-width);
  margin-left: auto;
  margin-right: auto;
}

.contact-messages__item {
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-messages__item--success {
  background: #dcfce7;
  color: #166534;
}

.contact-messages__item--error {
  background: #fee2e2;
  color: #991b1b;
}

.contact-messages__item--info {
  background: #e0f2fe;
  color: #0369a1;
}

.section-contact .form-error {
  display: block;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

/* ========== FOOTER (solapado sobre la sección anterior) ========== */
/* Una fila: logo izquierda, copyright centro, redes derecha */
.footer {
  background: var(--color-dark-alt);
  color: var(--color-white);
  padding: clamp(0.35rem, 0.9vw, 0.5rem) clamp(2rem, 8vw, 3rem);
  margin-top: 3rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__logo {
  height: clamp(32px, 5vw, 44px);
  width: auto;
  flex-shrink: 0;
  display: block;
  justify-self: start;
}

.footer__copyright {
  justify-self: center;
}

.footer__socials {
  justify-self: end;
}

.footer__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer__nav {
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
}

.footer__nav-col {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.footer__nav-col a {
  color: var(--color-white);
  font-family: var(--font-archivo);
  font-weight: 400;
  font-size: var(--fs-text-2);
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  padding: 0.2em 0;
  transition: color 0.2s;
}

.footer__nav-col a:hover {
  color: var(--color-red);
}

.footer__socials {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.footer__socials a {
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.footer__socials a:hover {
  color: var(--color-red);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
}

.footer__copyright {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  margin: 0;
  opacity: 0.9;
}

/* ========== CONTENEDOR FEATURES + WHATSAPP ========== */
.features-and-whatsapp {
  position: relative;
}

/* ========== BOTONES WHATSAPP FIJOS ========== */
/* Fijos al borde derecho del viewport para que no se desplacen con el zoom */
.whatsapp-fixed {
  position: fixed;
  right: var(--btn-whatsapp-margin);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}

.whatsapp-fixed .btn-whatsapp {
  margin: 0;
}

/* En móvil: botones WhatsApp abajo al centro, sin superponer contenido ni cortarse */
@media (max-width: 768px) {
  .site-content {
    padding-bottom: 4.5rem;
  }
  .whatsapp-fixed {
    top: auto;
    right: auto;
    left: 50%;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .whatsapp-fixed .btn-whatsapp {
    width: auto;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.65rem;
  }
  .whatsapp-fixed .btn-whatsapp .wa-icon {
    width: 18px;
    height: 18px;
  }
  .whatsapp-fixed .btn-whatsapp .flag-icon {
    width: 14px;
    height: 11px;
  }
  .whatsapp-fixed .btn-whatsapp-label {
    font-size: 0.6rem;
  }
  .features-and-whatsapp {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
    max-width: 100%;
  }
  .features-and-whatsapp .section-features {
    flex: 1;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .features-and-whatsapp .whatsapp-fixed {
    position: static !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex-shrink: 0;
  }
}

/* ========== CONTENEDOR GENERAL ========== */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ========== OVERLAY MENÚ MÓVIL (formato celular) ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-dark-alt);
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 4vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}
.nav-overlay__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.nav-overlay__search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 2rem;
  gap: 0.5rem;
}
.nav-overlay__search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 1rem;
}
.nav-overlay__search input::placeholder {
  color: var(--color-gray);
}
.nav-overlay__search svg {
  flex-shrink: 0;
  color: var(--color-white);
}
.nav-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.nav-overlay__nav a {
  font-family: var(--font-archivo);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.nav-overlay__nav a:hover,
.nav-overlay__nav a.active {
  background: var(--color-red);
  color: var(--color-white);
}

/* ========== RESPONSIVE: móvil y tablet ========== */
@media (max-width: 1100px) {
  .nav-main a {
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    padding: 0.25rem 0.35rem;
  }
}

@media (max-width: 900px) {
  .header-main .header-search {
    max-width: 128px;
  }
}

@media (max-width: 768px) {
  .header-main .nav-main a {
    font-size: clamp(0.55rem, 1.6vw, 0.7rem);
    padding: 0.28rem 0.35rem;
  }
  .section-contact .contact-layout {
    gap: 2rem;
  }
  .contact-form {
    padding: 1.25rem;
  }
}

/* Formato celular: menú hamburger, layout 2x2 features, productos en columna */
@media (max-width: 768px) {
  body {
    padding-top: 3.25rem;
  }
  .header-main {
    padding: 0.5rem 1rem;
    flex-wrap: nowrap;
  }
  .header-brand {
    flex: 0 1 auto;
  }
  .header-search--desktop {
    display: none !important;
  }
  .header-menu-btn {
    display: flex;
    margin-left: auto;
  }
  .nav-main {
    display: none;
  }
  /* Portada/hero más visible en móvil: más altura y tarjetas más abajo / más chicas */
  .hero.hero--image {
    min-height: min(58vh, 380px);
    aspect-ratio: auto;
    height: auto;
  }
  .section-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    margin-top: clamp(-70px, -9vw, -100px);
    max-width: 100%;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }
  .card-feature {
    min-width: 0;
    max-width: 100%;
    padding: clamp(0.5rem, 2vw, 0.75rem);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
  }
  .card-feature__text {
    font-size: clamp(0.7rem, 2.2vw, 0.9rem);
    line-height: 1.25;
  }
  .card-feature__icon {
    width: clamp(28px, 6vw, 36px);
    height: clamp(28px, 6vw, 36px);
    margin-bottom: clamp(0.2rem, 0.5vw, 0.35rem);
  }
  .card-feature__icon svg {
    width: 100%;
    height: 100%;
  }
  .section-novedades {
    margin-top: clamp(1.5rem, 5vw, 2.5rem);
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-left: clamp(0.75rem, 3vw, 1rem);
    padding-right: clamp(0.75rem, 3vw, 1rem);
    background: var(--color-gray-light);
  }
  .section-novedades .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  /* Novedades en móvil: fila horizontal con scroll (como el modelo) */
  .section-novedades .products-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: clamp(0.75rem, 3vw, 1.25rem);
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .section-novedades .products-grid .card-product {
    flex: 0 0 auto;
    width: min(220px, 70vw);
    min-width: 200px;
    scroll-snap-align: start;
  }
  .section-novedades .link-wrap {
    margin-top: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
  }
  .section-novedades .link-ver-mas {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
  }
  .section-novedades .link-ver-mas--btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--color-dark);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
  }
  .section-novedades .link-ver-mas--btn:hover {
    background: var(--color-dark-alt);
    color: var(--color-white);
  }
  .section-productos-interes {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--color-gray-light);
  }
  .section-productos-interes .section-title {
    text-align: center;
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
  }
  .section-productos-interes .section-title.titulo-with-line {
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  /* Productos de interés en móvil: mismo que Novedades, fila con scroll horizontal */
  .section-productos-interes .products-grid {
    gap: clamp(0.75rem, 3vw, 1.25rem);
    max-width: 100%;
  }
  .section-productos-interes .products-grid .card-product {
    width: min(220px, 70vw);
    min-width: 200px;
  }
  .section-productos-interes .card-product {
    border: 2px solid var(--color-red);
    box-sizing: border-box;
  }
  .section-productos-interes .card-product__body {
    padding: clamp(0.75rem, 3vw, 1.25rem);
  }
  .section-productos-interes .card-product__action {
    margin-top: clamp(0.75rem, 2vw, 1rem);
  }
  .section-productos-interes .link-wrap {
    margin-top: clamp(1.25rem, 4vw, 2rem);
    text-align: center;
  }
  .section-productos-interes .link-ver-mas--btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--color-dark);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
  }
  .section-productos-interes .link-ver-mas--btn:hover {
    background: var(--color-dark-alt);
    color: var(--color-white);
  }
  .section-contact {
    padding-left: clamp(0.75rem, 3vw, 1rem);
    padding-right: clamp(0.75rem, 3vw, 1rem);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info {
    gap: 1rem;
  }
  .contact-form {
    padding: 1rem;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .footer {
    padding: 0.4rem clamp(1rem, 5vw, 2rem);
    gap: 0.5rem;
  }
  .footer__logo {
    height: clamp(28px, 6vw, 36px);
  }
  .footer__copyright {
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  }
  .whatsapp-fixed {
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .header-main {
    flex-wrap: wrap;
  }
  .section-features {
    margin-top: clamp(-180px, -24vw, -260px);
  }
  .section-sobre .content-grid {
    grid-template-columns: 1fr;
  }
  .section-sobre .sobre-collage {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer {
    grid-template-columns: 1fr auto 1fr;
    padding: 0.4rem 1.25rem;
  }
}

/* ========== MODAL DE CONFIRMACIÓN (estilo coherente con el sitio) ========== */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.confirm-modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.confirm-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  padding: 1.5rem 1.75rem;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.confirm-modal-overlay[aria-hidden="false"] .confirm-modal {
  transform: scale(1);
}
.confirm-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-archivo);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark, #1a1a1a);
}
.confirm-modal__text {
  margin: 0 0 1.25rem;
  font-family: var(--font-archivo);
  font-size: 1rem;
  line-height: 1.45;
  color: #374151;
}
.confirm-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.confirm-modal__btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-archivo);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.confirm-modal__btn--cancel {
  background: #f3f4f6;
  color: #374151;
}
.confirm-modal__btn--cancel:hover {
  background: #e5e7eb;
}
.confirm-modal__btn--accept {
  background: var(--color-red, #e62d2b);
  color: #fff;
}
.confirm-modal__btn--accept:hover {
  background: #c52624;
}
