/* 1. Importación desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* =================================================
   VARIABLES GLOBALES
   Aquí definimos los colores corporativos
   para reutilizarlos en todo el sitio
================================================= */
:root {
  --azul-principal: #131FA9;     /* Azul corporativo INDUMEQ */
  --azul-claro: #e9efff;         /* Fondo claro para secciones */
  --gris-claro: #f2f2f2;         /* Fondo gris */
  --negro: #111;                 /* Negro para footer */
  --blanco: #ffffff;             /* Blanco base */
  --texto: #222;                 /* Color de texto general */
  --radius-sm: 0.6rem;
  --radius-md: 1.2rem;
  --radius-lg: 2rem;

  --shadow-soft: 0 0.8rem 2rem rgba(0,0,0,0.08);
  --shadow-strong: 0 2rem 4rem rgba(0,0,0,0.15);
}

/* =================================================
   RESET GENERAL
   Eliminamos estilos por defecto del navegador
================================================= */
*,
*::before,
*::after {
  margin: 0;                     /* Elimina márgenes */
  padding: 0;                    /* Elimina rellenos */
  box-sizing: border-box;        /* Evita errores de tamaño */
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
}


html {
  font-size: 100%;
  scroll-behavior: smooth;
}
/* =================================================
   ESTILOS GENERALES DEL BODY
================================================= */
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--texto);           /* Color de texto */
  line-height: 1.6;              /* Espaciado entre líneas */
  background: var(--blanco);     /* Fondo blanco */
  line-height: 1.6;
  overflow-x: hidden; /* No scroll horizontal */
}

/* =================================================
   HEADER
================================================= */
.header {
  background: var(--blanco);     /* Fondo blanco */
  box-shadow: 0 2px 10px rgba(16, 28, 252, 0.05); /* Sombra ligera */
  position: sticky;              /* Header fijo al hacer scroll */
  top: 0;
  z-index: 1000;                 /* Siempre encima */
  transition: all 0.35s ease;
}

/* Contenedor del header */
.header-container {
  display: flex;                 /* Alinea elementos en fila */
  align-items: center;           /* Centra verticalmente */
  justify-content: space-between;/* Logo izquierda, menú derecha */
  padding: 1rem 4rem;
}

/* Logo */
.header-logo img {
  height: 5.5rem;                  /* Tamaño del logo */
}

/* Estado al hacer scroll */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.12);
}

/* Logo se hace más pequeño */
.header.scrolled .header-logo img {
  height: 4.8rem;
  transition: height 0.3s ease;
}

/* =================================================
   NAVEGACIÓN
================================================= */
.nav-list {
  display: flex;                 /* Menú horizontal */
  list-style: none;              /* Quita viñetas */
  gap: 1.5rem;                     /* Espacio entre enlaces */
  margin-bottom: auto;
}

/* Enlaces del menú */
.nav-link {

  text-decoration: none;         /* Quita subrayado */
  color: #333;                   /* Color del texto */
  font-weight: 500;              /* Grosor medio */
  transition: color 0.3s ease;   /* Animación suave */
  padding: 1rem 1.4rem;
  border-radius: 0.6rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover (NO activo) */
.nav-link:hover {
  background-color: rgba(19, 31, 169, 0.12);
  color: var(--azul-principal);
}
/* Activo */
.nav-link.active {
  background-color: var(--azul-principal);
  color: #ffffff;
}
/* Línea inferior animada SOLO para activo */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -0.6rem;
  width: 80%;
  height: 0.3rem;
  background-color: var(--azul-principal);
  border-radius: 0.2rem;
}
/* Estilos para el botón Hamburguesa */
.nav-toggle {
    display: none; /* Oculto en escritorio */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--azul-principal, #131fa9);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* MEDIA QUERY PARA MÓVILES (Menos de 768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 2rem; /* Reducimos padding lateral */
    }

    .nav-toggle {
        display: flex; /* Mostramos el botón */
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla */
        flex-direction: column;
        background-color: white;
        width: 70%; /* Ancho del menú lateral */
        height: 100vh;
        padding: 8rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }

    /* Clase que activaremos con JS */
    .nav-list.nav-list-visible {
        right: 0;
    }

    .nav-link {
        display: block;
        font-size: 1.2rem;
    }
}
/* =================================================
   HERO (IMAGEN PRINCIPAL)
================================================= */
.hero {
  position: relative;            /* Para usar overlay */
  min-height: min(85vh, 50rem);                  /* Altura casi pantalla completa */
  overflow: hidden;              /* Evita desbordes */
}

