/*========== COLORES ==========*/
:root {
  --header-height: 2.5rem;

  --first-color: hsl(29, 96%, 49%);
  --title-color: hsl(252, 4%, 23%);
  --white-color: hsl(0, 0%, 100%);
  --grey-color: hsl(225, 12%, 24%);
  --first-gradient: linear-gradient(
    90deg,
    hsl(34, 84%, 64%),
    hsl(27, 98%, 64%)
  );
  --gray-border: hsl(255, 6%, 90%);
  --container-color: hsl(0, 0%, 100%);

  /*========== Fonts ==========*/
  --normal-font-size: 0.9rem;

  /*========== Spacing========= */
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;

  /*========= Container system ======== */
  --container-padding: 10px;
  --container-max-width: 1200px;
  --gap-sm: 20px;
  --gap-lg: 30px;

  /*============ Card system============ */
  --card-shadow: 5px 5px 0px 0px hsl(240 25% 50% / 0.2);
  --card-radius: 8px;
  --card-padding: 10px;
}

/*========== Sistema de Tipografia========= */

.title-secondary {
  font-family: "League Gothic", sans-serif;
  color: var(--grey-color);
  font-size: 1.7em;
  letter-spacing: 0.5px;
  margin: 0.5rem 0;
  text-align: center;
  font-weight: 800;
}

.text-body {
  font-family: "Montserrat";
  color: hsl(240, 2%, 37%);
  font-size: 0.9em;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.text-body--center {
  text-align: center;
}

/*==============ACTIVE LINK===============*/
.active-link {
  color: var(--grey-color);
}

/*=============BASE=============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*CSS RESUSABLE*/

.section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: var(--spacing-sm) auto;
  padding: 0 var(--container-padding);
}

.card-base {
  background-color: var(--white-color);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  position: static;
  width: 100%;
  height: auto;
  font-size: 0.8rem;
  overflow: hidden; /* ← Agrega esto */
}

.img-container-base {
  background-size: cover;
  background-position: center center;
  border-radius: var(--card-radius);
  margin-bottom: var(--spacing-sm);
  width: 100%;
  height: 150px;
}

.container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding: 0 var(--container-padding);
}
section[id] {
  scroll-margin-top: 60px;
}

/*=============HEADER=================*/
.header {
  position: fixed;
  width: 100%;
  top: 0px;
  left: 0%;
  background-color: var(--first-color);
  z-index: 100;
  transition: background-color 0.4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo1 {
  width: 80px;
  margin: 6px;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
  transition: color 0.4s;
}

/* A partir de 1024px ya aparecen las letras */
@media screen and (max-width: 1199px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgb(255, 123, 0);
    width: 50%;
    height: 50%; /*PARA EL TAMAÑO DEL NAV*/
    padding: 2.3rem 1rem;
    border-left: 2px solid var(--first-color);
    transition: right 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem; /*ESPACIADO DEL NAV*/
}
.nav__link {
  font-family: "Montserrat";
  font-weight: 600;
  color: var(--white-color);
  transition: color 0.4s;
}

.nav__link:hover {
  color: #000;
}

.nav__close {
  position: absolute;
  top: 0.5rem;
  right: 0.2rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.bg-header {
  background-color: var(--white-color);
}

.bg-header .nav__toggle {
  color: var(--title-color);
}

/*=============INICIO=================*/
#section-inicio {
  display: flex;
  align-items: flex-start;
  justify-content: end;
  text-align: start;
  flex-direction: column;
  background-image: url(/images/banners/Banner2_max_acerosMOVIL.jpg);
  background-repeat: no-repeat;
  background-size: cover; /*OCUPE TODO EL ESPACIO DISPONIBLE */
  background-position: center center; /*LA IMAGEN SIEMPRE QUEDA CENTRADA */
  height: 427px;

  position: relative; /*YT*/
}

.home__title {
  color: var(--first-color);
  font-family: "League Gothic", sans-serif;
  font-size: 3em;
  letter-spacing: 1.7px;
  text-shadow: 3px 2px 5px #1b1a1a;
  margin-bottom: 0.1rem;
}
.home__description {
  font-family: "Montserrat";
  font-weight: 500;
  color: var(--white-color);
  font-size: 1em;
  letter-spacing: 1px;
  text-shadow: 2px 2px 9px #000000;
  margin-bottom: 15px;
}

.home__data {
  margin-bottom: 1em;
  margin-left: 15px;
}

/*=============NOSOTROS=================*/
.titulo_section {
  color: hsl(0deg 0% 33.22%);
  font-family: "League Gothic", sans-serif;
  font-size: 2.4em;
  text-align: center;
  justify-content: center;
  margin: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
#about .about__container {
  display: flex;
  flex-direction: row; /* mantiene la estructura horizontal */
  align-items: center; /* centra verticalmente los hijos */
  justify-content: center; /* opcional: centra horizontalmente */

  min-height: 47vh;
  background-color: var(--first-color);
  gap: 2rem;
}

.img-container {
  flex: 1; /* reserva espacio para la imagen */
  display: none; /* se mostrará con media query */
}

#about .text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 10px;
  padding: 23px;
}
#about h3 {
  font-family: "League Gothic", sans-serif;
  color: var(--white-color);
  font-size: 1.8em;
  font-weight: 500;
  margin-left: 15px;
  margin-bottom: 0.5em;
}

