/* === ESTILO GENERAL === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    background-color: #e0f7f7;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}


main {
    padding: 20px;
}

/*Estilo del menu de navegacion*/
/* --- Navegación Principal --- */
/* === Navbar base === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e5f0e7;
  padding: 10px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  font-family: 'Segoe UI', sans-serif;
  z-index: 999;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #3b755e;
}

/* Estilo general del dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 10px;
}

/* Mostrar en hover en escritorio */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 🔑 ajusta columnas */
    gap: 10px;
    width: 600px;          /* ancho del mega menú */
    max-height: 400px;     /* alto máximo */
    overflow-y: auto;      /* scroll si hay demasiadas */
  }
}

/* Enlaces dentro del menú */
.dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

/* En móvil: el menú aparece como lista vertical con scroll */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    max-height: 300px;  /* 🔑 scroll interno */
    overflow-y: auto;
    display: none;
    grid-template-columns: 1fr; /* lista simple */
    width: 100%;
  }

  .dropdown.open .dropdown-menu {
    display: block; /* el script ya abre/cierra con .open */
  }
}


/* === Barra de búsqueda === */
.search-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-box input {
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #aaa;
  outline: none;
  font-size: 14px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* === Botón de menú hamburguesa === */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #e5f0e7;
    padding: 10px 0;
    border-top: 1px solid #ccc;
  }

  .nav-links.active {
    display: flex;
  }

  .search-box {
    width: 100%;
    margin-top: 10px;
  }

  .dropdown-menu {
    position: static;
    background: none;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}



/* CONTENEDOR GENERAL */
.intro {
  background: #fff;
  padding: 20px;
}

/* LAYOUT PRINCIPAL */
.intro-contenedor{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:15px;
  max-width:1200px;
  margin:0 auto;
}

/* IMAGEN GRANDE */
.intro-portada{
  flex:3;
}

.intro-portada img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

/* COLUMNA DERECHA */
.intro-lateral{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* IMAGENES PEQUEÑAS */
.intro-lateral img{
  width:100%;
  height:100%;
  max-height:110px;
  object-fit:cover;
  border-radius:6px;
  cursor:pointer;
  transition:0.3s;
}

.intro-lateral img:hover{
  transform:scale(1.05);
}
/* CONTENEDOR GENERAL */
.intro {
  background: #fff;
  padding: 20px;
}

/* LAYOUT PRINCIPAL */
.intro-contenedor{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:15px;
  max-width:1800px;
  margin:0 auto;
}

/* IMAGEN GRANDE */
.intro-portada{
  flex:4;
}

.intro-portada img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);
}


/* === SECCIÓN ABOUT === */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #e0f7f7;
    padding: 40px 20px;
}

.about-image, .about-text {
    flex: 1 1 50%;
    box-sizing: border-box;
}

.about-image {
    text-align: center;
    padding: 10px;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

.about-text {
    padding: 20px;
}

.about-text h2 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 0;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
}

.about-text button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.about-text button:hover {
    background-color: #444;
}

/* === RESPONSIVE (celulares y tablets) === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    .intro-text, .intro-image,
    .about-text, .about-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .intro-text {
        padding: 10px;
    }

    .about-text {
        padding: 10px;
    }
}
/* === MENÚ HAMBURGUESA CON ANIMACIÓN === */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
}

.nav-menu {
    transition: max-height 0.4s ease-in-out;
    overflow: hidden;
    max-height: 0;
}