/* Imagen del hero */
.hero-img {
  width: 100%;                   /* Ocupa todo el ancho */
  height: 100%;                  /* Ocupa toda la altura */
  object-fit: cover;             /* No se deforma */

    /* Animación inicial */
  transform: scale(1.1);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
/* Zoom suave de fondo */
@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.5);
  }
}

/* Capa oscura encima de la imagen */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;                      /* Cubre todo */
  background: rgba(0, 0, 0, 0.792);  /* Oscurece la imagen */
  z-index: 0;
}

/* Contenedor del texto */
.hero-overlay {
  position: absolute; /* Fija la capa sobre la imagen */
  inset: 0;           /* Cubre el 100% del contenedor padre */
  display: flex;      /* Activa Flexbox para alinear el contenido */
  align-items: center;           /* Centrado vertical */
  justify-content: center;       /* Centrado horizontal */
  text-align: center;
  padding: 2rem;            /* Margen lateral para que el texto no toque el borde */
  z-index: 1;                    /* Sobre la capa oscura */
}

/* Texto principal */
.hero-title {
  color: var(--blanco);          /* Texto blanco */
  font-size: 3rem;               /* Tamaño grande */
  max-width: 70rem;              /* No se extiende demasiado */
  line-height: 1.2;               /* Ajusta el espacio vertical entre líneas; 1.2 hace que el título se vea compacto y sólido. */

  /* Estado inicial para una animación */
  opacity: 0;                    /* Hace que el elemento sea totalmente invisible al cargar la página. */
  transform: translateY(4rem);   /* Empuja el elemento 30px hacia abajo de su posición real para luego "subirlo". */
}

/* Animación del texto */
.animate-text {
  animation: textFadeUp 1.6s ease-out forwards;
  animation-delay: 0.4s;
}

/* Fade + slide */
@keyframes textFadeUp {
  to {
    opacity: 2;
    transform: translateY(0);
  }
}

/* =================================================
   BOTONES (REUTILIZABLES)
================================================= */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;            /* Tamaño del botón */
  border-radius: 2.5rem;           /* Bordes redondeados */
  text-decoration: none;         /* Quita subrayado */
  font-weight: 500;
  transition: all 0.3s ease;     /* Animación suave */
}

/* Botón principal */
.btn-primary {
  background: var(--azul-principal);
  color: var(--blanco);
}

/* Hover del botón principal */
.btn-primary:hover {
  background: #14238a;           /* Azul más oscuro */
}

/* Botón con borde */
.btn-outline {
  border: 0.2rem solid var(--azul-principal);
  color: var(--azul-principal);
}

/* Hover botón borde */
.btn-outline:hover {
  background: var(--azul-principal);
  color: var(--blanco);
}

/*------------------------CONTENIDO-----------------------*/

/*=======================================================
   FACILIDADES DE FABRICACION
======================================================*/
.acordeon-item {
  border-bottom: 1px solid #ddd;
}

.acordeon-header {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  color: #333;
}

.icono-mas {
  margin-right: 15px;
  font-size: 1.4rem;
  color: #000;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 20px;
}

/* El panel que se desliza */
.acordeon-panel {
  max-height: 0; /* Oculto */
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: transparent;
}

.acordeon-body {
  padding: 10px 0 20px 35px; /* Espacio para el texto interno */
}

/* CUANDO ESTÁ ACTIVO */
.acordeon-item.activo .acordeon-panel {
  max-height: 500px; /* Suficiente para que quepa la lista */
}

.acordeon-item.activo .icono-mas {
  transform: rotate(45deg); /* El + se vuelve una x */
  color: #1b2fa6;
}

/* =================================================
   EXPERIENCIA
================================================= */