#about p {
  font-family: "Inter";
  color: var(--white-color);
  font-size: 1rem;
  margin-left: 15px;
}
#about .parrafo {
  margin-bottom: 46px;
}

/*=============== PRODUCTOS ===============*/

.productos {
  position: relative;
}

.productos__container {
  position: relative;
  row-gap: 3rem;
}

.productos__card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

#productos .productos__img,
#tuberias .productos__img {
  background-size: cover; /*OCUPE TODO EL ESPACIO DISPONIBLE */
  background-position: center center; /*LA IMAGEN SIEMPRE QUEDA CENTRADA */
  background: var(--grey-color);
}

.section__subtitle {
  color: var(--first-color);
  font-family: "League Gothic", sans-serif;
  font-size: 2rem;
  text-align: center;
  justify-content: center;
  margin-bottom: 0.4em;
  margin-top: 15px;
  font-weight: 800;
}

.section__subtitle-2 {
  color: var(--grey-color);
  font-family: "Montserrat";
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-align: center;
  justify-content: center;
  margin-bottom: 1em;
}

.productos__card {
  max-width: 235px;
  left: 27px;
  margin: 0 auto;
  height: 344px;
  background-color: var(--first-color);
  /* border: 2px solid var(--gray-border); */
  background-clip: content-box;
  transition: border-color 0.4s;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Contenedor principal del swiper */
.productos__swiper .swiper-wrapper {
  display: flex;
  align-items: stretch; /* Asegura que todas las slides tengan la misma altura */
}

.productos__swiper .swiper-slide {
  height: auto; /* Altura automática basada en el contenido */
  display: flex; /* Para que la tarjeta ocupe toda la altura */
}

.productos__card:hover {
  border-color: var(--first-color);
}

.productos__data {
  padding: 0.5rem;
  text-align: center;
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.productos__title {
  margin-block: 0.5rem;
  color: var(--white-color);
  font-family: "Montserrat";
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
  text-align: center;
}

#productos p,
#tuberias p {
  font-size: 0.7em;
  color: var(--gray-border);
  font-family: "Montserrat";
  letter-spacing: 0.1rem;
  text-align: center;
  justify-content: center;
  font-weight: 600;
}

/* Swiper class */
#productos .productos__swiper {
  margin-inline: initial;
  padding-left: 8px;
}

#productos .swiper-button-prev::after,
#productos .swiper-button-next::after {
  content: "";
}

.swiper-button-prev,
.swiper-button-next,
.swiper-button-prev-1,
.swiper-button-next-1 {
  top: initial;
  bottom: 0;
  width: 46px;
  height: 46px;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, 0.1);
  border-radius: 50%;
  font-size: 2.2rem;
  color: transparent;
}

.swiper-button-prev {
  left: calc(50% - 3rem);
}