/* Mostrar menú cuando está activo */
.nav-menu.active {
    max-height: 300px; /* suficiente para mostrar todos los enlaces */
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #e5f0e7;
    padding: 10px 0;
    border-top: 1px solid #ccc;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}
@media (min-width: 769px) {
    .nav-menu {
        max-height: none !important;
        overflow: visible;
    }

    .nav-menu ul {
        flex-direction: row;
        justify-content: flex-end;
    }

    .menu-toggle {
        display: none;
    }
}

/*Estilos de la seccion del carrusel*/
.productos {
    background-color: #f4f4f4;
    text-align: center;
    padding: 10px 20px;
  }
  
  .titulo {
    font-size: 2em;
    margin-bottom: 40px;
  }
  
  .carrusel-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  .carrusel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    width: 100%;
  } 
  
  .item {
    min-width: 250px;
    flex-shrink: 0;
    text-align: center;
  }
  
  .item img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
  }
  
  .arrow {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
  }
  
  .arrow.left {
    left: 0;
  }
  
  .arrow.right {
    right: 0;
  }
  
  .info-btn {
    margin-top: 30px;
  }
  
  .info-btn button {
    padding: 12px 24px;
    background: black;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .info-btn button:hover {
    background: #333;
  }
  
  @keyframes scrollCarrusel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  @media (max-width: 768px) {
    .item {
      min-width: 70%;
    }
  }

  /*Estilos de la seccion de mandar correo para cotizacion*/
  .cotizacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 80px 30px;
    background-color: #d6e6dc;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .cotizacion-texto {
    flex: 1 1 400px;
    max-width: 500px;
  }
  
  .cotizacion-texto h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #3a3a3a;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.3;
  }
  
  .cotizacion-texto p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #222;
  }
  
  form#cotizacion-form {
    flex: 1 1 350px;
    max-width: 400px;
    background: #f2ede9;
    padding: 30px 25px;
    border: 1px solid #b8b8b8;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
  
  form#cotizacion-form input,
  form#cotizacion-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #999;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
  }
  
  form#cotizacion-form textarea {
    border-radius: 20px;
    resize: none;
    padding: 15px 20px;
  }
  
  form#cotizacion-form button {
    width: 100%;
    padding: 16px;
    background-color: #ece9e5;
    border: none;
    font-weight: bold;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
  }
  
  form#cotizacion-form button:hover {
    background-color: #ddd;
  }
  
  @media (max-width: 768px) {
    .cotizacion {
      flex-direction: column;
      text-align: center;
      gap: 40px;
    }
  
    form#cotizacion-form {
      width: 100%;
    }
  }
  


/* Estilos para la sección de ubicación */
#ubicacion {
  margin-top: 60px;
  padding-top: 20px;
}


/* Sección del mapa */
#ubicacion .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* Contenedor del mapa */
#ubicacion .mapa {
  flex: 1 1 400px;
  min-width: 300px;
}

/* Hacer el iframe responsivo */
#ubicacion .mapa iframe {
  width: 100% !important;   /* ocupa todo el ancho del contenedor */
  height: 100%; 
  min-height: 300px;        /* altura mínima en móviles */
  border: none;
  border-radius: 10px;      /* opcional: esquinas redondeadas */
}

/* Info al lado del mapa */
#ubicacion .info {
  flex: 1 1 300px;
  min-width: 250px;
}

/* Responsividad */
@media (max-width: 768px) {
  #ubicacion .container {
    flex-direction: column; /* mapa arriba, texto abajo */
  }
  #ubicacion .mapa iframe {
    height: 250px; /* altura más reducida en móvil */
  }
}


/*Estilos para la seccion de pie de pagina*/
footer {
  background-color: #f9f9f9;
  padding: 2rem;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}


.footer-top blockquote {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 100%;
  line-height: 1.5;
  margin: 0;

  white-space: wrap; /* 🔥 evita salto de línea */
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li,
.footer-column p {
  font-size: 1rem;
  margin: 0.3rem 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.95rem;
  font-weight: bold;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
  }
}

/* CONTENEDOR DE LOS QR */
.qr-container{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:nowrap; /* 🔥 evita que se bajen */
}

