/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

.page-width {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.page-width-xl {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* === ESTRUCTURA GENERAL === */

.bg-headear {
  background-color: #a8481d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 16px;
  flex-wrap: wrap;
  color: white;
}

.main-headear {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 12px;
  flex-wrap: wrap;
  color: white;
  width: 100%;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-center {
  text-align: center;
  flex-grow: 1;
}

.logo {
  height: 150px;
  display: block;
  margin: 0 auto 4px;
}

.contact-button {
  background: white;
  color: #a8481d;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.contact-button:hover {
  background: #f0f0f0;
}

/* === MENÚ DESKTOP === */

.menu-desktop {
  display: block;
}

.menu-desktop ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.menu-desktop ul li a {
  text-decoration: none;
  color: white;
  font-size: 14px;
}

/* === ICONO HAMBURGUESA === */

.icon-button {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  display: none; /* solo visible en mobile */
}

/* === SIDEBAR MOBILE === */

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background-color: #a8481d;
  color: white;
  padding: 40px 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 20px;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.sidebar.active {
  left: 0;
}

/* === OVERLAY === */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === RESPONSIVE === */

@media screen and (max-width: 768px) {
  .menu-desktop {
    display: none;
  }

  .icon-button {
    display: block;
  }

  .main-headear {
    display: grid;
    grid-template-columns: auto auto 100px;
  }

  .header-center {
    order: 2;
    flex-basis: 100%;
    margin: 12px 0;
  }

  .logo {
    width: 154px;
    height: auto;
  }

  .header-right {
    order: 2;
  }
}

/* Hero */

.hero-section {
  flex-wrap: wrap;
  background-color: #b2a167; /* Mostaza */
}

.wrapp-container-hero {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background-color: white;
}

.hero-images img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  min-height: 250px;
}

.hero-content {
  padding: 64px 32px;
  display: flex;
  justify-content: center;
  color: white;
  align-items: center;
  justify-content: space-between;
}

.wrapper-titles {
  display: flex;
  flex-direction: column;
}

.hero-content h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.hero-content h3 {
  font-size: 48px;
  color: white;
  font-weight: 100;
}

.cta-button-maquila {
  background: #a8481d;
  color: white;
  padding: 12px 124px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  width: fit-content;
  text-align: center;
  transition: background 0.3s;
  margin-top: 54px;
  display: inline-block;
}

.cta-button-maquila:hover {
  background: #a15d3d;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-images {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-images img {
    width: 100%;
  }

  .hero-content h2 {
    font-size: 28px;
    margin: 0;
    text-align: left;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 54px;
  }

  .hero-content h3 {
    font-size: 32px;
  }

  .wrapper-titles {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 54px 16px;
  }

  .cta-button {
    margin: 0 auto;
  }

  .hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 4px;
    grid-row-gap: 6px;
    background-color: white;
  }

  .hero-images img:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
  }
  .hero-images img:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }
  .hero-images img:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
  }
}


.productos-section {
  background-color: #b2a167;
  padding: 60px 20px;
  text-align: center;
}

.productos-section h2 {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

.divider-white {
  width: 60px;
  height: 2px;
  background-color: white;
  border: none;
  margin: 0 auto 32px;
}

.producto-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.producto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.producto-card p {
  font-weight: bold;
  color: #a8481d;
  padding: 12px;
  font-size: 14px;
}

.cta-button.white {
  background: white;
  color: #a8481d;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  display: inline-block;
  margin-top: 40px;
  transition: background 0.3s;
  margin-top: 54px;
}

.cta-button.white:hover {
  background: #f0f0f0;
}


/* swiper/*




/*acerca de nostros */

.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 5%;
  background-color: white;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 45%;
  color: #333;
  padding: 0px 54px;
}

.about-text h2 {
  color: #a8481d;
  font-size: 24px;
  font-weight: bold;
}