.swiper-button-next {
  right: calc(50% - 3rem);
}

/* Swiper class2 */
#tuberias .productos__swiper2 {
  margin-inline: initial;
  padding-bottom: 0;
  padding-left: 8px;
}

#tuberias .swiper-button-prev2::after,
#tuberias .swiper-button-next2::after {
  content: "";
}
/*tamaño de los botones*/
.swiper-button-prev2,
.swiper-button-next2,
.swiper-button-prev-2,
.swiper-button-next-2 {
  top: initial;
  bottom: 0;
  width: 40px;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, 0.1);
  border-radius: 50%;
  font-size: 2.2rem;
  color: transparent;
  height: 40px;
}

#tuberias .swiper-button-prev2 {
  left: calc(50% - 3rem);
}

#tuberias .swiper-button-next2 {
  right: calc(50% - 3rem);
}

.swiper-button-prev .fa-angles-left {
  margin-left: 8px;
  font-size: 23px;
}

.swiper-button-next .fa-angles-right {
  margin-left: 10px;
  font-size: 23px;
}

.swiper-slide {
  width: auto; /* Permite que Swiper controle el ancho */
  height: auto;
}

/*=============CATEGORIA=================*/

#categoria {
  display: flex;
  text-align: start;
  flex-direction: column;
  background-image: url(/images/banners/Banner_max_aceros.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  min-height: 420px;
  height: auto;
}

#categoria__containerf .title-secondary {
  font-size: 1.9em;
}

#categoria .card-base {
  width: 83%;
  height: auto;
  min-height: 350px;
  margin: 0 auto;
}
/* Asegura que el flex container ocupe el espacio necesario */
.category-main .flex-container--column {
  height: auto; /* ← Permite crecimiento */
  min-height: 350px; /* ← Misma altura mínima que el card */
}
.card-base {
  max-width: 400px;
  margin: 0 auto;
}

#categoria__content2 .card-base {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.img-container--categoria1 {
  background-image: url("/images/Imagen1_sola_max_aceros.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 180px; /* ← Altura fija para la imagen */
  width: 100%;
  flex-shrink: 0; /* ← Evita que se encoja */
}

/* El área de texto ocupará el espacio restante */
.category-main .card-text {
  flex-grow: 1; /* ← Ocupa el espacio disponible */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ← Distribuye el espacio */
}

.flex-container {
  display: flex;
  background-color: var(--white-color);
}
.flex-container--column {
  flex-direction: column;
}

.category-main .text-body {
  font-size: 1em;
  margin-right: 0em;
  margin-left: 0px;
  margin-top: 0;
}

.icono-lista li {
  background: url("https://maxaceros.com/images/Bineta_max_aceros.png")
    no-repeat left top;
  background-size: 20px 20px;
  padding-left: 31px;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

#section-container .icono-lista li {
  margin-bottom: 0.4rem;
}