.exp{
    background-color: #061229;
    color: var(--blanco);
    text-align: left;
    padding: 50px 20%;

}
.exp h2{
    color: #acd5d7;
    font-size: 1rem;
    font-style: normal;
    font-family: 'fredoka';
}
.exp h3{
    font-family: 'fredoka';
    font-size: 3rem;
    line-height: 1.2;
}
.exp p{
  font-family: 'fredoka';
  text-align: justify;
}
/* ===============================
   MISIÓN & VISIÓN – CORREGIDO
================================ */

/* Contenedor Principal */
/* Contenedor principal centrado */
.mivi-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;              /* Espacio vertical entre las tarjetas */
  max-width: 1100px;       /* Ancho máximo del área de contenido */
  margin: 0 auto;         /* Centra el contenedor en la página */
  padding: 5rem 2rem;
  width: 100%;
}

/* Base de la Tarjeta */
.mivi-card {
  max-width: 550px;       /* Ancho de cada tarjeta */
  padding: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #ffffff;    /* Puedes poner 'transparent' si prefieres */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.mivi-card:hover {
  transform: translateY(-5px); /* Efecto sutil al pasar el mouse */
}

/* --- POSICIONAMIENTO ESCALONADO --- */

.mivi-mision {
  align-self: flex-start; /* Se pega a la izquierda */
}

.mivi-vision {
  align-self: flex-end;   /* Se pega a la derecha */
}

/* --- DISEÑO INTERIOR --- */

.mivi-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mivi-icon {
  width: 60px;
  height: auto;
  flex-shrink: 0; /* Evita que el icono se encoja */
}

.mivi-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #1a1a1a;
}