.divider {
  width: 60px;
  height: 2px;
  background-color: #a8481d;
  border: none;
  margin: 12px 0 24px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-image {
  flex: 1 1 50%;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .about-text {
    padding: 0px 10px;
  }

  .about-text p {
    text-align: left;
  }
  .about-text ul {
    text-align: left;
  }
  .about-text h2 {
    font-size: 20px;
    text-align: left;
  }
}

/* maquila  */

.maquila-section {
  background-color: #f9f9f9;
  padding: 60px 5%;
}

.maquila-content h2 {
  color: #a8481d;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.4;
  text-align: left;
}

.maquila-content h2 span {
  color: #a8481d;
  font-weight: bold;
}

.maquila-content p {
  color: #333;
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.maquila-content h3 {
  font-size: 18px;
  color: #a8481d;
  font-weight: bold;
  margin-bottom: 24px;
}

.maquila-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.maquila-card {
  background-color: #fff6f1;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
}

.maquila-card:hover {
  transform: translateY(-5px);
}

.maquila-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.maquila-card p {
  padding: 24px;
  color: #a8481d;
  font-weight: bold;
  font-size: 18px;
}

/* Reutilizamos el botón */
.cta-button {
  background: #a8481d;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #922f12;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .maquila-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .maquila-content h2 {
    font-size: 20px;
  }
}

/* infrestructura */

.infraestructura-section {
  background-image: url("assets/bg-asset.png");
  background-size: cover;
  background-position: center;
  padding: 120px 5%;
  position: relative;
  color: white;
}

.infraestructura-overlay {
  padding: 40px 20px;
  border-radius: 8px;
}

.infraestructura-overlay h2 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
}

.infraestructura-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.infra-card {
  background-color: white;
  color: #a8481d;
  padding: 54px;
  border-radius: 8px;
  border: 5px solid #a8481d;
  text-align: center;
  transition: transform 0.3s;
}

.infra-card:hover {
  transform: translateY(-5px);
}

.infra-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
}

.infra-card p {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
  .infraestructura-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .infraestructura-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infra-card {
    background-color: white;
    color: #a8481d;
    padding: 16px;
    border-radius: 8px;
    border: 5px solid #a8481d;
    text-align: center;
    transition: transform 0.3s;
  }
}

/* beneficios */
.beneficios-section {
  background-color: #b2a167;
  padding: 60px 5%;
  color: white;
}

.beneficios-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alineación a la izquierda */
}

.beneficios-content h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: left;
}

.divider-white {
  width: 150px;
  height: 2px;
  background-color: white;
  border: none;
  margin: 0 0 32px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 24px;
  justify-content: start; /* Alinea el grid a la izquierda */
  margin-bottom: 64px;
}

.beneficio-pill {
  background-color: #a8481d;
  color: white;
  padding: 24px 94px 24px 24px;
  border-radius: 54px;
  font-weight: bold;
  text-align: center;
  text-align: left;
}

/* Botón */
.cta-button.white {
  background: white;
  color: #a8481d;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  transition: background 0.3s;
}

.cta-button.white:hover {
  background: #f0f0f0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
  }

  .beneficios-content {
    align-items: center;
    text-align: center;
  }

  .divider-white {
    margin: 0 auto 32px;
  }

  .cta-button.white {
    margin: 0 auto;
  }

  .beneficio-pill {
    padding: 24px;
  }
}

/* degrado section */

.cta-section {
  background: linear-gradient(180deg, #c3521d, #a8481d);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 24px;
  margin-bottom: 24px;
}

/* Reutilizamos el botón blanco */
.cta-button.white {
  background: white;
  color: #a8481d;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.3s;
}

.cta-button.white:hover {
  background: #f0f0f0;
}

.form-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  color: #333;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.form-container h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #a8481d;
}

.form-container p {
  margin-bottom: 30px;
  font-size: 16px;
}

form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

form button.cta-button {
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.main-footer {
  background-color: #524a21;
  color: white;
  padding: 90px 20px;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-social img {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 12px;
  color: #eee;
}

/* Opcional: fondo decorativo */
.main-footer::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 20px;
  background-image: url(/assets/Logotipo\ Hoja\ 1.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 378px;
  height: 358px;
  pointer-events: none;
  object-fit: revert;
  z-index: 10;
}