/*------SEGUNDA PARTE DE TARJETAS------*/
.categoria__content2 {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 15px 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card-text {
  width: 100%;
  padding: 0 5px;
  text-align: left;
}

.img-container--categoria2 {
  background-image: url("/images/Imagen2_sola_max_aceros.png");
}
.img-container--categoria3 {
  background-image: url("/images/Imagen3_sola_max_aceros.png");
}
.img-container--categoria4 {
  background-image: url("/images/Imagen4_sola_max_aceros.png");
}
.img-container--categoria5 {
  background-image: url("/images/Imagen5_sola_max_aceros.png");
}
.img-container--categoria6 {
  background-image: url("/images/Imagen6_sola_max_aceros.png");
}

.icono-lista2 li {
  background: url("https://maxaceros.com/images/Bineta_max_aceros.png")
    no-repeat left center;
  background-size: 15px 15px;
  padding-left: 25px;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  text-align: left;
}

.text-container2 {
  width: 100%;
  padding: 0 5px;
}

/*======PARTRE FINAL DE CATEGORIA========*/
/*MOVERLO MAS ABAJO */
#categoria__final {
  display: flex;
  text-align: start;
  flex-direction: column;
  background-image: url(/images/banners/Banner4_max_aceros.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  min-height: 420px;
  height: auto;
}

.card2 {
  position: relative;
  background-color: hsl(0, 0%, 100%);
  width: 85%;
  margin: 0 auto;
  height: auto;
  padding: 10px;
  font-size: 0.8rem;
  box-shadow: 5px 5px 0px 0px hsl(240 25% 50% / 0.2);
  border-radius: 8px;
}

.card__rightf {
  left: 0;
  width: 85%;
  height: 315px;
  margin: 0 auto;
}

.icono-listaf li {
  background: url("https://maxaceros.com/images/Bineta_max_aceros.png")
    no-repeat left center;
  background-size: 20px 20px;
  padding-left: 31px;
  margin-bottom: 0.8rem;
}

/*===================NUESTROS CLIENTES=================*/
.containerclientes {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  padding: 20px 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

#clientes .card-base {
  box-shadow: none;
}

.client-card {
  min-height: 120px;
}

.flex-container--center {
  align-items: center;
  justify-content: center;
}

/*------tarjeta------*/

.card__clientes2 {
  background-color: hsl(0, 0%, 100%);
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 15px;
}

.img-container--cliente1 {
  background-image: url("/images/Logo_marca1_max_aceros.png");
}

.img-container--cliente2 {
  background-image: url("/images/Logo_marca2_max_aceros.png");
}

.img-container--cliente3 {
  background-image: url("/images/Logo_marca3_max_aceros.png");
}
.img-container--cliente4 {
  background-image: url("/images/Logo_marca4_max_aceros.png");
}
.img-container-clientes5 {
  background-image: url("/images/Logo_marca5_max_aceros.png");
}

.img-container--cliente1,
.img-container--cliente2,
.img-container--cliente3,
.img-container--cliente4 {
  width: 100%;
  max-width: 280px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.img-container-clientes5 {
  width: 100%;
  max-width: 200px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

/*=============CONTACTO============================*/
#contacto {
  background-color: #e97509;
  padding: 15px 10px;
  max-width: 100%;
}
.contacto-title {
  color: var(--white-color);
  font-family: "Inter";
  font-size: 1.7em;
  letter-spacing: 1.5px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
  align-items: start;
  padding: 0 var(--container-padding);
}

.form-container {
  display: flex;
  flex-direction: column;
  order: 1;
  max-width: 100%;
  width: 94%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 1;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: none;
  font-size: 11px;
  background-color: white;
  font-family: "Montserrat";
  border-radius: 4px;
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-enviar {
  font-family: "Montserrat";
  background-color: #534a4a;
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px 20px;
  font-size: 14px;
  margin-top: 15px;
  letter-spacing: 1px;
  width: 100%;
  max-width: 200px;
  align-self: center;
}

.btn-enviar:hover {
  background-color: #232d36;
}

/* Lado del mapa */
.mapa-lado {
  display: flex;
  flex-direction: column;
  order: 2;
  max-width: 100%;
  width: 94%;
}

.mapa-container {
  background-color: #e8e8e8;
  border-radius: 8px;
  height: 250px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.mapa-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
}

/* Información de contacto */
.info-contacto {
  color: rgb(238, 231, 231);
  font-family: "Montserrat";
  font-size: 14px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 11px;
  line-height: 1.4;
}

.info-item .icon-placeholder {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 12px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.info-item .icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.g-recaptcha {
  transform: scale(0.85); /* Ajusta este valor según el tamaño deseado */
  transform-origin: 0 0; /* Asegura que el origen del escalado sea desde la esquina superior izquierda */
}

/*WhatsApp Btn*/
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  left: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 60px;
  text-align: center;
  padding-top: 13px;
  font-size: 30px;
  z-index: 100;
}

.float:hover {
  background-color: #fff;
  color: #25d366;
}

.my-float {
  margin-top: 16px;
}

@media (max-width: 768px) {
  /* Para pantallas pequeñas */
  .g-recaptcha {
    transform: scale(0.75); /* Escala para dispositivos más pequeños */
    transform-origin: 0 0;
  }
}

/*================FOOTER======================*/
#footer {
  background-color: #ec6307;
  padding: 15px 40px;
  max-width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-lado img {
  height: 25px;
  margin-left: 4em;
}

.luminel-lado {
  display: flex;
  align-items: center;
  gap: 150px;
}

.letra-container {
  font-family: "Montserrat";
  color: #f0e6e6;
  font-size: 20px;
  letter-spacing: 2px;
  margin: 0;
}

.logo-luminel img {
  height: 5rem;
}

/* Responsive */
@media (max-width: 1148px) {
  .footer-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .logo-lado img {
    height: 25px;
    margin-left: 0;
  }

  .luminel-lado {
    flex-direction: column;
    gap: 0;
  }

  .letra-container p {
    font-size: 11px;
  }

  .logo-luminel img {
    height: 4rem;
  }
}

/*============SEGUNDA PARTE DEL FOOTER======================*/
.footer2-container {
  background-color: #f5efef;
  padding: 20px;
}
.logos-continuos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.logos-continuos img {
  max-height: 15px; /* tamaño uniforme */
  width: auto; /* mantiene proporción */
  object-fit: contain; /* evita distorsión */
}

/*=================MEDIA QUERYS=============*/

@media screen and (min-width: 420px) {
  /*==========INICIO========*/
  .nav__menu {
    height: 43%;
  }

  .home__data {
    margin-bottom: 2em;
  }

  .home__title {
    font-size: 4em;
  }
  .home__description {
    margin-bottom: -12px;
  }

  /*=======ABOUT==========*/
  .titulo_section {
    font-size: 3em;
  }
  .section__subtitle {
    font-size: 2.4rem;
  }
  .section__subtitle-2 {
    font-size: 0.9rem;
  }

  #about h3 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
  }

  #about p {
    font-size: 1.1rem;
  }
  #about .text-container {
    padding: 50px;
  }

  /*========CARDS==============*/

  .card-base {
    max-width: 73vw;

    /* O también puedes usar: */
    /* max-width: min(400px, 73vw); */ /* El que sea menor: 400px o 73vw */

    /* Para mantener un mínimo y máximo razonable */
    max-width: min(400px, 73vw);
    min-width: 280px; /* Ancho mínimo para mantener legibilidad */
  }

  .categoria__content2 {
    gap: 25px; /* Un poco más de espacio entre cards */
  }
  /*==============CATEGORIA DE PRODUCTOS=============*/
  .card-text {
    padding: 12px 5px;
  }
  .text-body {
    font-size: 1em;
  }
  /*===========ULTIMA TARJETA DE CATEGORIA===========*/
  .text-container2 {
    padding: 18px 5px;
  }
  #categoria__containerf .text-body {
    padding: 15px 0;
  }
}