/* CADA QR */
.qr-item{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* TEXTO DEBAJO DEL QR */
.qr-text{
  font-size:12px;
  margin-top:5px;
  color:#333;
}
/*Estilos para categoria.html*/

.categoria-section {
  padding: 40px 20px;
  background-color: #f8f8f8;
}

.categoria-titulo {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.productos-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.producto-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
}

.producto-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.producto-card button {
  margin-top: 10px;
  padding: 8px 18px;
  background-color: #3b755e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.producto-card button:hover {
  background-color: #2d5c4a;
}

/*Estilos para producto .html*/
/* Estilos para producto.html */
.detalle-producto {
  display: flex;
  flex-direction: row; /* Fuerza horizontal en pantallas grandes */
  align-items: flex-start;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 40px auto;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.detalle-producto img {
  flex: 1 1 40%; /* Imagen ocupa ~40% */
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.detalle-producto .info {
  flex: 1 1 60%; /* Texto ocupa ~60% */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detalle-producto h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.detalle-producto p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #555;
}

.detalle-producto ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.detalle-producto li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #444;
}

.btn-contacto {
  display: inline-block;
  background-color: #3b755e;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-contacto:hover {
  background-color: #2d5c4a;
}

/* Responsive: apilar en móviles */
@media (max-width: 768px) {
  .detalle-producto {
    flex-direction: column;
    padding: 20px 15px;
  }

  .detalle-producto img {
    width: 100%;
    max-width: 100%;
  }

  .detalle-producto .info {
    padding-top: 20px;
  }
}

/*Margenes para el contenido principal*/
.contenido-principal {
  padding: 0 20px;
}

@media (min-width: 768px) {
  .contenido-principal {
    padding: 0 95px;
  }
}

/*Diseño para la seccion nosotros*/
.nosotros-container {
  display: flex;
  flex-wrap: wrap;
  min-height: calc(100vh - 200px); /* ajusta según tu header/footer */
}

.nosotros-left {
  flex: 1;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.nosotros-left img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.nosotros-left h1 {
  font-size: 2.5rem;
  font-weight: normal;
  text-align: center;
  color: #222;
}

.nosotros-right {
  flex: 1;
  background-color: #d1e1d7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.nosotros-texto {
  max-width: 600px;
}

.nosotros-texto h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.nosotros-texto hr {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 20px;
}

.nosotros-texto p {
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros-container {
    flex-direction: column;
  }

  .nosotros-left,
  .nosotros-right {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .nosotros-texto {
    padding: 0 10px;
  }

  .nosotros-left h1 {
    font-size: 2rem;
  }
}
/*Seccion de mision y vision*/
.mision-vision {
  background-color: #fff;
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.mision,
.vision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.mision .texto,
.vision .texto {
  background-color: #d3e4d7;
  padding: 25px;
  border-radius: 4px;
  max-width: 500px;
  font-size: 1rem;
  text-align: center;
}

.mision img,
.vision img {
  width: 100px;
  height: auto;
  margin: 20px;
}

.separador {
  border: none;
  border-top: 1px solid #333;
  margin: 40px auto;
  width: 60%;
}

.mision h3,
.vision h3 {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: normal;
}

/* Responsivo */
@media (max-width: 768px) {
  .mision,
  .vision {
    flex-direction: column;
    text-align: center;
  }

  .mision img,
  .vision img {
    margin-bottom: 20px;
  }
}

/* Contenedor de marcas */
.marcas-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC */
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
}

/* Contenedor de productos */
.productos-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas en PC */
  gap: 20px;
  width: 100%;
  max-width: 1400px; /* un poco más ancho */
  margin: 40px auto;
}

/* Responsividad para productos */
@media (max-width: 1400px) {
  .productos-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .productos-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .productos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .productos-container {
    grid-template-columns: 1fr;
  }
}


/* Tarjeta individual */
.marca-card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* 🔑 Ajuste flexible sin altura fija */
  display: flex;
  flex-direction: column;
}

/* Imagen de la marca */
.marca-card img {
  width: 100%;
  max-width: 140px;
  height: 70px;         /* todas las imágenes ocupan lo mismo */
  object-fit: contain;
  margin: 0 auto 15px;
}

/* Texto descriptivo */
.marca-card p {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;

  /* 🔑 Expande el texto pero mantiene consistencia */
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Botón */
.marca-card a {
  display: inline-block;
  padding: 8px 15px;
  background: #8cc63f;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.marca-card a:hover {
  background: #6fa62f;
}

/* Hover */
.marca-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsividad */
@media (max-width: 1200px) {
  .marcas-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .marcas-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .marcas-container {
    grid-template-columns: 1fr;
  }
}

/* Redes sociales */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links li {
  margin: 8px 0;
}

.social-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

/* Colores oficiales */
.social-links a i.fa-instagram {
  color: #E4405F; /* Instagram */
}

.social-links a i.fa-facebook {
  color: #1877F2; /* Facebook */
}

.social-links a i.fa-linkedin {
  color: #0A66C2; /* LinkedIn */
}

/* Efecto hover → texto también toma el color del icono */
.social-links a:hover {
  color: inherit; /* evita cambio inesperado */
  font-weight: bold;
}

/* Fondo del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* Contenedor del contenido */
.modal-content {
  background: #f9f9f9;
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
  animation: aparecer 0.3s ease-out;
}

/* Animación de aparición */
@keyframes aparecer {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Botón de cerrar */
.cerrar {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

/* Formulario */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

.modal-content input,
.modal-content textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
}
/* Solo aplica al campo de mensaje dentro del modal */
.modal-content form textarea[name="mensaje"] {
  resize: none;              /* 🔒 Evita cambiar el tamaño con el mouse */
  min-height: 100px;         /* Altura fija */
  max-height: 100px;
  overflow-y: auto;          /* Scroll si el texto excede */
  width: 100%;               /* Asegura que se alinee con los otros inputs */
  box-sizing: border-box;    /* Evita que se salga del contenedor */
}


.modal-content button {
  background: #8cc63f;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: #6da630;
}

/* Mensaje de estado */
.mensaje-estado {
  display: none;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
}

.mensaje-estado.exito {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mensaje-estado.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}



/* Contenedor de la imagen en producto.html */
.producto-imagen {
  width: 100%;
  max-width: 400px;   /* ancho máximo en escritorio */
  height: 350px;      /* alto fijo */
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f9f9f9; /* un fondo suave para imágenes con transparencia */
  overflow: hidden;
}

/* Imagen dentro del contenedor */
.producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* se ajusta sin deformarse */
}

/* === Footer QR === */
.footer-qr {
  text-align: center;
  grid-column:span 2;
}

.footer-qr h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.footer-qr .qr-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  transition: transform 0.3s ease;
}

.footer-qr .qr-image:hover {
  transform: scale(1.05);
}

/* Ajuste del grid de columnas del footer */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: start;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-qr {
    margin-top: 20px;
  }

  .footer-qr .qr-image {
    width: 90px;
    height: 90px;
  }
}


/* === HEADER TEXTIL === */
.navbar-textil {
  background-color: #8dd8dc;
  color: #000;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-textil .logo img {
  height: 45px;
  transition: transform 0.3s ease;
}

.navbar-textil .logo img:hover {
  transform: scale(1.05);
}

.navbar-textil .nav-links a {
  color: #000;
  font-weight: 600;
}

.navbar-textil .nav-links a:hover {
  color: #004f5a;
}

.navbar-textil .dropdown-menu {
  background: #e0f6f7;
  border: 1px solid #8dd8dc;
}

.navbar-textil .dropdown-menu a:hover {
  background-color: #8dd8dc;
  color: white;
}

.search-box input {
  border: 1px solid #006b77;
}
/* === CATÁLOGO TEXTIL === */
.productos-textil {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
}

.catalogo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
}