.mivi-text {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* --- RESPONSIVO --- */

@media (max-width: 768px) {
  .mivi-container {
    gap: 2rem;
  }

  .mivi-card {
    align-self: center;   /* En móviles, ambas se centran */
    max-width: 100%;
  }
  
  .mivi-content {
    flex-direction: column; /* Icono arriba, texto abajo */
    text-align: center;
  }
}

/* ===============================
   CALIDAD - NOSOTROS
================================ */
.about-quality {
  padding: 90px 10%;
  background: linear-gradient(135deg, #f8f9ff, #eef1ff);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

/* Texto */
.quality-subtitle {
  color: var(--azul-principal);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  margin-left: 470px; /* mover a la derecha*/
}

.quality-title {
  font-family: "Fredoka";
  font-size: 2.8rem;
  margin-bottom: 25px;
  margin-left: 165px; /* mover a la derecha*/
}

.quality-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 700px;
  font-family: "Fredoka";
  text-align: justify;
}

/* ISO */
.quality-iso {
  /* background: #ffffff;
  border-radius: 16px; */
  padding: 40px;
  text-align: center;
  /* box-shadow: 0 20px 40px rgba(0,0,0,0.15); */
}

.quality-iso img {
  max-width: 220px;
  width: 100%;
  margin-bottom: 15px;
}

.quality-iso span {
  display: block;
  font-weight: 400;
  color: var(--azul-principal);
  letter-spacing: 0.05em;
}


/* =================================================
   PRODUCTOS EXCELENTES
================================================= */
.producto-excelente{
    background: white;
    padding: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;


}

.producto{
  justify-content: flex-end;        /* Empuja el contenido hacia la derecha */
  text-align: left;                /* Alinea el texto a la derecha */
  width: 500px;
  margin-left: 150px;               /*mas a la derecha*/
}
.producto-title{
    font-size: 1rem;

}
.producto-subtitle{
    font-size: 2.5rem;
    font-family: "fredoka";
    line-height: 1.1;   /*interlineado*/
}
.producto-text{
    font-size: 1.2rem;
    text-align: justify;  /*parrafo justificado*/
}
.producto-list{
    margin-left: 50px;
    font-size: 1.2rem;
}

/*imagen*/
.producto-img img{
    width: 100%;
    border-radius: 10px;
    margin-right: 20px;

    width: 100%;                   /* Ocupa todo el ancho */
    height: 100%;                  /* Ocupa toda la altura */
}

/* -------GALERÍA - PRODUCTOS EXCELENTES------- */
.about-gallery {
  width: 100%;
  position: relative;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Imagen */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Botón */
.gallery-btn {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;

  font-size: 1.4rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.3s ease;
}

.gallery-btn:hover {
  background: rgba(0,0,0,0.8);
}

.gallery-btn.left {
  left: 15px;
  right: auto;
}

.gallery-btn.right {
  right: 15px;
}


/* =================================================
   FACILIDADES DE OPERACION
================================================= */
.facilidades {
  position: relative;            /* Para usar overlay */
  height: 50vh;                  /* Altura casi pantalla completa */
  overflow: hidden;              /* Evita desbordes */

}
.facilidades img{
  width: 100%;                   /* Ocupa todo el ancho */
  height: 100%;                  /* Ocupa toda la altura */
  object-fit: cover;             /* No se deforma */
}

/* Capa oscura encima de la imagen */
.facilidades::after {
  content: "";
  position: absolute;
  inset: 0;                      /* Cubre todo */
  background: rgba(0, 0, 0, 0.805);  /* Oscurece la imagen */
}

.facilidades-content {
  position: absolute; /* Fija la capa sobre la imagen */
  inset: 0;           /* Cubre el 100% del contenedor padre */
  display: flex;      /* Activa Flexbox para alinear el contenido */
  flex-direction: column;   /* 👈 ESTA ES LA CLAVE */
  align-items:center;           /* Centrado vertical */
  justify-content: center;       /* Centrado horizontal */
  text-align: center;
  padding: 20px;            /* Margen lateral para que el texto no toque el borde */
  z-index: 1;                    /* Sobre la capa oscura */
}

.facilidades-content h2 {
  color: #3d2ca6   ;          /* Texto blanco */
  font-size: 1rem;               /* Tamaño grande */
  max-width: 80rem;              /* No se extiende demasiado */
  font-family: "fredoka";
}
.facilidades-content h3 {
  color: var(--blanco);          /* Texto blanco */
  font-size: 2.6rem;               /* Tamaño grande */
  max-width: 1200px;              /* No se extiende demasiado */
  font-family: "galdeano";
  line-height: 1.2;

}

/* =================================================
   FACILIDADES DE FABRICACION
================================================= */
.fabricacion-container{
    background: var(--gris-claro);
    padding: 80px 10PX;
    display: grid;
    min-height: 100px;
    grid-template-columns: 1fr 1fr;
}
.fabricacion-image img{
    width: 100%;
    padding: 50px;
    border-radius: 10px;
    margin-right: 20px;
    width: 100%;                   /* Ocupa todo el ancho */
    height: 90%;                  /* Ocupa toda la altura */ 
}

.fabricacion-content h2{
  font-size: 2.6rem;
  font-family: "fredoka";
}
.meta-text{
  font-family: "fredoka";
  font-size: 1.1rem;
}

/* ============== MENU =================*/

/* =================================================
   EXPERIENCIA
================================================= */

.exp{
    background-color: #061229;
    color: var(--blanco);
    text-align: left;
    padding: 4.5rem 20%;

}
.exp h1{
    color: #acd5d7;
    font-size: 1.2rem;
    font-style: normal;
    font-family: 'fredoka';
}
.exp h2{
    font-family: 'fredoka';
    font-size: 3rem;
    line-height: 1.2;
}
.exp p{
  font-family: 'fredoka';
  text-align: justify;
}
/* ===============================
   MISIÓN & VISIÓN – TARJETAS FLOTANTES
================================ */

/* CONTENEDOR GENERAL */
.mivi-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}

/* TARJETAS */
.mivi-card {
  max-width: 40rem;
  padding: 2rem;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

/* ESCALONADO SIN ABSOLUTE */
.mivi-mision {
  align-self: flex-start;
}

.mivi-vision {
  align-self: flex-end;
}

/* CONTENIDO INTERNO */
.mivi-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mivi-row-right {
  justify-content: space-between;
}

/* ICONOS */
.mivi-icon {
  width: 4rem;
  flex-shrink: 0;
}

/* TEXTO */
.mivi-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111;
}
.mivi-title2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111;
  text-align: end;
}

.mivi-text {
  line-height: 1.5rem;
  color: #555;
  text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mivi-card {
    align-self: center;
    max-width: 100%;
  }

  .mivi-row {
    flex-direction: column;
    text-align: center;
  }
}



/* ===============================
   CALIDAD - NOSOTROS
================================ */
.about-quality {
  padding: 9rem 10%;
  background: linear-gradient(135deg, #f8f9ff, #eef1ff);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

/* Texto */
.quality-subtitle {
  color: var(--azul-principal);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: end;
  /*margin-left: 25rem; /* mover a la derecha*/
}

.quality-title {
  font-family: "Fredoka";
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  text-align: end;
  /*margin-left: 8rem; /* mover a la derecha*/
}

.quality-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 70rem;
  font-family: "Fredoka";
  text-align: justify;
}

/* ISO */
.quality-iso {
  /* background: #ffffff;
  border-radius: 16px; */
  padding: 4rem;
  text-align: center;
  /* box-shadow: 0 20px 40px rgba(0,0,0,0.15); */
}

.quality-iso img {
  max-width: 15rem;
  width: 100%;
  margin-bottom: 1.1rem;
}

.quality-iso span {
  display: block;
  font-weight: 400;
  color: var(--azul-principal);
  letter-spacing: 0.05em;
}


/* =================================================
   PRODUCTOS EXCELENTES
================================================= */
.producto-excelente{
    background: white;
    padding: 2.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;


}

.producto{
  justify-content: flex-end;        /* Empuja el contenido hacia la derecha */
  text-align: left;                /* Alinea el texto a la derecha */
  width: 30.5rem;
  margin-left: 10rem;               /*mas a la derecha*/
}
.producto-title{
    font-size: 1rem;

}
.producto-subtitle{
    font-size: 2.5rem;
    font-family: "fredoka";
    line-height: 1.1;   /*interlineado*/
}
.producto-text{
    font-size: 1.2rem;
    text-align: justify;  /*parrafo justificado*/
}
.producto-list{
    margin-left: 4rem;
    font-size: 1.2rem;
}

/*imagen*/
.producto-img img{
    width: 100%;
    border-radius: 1rem;
    margin-right: 1.5rem;

    width: 100%;                   /* Ocupa todo el ancho */
    height: 100%;                  /* Ocupa toda la altura */
}

/* -------GALERÍA - PRODUCTOS EXCELENTES------- */
.about-gallery {
  width: 100%;
  position: relative;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 2rem 4rem rgba(0,0,0,0.15);
}

/* Imagen */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Botón */
.gallery-btn {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;

  font-size: 1.4rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.3s ease;
}

.gallery-btn:hover {
  background: rgba(0,0,0,0.8);
}

.gallery-btn.left {
  left: 1rem;
  right: auto;
}

.gallery-btn.right {
  right: 1rem;
}


/* =================================================
   FACILIDADES DE OPERACION
================================================= */
.facilidades {
  position: relative;            /* Para usar overlay */
  height: 50vh;                  /* Altura casi pantalla completa */
  overflow: hidden;              /* Evita desbordes */

}
.facilidades img{
  width: 100%;                   /* Ocupa todo el ancho */
  height: 100%;                  /* Ocupa toda la altura */
  object-fit: cover;             /* No se deforma */
}

/* Capa oscura encima de la imagen */
.facilidades::after {
  content: "";
  position: absolute;
  inset: 0;                      /* Cubre todo */
  background: rgba(0, 0, 0, 0.805);  /* Oscurece la imagen */
}

.facilidades-content {
  position: absolute; /* Fija la capa sobre la imagen */
  inset: 0;           /* Cubre el 100% del contenedor padre */
  display: flex;      /* Activa Flexbox para alinear el contenido */
  flex-direction: column;   /* 👈 ESTA ES LA CLAVE */
  align-items:center;           /* Centrado vertical */
  justify-content: center;       /* Centrado horizontal */
  text-align: center;
  padding: 2rem;            /* Margen lateral para que el texto no toque el borde */
  z-index: 1;                    /* Sobre la capa oscura */
}

.facilidades-content h1 {
  color: #acd5d7   ;          /* Texto blanco */
  font-size: clamp(1rem, 2vw, 1.8rem);   /* Tamaño grande */
  max-width: 90rem;              /* No se extiende demasiado */
  font-family: "fredoka";
}
.facilidades-content h2 {
  color: var(--blanco);          /* Texto blanco */
  font-size: clamp(0.8rem, 3vw, 2.5rem);               /* Tamaño grande */
  max-width: 60rem;              /* No se extiende demasiado */
  font-family: "galdeano";
  line-height: 1.2;

}

/* =================================================
   FACILIDADES DE FABRICACION
================================================= */
.fabricacion-container{
    background: var(--gris-claro);
    padding: 8rem 1rem;
    display: grid;
    min-height: 10rem;
    grid-template-columns: 1fr 1fr;
}
.fabricacion-image img{
    width: 100%;
    padding: 5rem;
    border-radius: 1rem;
    margin-right: 2rem;
    width: 100%;                   /* Ocupa todo el ancho */
    height: 90%;                  /* Ocupa toda la altura */ 
}

.fabricacion-content h1{
  font-size: clamp(1.5rem, 1.8rem, 2.8rem);
  font-family: "fredoka";
}
.meta-text{
  font-family: "fredoka";
  font-size: clamp(1rem, 1.1rem, 1.8rem);
}

/* -------- ACORDEON FACILIDADES DE FABRICACION ---------*/
.acordeon-item {
  border-bottom: 0.1rem solid #ddd;
}

.acordeon-header {
  width: 100%;
  padding: 0.6rem 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  color: #333;
}

.icono-mas {
  margin-right: 1rem;
  font-size: 1.4rem;
  color: #000;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 2rem;
}

/* El panel que se desliza */
.acordeon-panel {
  max-height: 0; /* Oculto */
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: transparent;
}

.acordeon-body {
  padding: 1rem 0 2rem 3rem; /* Espacio para el texto interno */
}

/* CUANDO ESTÁ ACTIVO */
.acordeon-item.activo .acordeon-panel {
  max-height: 30rem; /* Suficiente para que quepa la lista */
}

.acordeon-item.activo .icono-mas {
  transform: rotate(45deg); /* El + se vuelve una x */
  color: #1b2fa6;
}




/* ===============================
   CONTACTO
================================ */
.contact {
  background: linear-gradient(135deg, #eef2ff, #f8f9ff);
  padding: 8.5rem 10%;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

/* TEXTO IZQUIERDA */
.contact-desc {
  font-size: 1.2rem;
  line-height: 2rem;
  margin-bottom: 3rem;
  color: #444;
  font-family: "fredoka";
}
.contact-subtitle{
  font-family: "fredoka";
  font-size: 2rem;
}
.contact-title{
  font-family: "fredoka";
  font-size: 3rem;
  margin: 0.5rem;
  line-height: 3rem;
}

/* COLUMNA CENTRAL */
.contact-center {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-item-content{
  font-family: "fredoka";
  font-size: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  color: #222;
}

.contact-item i {
  color: var(--azul-principal);
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

/* MAPA */
.contact-map iframe {
  width: 100%;
  height: 28rem;
  border-radius: 14px;
  border: none;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.15);
}

/* ===============================
   ANIMACIONES CONTACTO
================================ */
.reveal-contact {
  opacity: 0;
  transform: translateY(3rem);
}

.reveal-contact.active {
  animation: contactFadeUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes contactFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================
   FOOTER
================================================= */
.main-footer {
  background-color: #1a1a1a;
  color: white;
  padding: 6rem 10%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  max-width: 15rem;
}

.footer-slogan {
  font-size: 2rem;
  font-weight: 40rem;
  text-align: right;
  max-width: 40rem;
  font-family: "fredoka";
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}


.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

/* =================================================
   RESPONSIVE GLOBAL – TODOS LOS DISPOSITIVOS
================================================= */

/* ============== HEADER Y FOOTER ================*/
/* ===============================
   TABLETS (≤ 1024px)
================================ */
@media (max-width: 64rem) {

  /* HEADER */
  .header-container {
    padding: 1rem 2rem;
  }

  /* HERO */
  .hero-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
  }

  /* CONTACTO → 2 COLUMNAS */
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-map iframe {
    height: 22rem;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer-slogan {
    text-align: center;
  }
}

/* ===============================
   MÓVILES GRANDES (≤ 768px)
================================ */
@media (max-width: 48rem) {

  /* HERO */
  .hero {
    min-height: auto;       /* 👈 deja que la imagen mande */
    height: auto;           /* 👈 elimina alturas forzadas */
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* CONTACTO → 1 COLUMNA */
  .contact {
    grid-template-columns: 1fr;
    padding: 6rem 6%;
  }

  .contact-center {
    align-items: flex-start;
  }

  .contact-map iframe {
    height: 20rem;
  }

  /* FOOTER */
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    margin-inline: auto;
  }
}

/* ===============================
   MÓVILES PEQUEÑOS (≤ 480px)
================================ */
@media (max-width: 30rem) {

  /* HEADER */
  .header-logo img {
    height: 3.8rem;
  }

  /* HERO */
  .hero-title {
    font-size: 1.5rem;
  }

  /* BOTONES */
  .btn {
    width: 100%;
    text-align: center;
  }

  /* CONTACTO */
  .contact-desc {
    font-size: 1rem;
  }

  .contact-item-content {
    font-size: 1rem;
  }

  /* MAPA */
  .contact-map iframe {
    height: 18rem;
  }
}

/* ===============================
   PANTALLAS GRANDES / 4K (≥ 1600px)
================================ */
@media (min-width: 100rem) {

  /* CONTENEDORES CENTRADOS */
  .header-container,
  .hero,
  .contact,
  .main-footer {
    max-width: 120rem;
    margin-inline: auto;
  }

  body {
    font-size: 110%;
  }
}

/*======================== RESPONSIVE MENU ===========================*/

/* =================================================
   RESPONSIVE COMPLETO – SECCIONES INTERNAS
================================================= */

/* ===============================
   TABLETS GRANDES (≤ 1024px)
================================ */
@media (max-width: 64rem) {

  /* ===== EXPERIENCIA ===== */
  .exp {
    padding: 4rem 10%;
    text-align: center;
  }

  .exp h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
  }

  .exp p {
    text-align: center;
  }

  /* ===== MISIÓN & VISIÓN ===== */
  .mivi {
    min-height: auto;
    padding: 6rem 8%;
  }

  .mivi-card {
    position: relative;
    max-width: 100%;
    margin-bottom: 4rem;
  }

  .mivi-mision,
  .mivi-vision {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .mivi-row,
  .mivi-row-right {
    justify-content: center;
  }

  .mivi-text-group {
    max-width: 100%;
  }

  .mivi-title2 {
    text-align: center;
  }

  /* ===== CALIDAD ===== */
  .about-quality {
    grid-template-columns: 1fr;
    padding: 6rem 8%;
    text-align: center;
  }

  .quality-subtitle,
  .quality-title {
    margin-left: 0;
  }

  .quality-text {
    margin-inline: auto;
    text-align: center;
  }

  /* ===== PRODUCTOS EXCELENTES ===== */
  .producto-excelente {
    grid-template-columns: 1fr;
    padding: 5rem 8%;
    gap: 4rem;
  }

  .producto {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .producto-list {
    margin-left: 0;
    text-align: left;
  }

  /* ===== GALERÍA ===== */
  .gallery-container {
    height: 22rem;
  }

  /* ===== FACILIDADES FABRICACIÓN ===== */
  .fabricacion-container {
    grid-template-columns: 1fr;
    padding: 5rem 8%;
  }

  .fabricacion-image img {
    padding: 0;
    height: auto;
  }
}

/* ===============================
   TABLETS / MÓVILES GRANDES (≤ 768px)
================================ */
@media (max-width: 48rem) {

  /* ===== ACORDEÓN ===== */
  .acordeon-header {
    font-size: 1rem;
    padding: 1rem 0;
  }

  .acordeon-body {
    padding-left: 1.5rem;
  }

  /* ===== EXPERIENCIA ===== */
  .exp h1 {
    font-size: 1rem;
  }

  .exp h2 {
    font-size: 2.2rem;
  }

  /* ===== MISIÓN & VISIÓN ===== */
  .mivi-card {
    padding: 2.5rem;
  }

  .mivi-row,
  .mivi-row-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mivi-icon1,
  .mivi-icon2 {
    margin-top: 0;
  }

  /* ===== CALIDAD ===== */
  .quality-title {
    font-size: 2.2rem;
  }

  /* ===== FACILIDADES OPERACIÓN ===== */
  .facilidades {
    height: 45vh;
  }

  .facilidades-content h2 {
    font-size: 2rem;
  }

  /* ===== GALERÍA ===== */
  .gallery-container {
    height: 20rem;
  }
}

/* ===============================
   MÓVILES PEQUEÑOS (≤ 480px)
================================ */
@media (max-width: 30rem) {

  /* ===== EXPERIENCIA ===== */
  .exp {
    padding: 4rem 6%;
  }

  .exp h2 {
    font-size: 1.9rem;
  }

  /* ===== MISIÓN & VISIÓN ===== */
  .mivi {
    padding: 4rem 6%;
  }

  .mivi-card {
    padding: 2rem 1.5rem;
  }

  .mivi-title,
  .mivi-title2 {
    font-size: 1.6rem;
  }

  .mivi-text {
    font-size: 1rem;
  }

  /* ===== CALIDAD ===== */
  .about-quality {
    padding: 4rem 6%;
  }

  /* ===== PRODUCTOS EXCELENTES ===== */
  .producto-subtitle {
    font-size: 2rem;
  }

  /* ===== FACILIDADES ===== */
  .facilidades-content h1 {
    font-size: 1.2rem;
  }

  .facilidades-content h2 {
    font-size: 1.6rem;
  }

  /* ===== GALERÍA ===== */
  .gallery-container {
    height: 18rem;
  }
}

/* ===============================
   PANTALLAS GRANDES / 4K (≥ 1600px)
================================ */
@media (min-width: 100rem) {

  .exp,
  .mivi,
  .about-quality,
  .producto-excelente,
  .markets,
  .fabricacion-container {
    max-width: 120rem;
    margin-inline: auto;
  }

  .gallery-container {
    height: 28rem;
  }
}

/* ===============================
   MISIÓN & VISIÓN – RESPONSIVE
================================ */
@media (max-width: 64rem) {

  .mivi {
    padding: 5rem 8%;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem; /* 👈 RESPETA ESPACIOS */
  }

  .mivi-card {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
  }

  .mivi-mision,
  .mivi-vision {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }
}

/* ===============================
   PRODUCTOS EXCELENTES – RESPONSIVE
================================ */
@media (max-width: 64rem) {

  .producto-excelente {
    grid-template-columns: 1fr; /* 👈 UNA SOLA COLUMNA */
    gap: 4rem;                  /* 👈 ESPACIO REAL */
    padding: 5rem 8%;
  }

  .producto {
    width: 100%;
    margin-left: 0;
  }

  .about-gallery {
    margin-top: 2rem;
  }
}

@media (max-width: 48rem) {

  .producto-excelente {
    gap: 3rem;
    padding: 4rem 6%;
  }

  .gallery-container {
    height: 20rem;
  }
}

@media (max-width: 30rem) {

  .producto-excelente {
    gap: 2.5rem;
    padding: 3.5rem 5%;
  }

  .gallery-container {
    height: 18rem;
  }
}
/* ===============================
   MISIÓN & VISIÓN – EVITAR SUPERPOSICIÓN
================================ */

/* Cuando ya no hay espacio suficiente */
@media (max-width: 70rem) {

  .mivi {
    display: flex;
    flex-direction: column;
    gap: 4rem;          /* 👈 espacio entre tarjetas */
    padding: 5rem 8%;
    min-height: auto;
  }

  .mivi-card {
    position: relative; /* 👈 sale del absolute */
    max-width: 100%;
    margin: 0 auto;
  }

  .mivi-mision,
  .mivi-vision {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }
}