@media screen and (min-width: 660px) {
  .nav__menu {
    height: 35%;
  }
  /*==========INICIO========*/
  .home__data {
    margin-bottom: 2em;
  }

  .home__title {
    font-size: 6em;
  }
  .home__description {
    margin-bottom: -12px;
    font-size: 1.3em;
  }
  #section-inicio {
    background-image: url(/images/Banner2_max_aceros.png);
  }

  /*=========ABOUT============*/
  .titulo_section {
    font-size: 4em;
  }
  #about .text-container {
    padding: 0px 100px;
  }

  .section__subtitle {
    font-size: 3.2rem;
  }
  .section__subtitle-2 {
    font-size: 1.2rem;
  }

  #about h3 {
    font-size: 3em;
  }

  #about p {
    font-size: 1.3rem;
  }
  #about .text-container {
    padding: 50px;
  }

  /*========= PRODIUCTOS PRINCIPALES==============*/
  .productos__title {
    font-size: 0.9rem;
  }
  #productos p,
  #tuberias p {
    font-size: 0.8em;
  }
  .category-main .text-body {
    font-size: 1.1em;
  }

  /*========= cCATEGORIA DE PRODUCTOS==============*/
  .title-secondary {
    font-size: 2.4em;
  }

  /* Para pantallas de 660px */
  #categoria .card-base {
    height: auto; /* ← Asegurar que sea auto */
    min-height: 400px; /* ← Puedes ajustar esta altura mínima */
  }

  .card-text {
    padding: 14px 20px;
  }

  .text-body {
    font-size: 1.1em;
  }

  /*===========ULTIMA TARJETA DE CATEGORIA===========*/
  #categoria__final {
    background-image: url(/images/Banner4_max_aceros.png);
    background-position: inherit;
  }
  .text-container2 {
    padding: 35px 35px;
  }

  #categoria__containerf .title-secondary {
    font-size: 2.5em;
  }
  #categoria__containerf .text-body {
    padding: 15px 0;
  }

  /*==============CONTACTO==============*/
  .contacto-title {
    font-size: 2.8em;
  }
  .form-group input,
  .form-group textarea,
  .info-item {
    font-size: 15px;
  }

  .letra-container p {
    font-size: 13px;
  }

  #contacto {
    padding: 50px;
  }
  .logo-luminel img {
    height: 5rem;
  }
}