.catalogo-item {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalogo-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.catalogo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.catalogo-item p {
  margin-top: 10px;
  font-weight: 500;
  color: #333;
}

/* Botón */
.boton-cotizacion {
  margin-top: 40px;
}

.btn-contacto {
  background: #008c95;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-contacto:hover {
  background: #00727a;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

.modal-contenido h2 {
  margin-bottom: 20px;
  color: #008c95;
}

.modal-contenido input,
.modal-contenido textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.modal-contenido button {
  background: #008c95;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.modal-contenido button:hover {
  background: #00727a;
}

/* ============================= */
/* COOKIE BANNER */
/* ============================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e1e1e;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 9999;
  box-sizing: border-box;
  flex-wrap: wrap; /* 👈 CLAVE */
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1; /* 👈 permite que el texto se adapte */
}

.cookie-banner a {
  color: #8dd8dc;
  text-decoration: underline;
}

.cookie-banner button {
  background: #8dd8dc;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap; /* 👈 evita que el texto del botón se rompa */
}

.cookie-banner button:hover {
  background: #76c7cb;
}

/* ============================= */
/* RESPONSIVO */
/* ============================= */

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner button {
    width: 100%;
    text-align: center;
  }
}

/* ============================= */
/* AVISO DE PRIVACIDAD */
/* ============================= */