@media screen and (min-width: 820px) {
  .nav__menu {
    height: 47vh;
  }
  /*==========INICIO===========*/
  .logo1 {
    width: 130px;
  }

  .nav__link {
    font-size: 20px;
  }
  #section-inicio {
    height: 500px;
  }
  .home__title {
    font-size: 6.9em;
    letter-spacing: 3px;
  }
  .home__description {
    margin-bottom: -20px;
    font-size: 1.4em;
    margin-top: -11px;
  }

  /*==========NOSOTROS===========*/
  .titulo_section {
    font-size: 4.7em;
  }

  #about .text-container {
    order: 1; /* Asegura que el texto esté a la derecha si es necesario */
    padding: 40px 0px;
  }
  #about h3 {
    font-size: 3.3em;
  }
  #about p {
    font-size: 1.4rem;
  }
  #about .parrafo {
    margin-bottom: 60px;
  }
  #about .img-container {
    background-image: url("/images/Banner3_max.PNG");
    background-size: cover;
    background-position: center center;
    flex: 1;
    width: auto;
    height: auto; /*usar height 100% y dejar que el padre controle la ltura*/
    order: 1;
    align-self: stretch; /* ⭐ IMPORTANTE - Ocupa toda la altura */
    display: flex;
  }

  /*========PRODUCTOS PRINCIPALES=============*/
  .section__subtitle {
    font-size: 3.7rem;
  }
  .section__subtitle-2 {
    font-size: 1.3rem;
  }
  .productos {
    margin: 0px 113px;
  }
  #productos .productos__card,
  #tuberias .productos__card {
    height: 345px;
    width: 100%;
    max-width: 300px;
    left: 0;
    margin: 0 15px;
  }

  .productos__swiper {
    width: 100%;
    overflow: hidden;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 50px;
    height: 50px;
  }

  .swiper-button-prev {
    left: calc(50% - 4rem);
  }

  .swiper-button-next {
    right: calc(50% - 4rem);
  }

  /*========CATEGORIA PRODUCTOS=============*/
  #categoria {
    background-image: url(/images/Recurso1.png);
    padding: 2rem 0; /* Padding proporcional */
  }

  /*card creo*/
  #categoria .card-base {
    position: relative;
    width: 60%; /* Crece con la pantalla */
    max-width: 900px; /* Límite máximo */
    height: auto;
    min-width: 600px;
    min-height: 0;
    font-size: clamp(1.2em, 1vw, 1rem); /* Texto que escala */

    /* Mover a la derecha y abajo */
    margin-left: auto; /* Lo empuja a la derecha */
    margin-right: 5%; /* Espacio desde el borde derecho */
    margin-top: 5rem; /* Bajarlo */
    margin-bottom: 0rem; /* Espacio inferior */
  }

  .category-main .flex-container--column {
    min-height: 263px;
    height: auto; /* Mantiene proporción del card */
    aspect-ratio: 2.2 / 1;
  }
  .img-container--categoria1 {
    background-image: url("/images/Imagen1_sola_max_aceros.png");
    margin: 0;
    width: 30%;
    height: 100%; /* Ocupa toda la altura del contenedor */
    flex-shrink: 0;
  }
  .category-main .card-text {
    width: 50%;
    justify-content: space-evenly;
    padding: clamp(10px, 1.5vw, 25px); /* Padding que escala */
  }
  /* Texto que escala proporcionalmente */
  .category-main .title-secondary {
    font-size: clamp(2.1em, 2.5vw, 3em);
    text-align: left;
  }
  .category-main .text-body {
    font-size: clamp(1em, 1.2vw, 1.3em);
    line-height: 1.6;
  }

  .icono-lista li {
    background-size: clamp(18px, 1.5vw, 24px) clamp(18px, 1.5vw, 24px);
    padding-left: clamp(28px, 2vw, 35px);
  }

  #categoria .flex-container {
    display: flex;
    background-color: var(--white-color);
  }
  #categoria .flex-container--column {
    flex-direction: row; /*mantenerlo de aqui en adelante*/
  }

  .card-base {
    min-width: 280px;
  }
  /*=============segunda parte de categoria===============*/

  #categoria__content2 .img-container-base {
    margin: 0;
    height: auto;
    width: 71%;
  }
  .flex-container--column {
    flex-direction: row;
    height: 100%;
  }

  #categoria__content2 .card-base {
    position: relative;
    max-width: 467px;
    height: 304px;
  }

  /*ULTIMA PARTE CATEGORIA*/
 
  .text-container2 {
    padding: 14px 35px;
  }
  #categoria__containerf .text-body {
    padding: 0;
    font-size: 17px;
  }

  /*============NUESTROS CLIENTES==============*/

  .containerclientes {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 50px auto;
    width: 74%;
  }

  .clientes__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    order: 2;
  }
  .card__clientes2 {
    padding: 15px 0;
    width: 100%;
    order: 1;
  }

  #clientes .card-base {
    align-items: center;
    justify-content: center;
  }

  .img-container--cliente1,
  .img-container--cliente2,
  .img-container--cliente3,
  .img-container--cliente4 {
    max-width: 280px;
    height: 100px;
  }

  .img-container-clientes5 {
    max-width: 250px;
    height: 150px;
  }

  /* =============FORMULARIO CONTACTO =================*/

  .contacto-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
  }

  .contacto-section {
    padding: 20px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1;
  }

  .btn-enviar {
    margin: 0px;
  }

  .form-group.full-width {
    grid-column: span 2;
  }
}

@media screen and (min-width: 1200px) {
  /*=========NAV BARRA===============*/
  .header {
    /*1 header tenga el color del menú (naranja) */
    background-color: var(--first-color);
  }

  .logo1 {
    width: 129px;
    margin: 13px 25px;
    height: 30px;
  }
  .nav {
    height: calc(var(--header-height)+2rem);
    /* 2 Para el pseudo-elemento que crea el corte */
    position: relative;
    max-width: unset;
    padding-left: 0px;
  }

  .nav__logo {
    /* 3 contenedor del logo sea la parte blanca */
    background-color: var(--white-color);
    /* posicionar el ::after respecto al logo */
    position: relative;
    /* Establecer el ancho de la sección blanca  */
    width: 200px;
    /* logo esté en la parte visible */
    z-index: 2;
    /* Alineación del logo  */
    display: flex;
    align-items: center;
  }

  /* 4  forma diagonal con el pseudo-elemento */
  .nav__logo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -20px; /* Extiende el pseudo-elemento para que haga el corte */
    width: 49px; /* Debe ser más ancho que la parte que se superpone */

    /* Color blanco para que se mezcle con el fondo del logo */
    background-color: var(--white-color);

    /* EL SECRETO: Rotación/Inclinación (Skew) */
    transform: skewX(35deg);

    /* Asegura que el corte blanco esté por encima del fondo naranja */
    z-index: 1;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    width: initial;
    /*5 menú se posicione correctamente junto al logo */
    position: relative;
    z-index: 3; /*  enlaces del menú estén por encima de todo */
    background-color: transparent;
    padding-left: 20px; /* Añade un espacio después del corte diagonal */
    padding-right: 12px;
    height: 30%;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .nav__link {
    font-size: 16px;
  }

  .bg-header .nav__link {
    color: var(--title-color);
  }

  .bg-header .active-link,
  .bg-header .nav__link:hover {
    color: var(--white-color);
  }

  /**=======INICIO ======*/

  .home__title {
    font-size: 10em;
    letter-spacing: 5px;
  }
  #section-inicio {
    height: 765px;
    background-image: url(/images/Banner2_max_aceros.png);
  }
  .home__description {
    margin-left: 0px;
    font-size: 2em;
    letter-spacing: 5px;
  }
  .home__data {
    margin-left: 30px;
  }
  .titulo_section {
    font-size: 5em;
  }
  /*========NOSOTROS============*/
  #about .about__container {
    height: 690px;
  }
  #about h3 {
    margin: 20px 80px;
    font-size: 4.3em;
  }
  #about p {
    margin: 0 80px;
  }
  #about .parrafo {
    margin-bottom: 70px;
  }

  /*============CATEGORIA DE PRODICTOS================ */
  #categoria {
    background-image: url(/images/Banner_max_aceros.png);
  }
  .categoria__content2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
  }

  .title-secondary {
    font-size: 2.6em;
  }
  .text-body {
    font-size: 15px;
  }

  /* ==============PARTE FINAL DE CATEGORIA=========== */
  #categoria__final {
    display: flex;
    align-items: flex-start;
    justify-content: end;
    text-align: start;
    flex-direction: column;
    height: 71vh;
    background-image: url(/images/Banner4_max_aceros.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    padding: 2rem 0;
  }

  /*card creo*/
  #categoria__final .card2 {
    position: relative;
    width: 60%; /* Crece con la pantalla */
    max-width: 900px; /* Límite máximo */
    height: auto;
    min-width: 600px;
    min-height: 0;
    font-size: clamp(1.2em, 1vw, 1rem); /* Texto que escala */

    /* Mover a la derecha y abajo */
    margin-left: auto; /* Lo empuja a la derecha */
    margin-right: 5%; /* Espacio desde el borde derecho */
    margin-top: 5rem; /* Bajarlo */
    margin-bottom: 0rem; /* Espacio inferior */
  }

  .card__rightf #categoria__containerf {
    min-height: 263px;
    height: auto; /* Mantiene proporción del card */
    aspect-ratio: 2.2 / 1;
  }
  .card__rightf .text-container2 {
    justify-content: space-evenly;
    padding: 0;
    padding: 45px;
  }
  /* Texto que escala proporcionalmente */
  #categoria__containerf .title-secondary {
    font-size: clamp(2.1em, 2.5vw, 3em);
    font-size: 2em;
    text-align: center;
  }
  #categoria__containerf .text-body {
    font-size: clamp(1em, 1.2vw, 1.3em);
    line-height: 1.2;
    padding: 0px 0;
  }

  .icono-listaf li {
    background-size: clamp(18px, 1.5vw, 24px) clamp(18px, 1.5vw, 24px);
    padding-left: clamp(28px, 2vw, 35px);
  }

  /*============NUESTROS CLIENTES==============*/

  .containerclientes {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px auto;
    width: 74%;
  }

  .clientes__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    order: 1;
  }
  .card__clientes2 {
    padding: 15px 0;
    width: 100%;
  }

  #clientes .card-base {
    align-items: center;
    justify-content: center;
  }

  .img-container--cliente1,
  .img-container--cliente2,
  .img-container--cliente3,
  .img-container--cliente4 {
    max-width: 280px;
    height: 100px;
  }

  .img-container-clientes5 {
    max-width: 250px;
    height: 150px;
  }

  /*============FORMULARIO===========*/ 
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .g-recaptcha {
    margin-left: 0px;
  }
  .btn-enviar {
    margin-left: 0px;
  }
  #contacto {
    padding: 15px 57px;
  }
  .contacto-container{
    gap: 165px;
  }
  .mapa-container{
    height: 400px;
  }
  #footer {
    padding: 15px 24px;
  }
  .logos-continuos img {
    max-height: 26px;
  }

  .letra-container {
    font-size: 13px;
  }
}