.aviso-privacidad {
  max-width: 900px;
  margin: 40px auto 80px;
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  line-height: 1.7;
}

.aviso-privacidad h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #007b7f;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.aviso-privacidad section {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}

.aviso-privacidad section:last-child {
  border-bottom: none;
}

.aviso-privacidad h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #004d4d;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icono antes de cada título */
.aviso-privacidad h2::before {
  content: "•";
  color: #8dd8dc;
  font-size: 1.8rem;
  line-height: 1;
}

.aviso-privacidad p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
}

.aviso-privacidad ul {
  padding-left: 20px;
  margin: 10px 0 15px;
}

.aviso-privacidad ul li {
  margin-bottom: 8px;
  list-style: disc;
  color: #444;
}

.aviso-privacidad strong {
  color: #000;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .aviso-privacidad {
    padding: 25px 20px;
    margin: 20px auto 50px;
  }

  .aviso-privacidad h1 {
    font-size: 1.7rem;
  }

  .aviso-privacidad h2 {
    font-size: 1.1rem;
  }

  .aviso-privacidad p,
  .aviso-privacidad li {
    font-size: 0.95rem;
  }
}
.opciones {
  padding: 30px 20px;
  background: #f4f6f8;
}

.opciones-container {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.opcion-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 420px;
  min-height: 160px;
  padding: 30px;

  background: linear-gradient(135deg, #ffffff, #f1f3f6);
  color: #1a1a1a;

  text-decoration: none;
  font-size: 26px;
  font-weight: 600;
  text-align: center;

  border-radius: 18px;
  border: 2px solid #d0d7de;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  transition: all 0.35s ease;
}
.opcion-industrial:hover {

  background: #e5f0e7;
  color: #1a1a1a;

  border-color: #b7d3bb;

  transform: translateY(-8px) scale(1.03);

  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.opcion-textil:hover {

  background: #8dd8dc;
  color: #1a1a1a;

  border-color: #5bbec4;

  transform: translateY(-8px) scale(1.03);

  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ============================= */
/* TABLETS Y MONITORES PEQUEÑOS */
/* ============================= */

@media (max-width: 1024px){

  .opciones-container{
    gap:25px;
  }

  .opcion-btn{
    width:360px;
    min-height:140px;
    font-size:22px;
    padding:25px;
  }

}

/* ============================= */
/* CELULARES */
/* ============================= */

@media (max-width: 600px){

  .opciones-container{
    flex-direction:column;
    align-items:center;
    gap:20px;
  }

  .opcion-btn{
    width:100%;
    max-width:420px;
    min-height:120px;
    font-size:20px;
    padding:20px;
  }

}