/* --- Variables de Color y Fuentes (Personaliza según tu marca) --- */
:root {
    --color-primario: #272727; /* Azul corporativo oscuro (ejemplo) */
    --color-secundario: #000000; /* Azul más brillante para acentos (ejemplo) */
    --color-fondo-seccion: #141414da; /* Un gris muy claro o blanco */
    --color-texto-principal: #212529;
    --color-texto-secundario: #495057;
    --color-blanco: #ffffff;
    --fuente-principal: 'Montserrat', sans-serif; /* Fuente moderna y profesional */
    --fuente-titulos: 'Roboto Slab', serif; /* Fuente con serifa para títulos, da peso */
}

section-title/* Estilos generales  #ff4a02 */
body {
    font-family: sans-serif;
    color: #f8f9fa; /* Gris claro para el texto principal */
    background-color: #000000; /* Gris oscuro de fondo */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

 
main{
    /* background-image: linear-gradient(to top, var(--color-secundario), var(--color-primario));*/
    background-color: #181b1f;
    
}

.contenido-principal {
text-align: center;
text-align: center;
 padding: 60px 0;
 padding-left: 150px;
}
.Optimiza{
    width: 50%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;  
    
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: bold;
}

p {
    margin-bottom: 1.5rem;
    color: #adb5bd; /* Gris más claro para párrafos */
}
section .feature-item p{
    color: orangered;
}

a {
    color: #ffc107; /* Naranja para enlaces */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #e0a800;
}

/* Hero de Productos */
.hero-productos {
    background-color: #343a40; /* Gris oscuro secundario */
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.hero-productos h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-productos p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-productos img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Sección de Categorías */
#product-categories {
    padding: 50px 0;
    text-align: center;
    
}

#product-categories h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color:  #ff4a02; 
}


.product-categories .container{
    background-color: #181b1f;
}
.tipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tipo-lona {
    background-color: #343a40;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.tipo-lona::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro para legibilidad del texto */
    z-index: 1;
}

.tipo-lona > * {
    z-index: 2;
    position: relative;
}

.tipo-lona:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.tipo-lona h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tipo-lona p {
    font-size: 0.9rem;
    color: #eee;
}

/* Sección de Productos Destacados */
#featured-products {
    padding: 50px 0;
    text-align: center;
}

#featured-products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.producto-innovador {
    background-color: #343a40;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.producto-innovador:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Placeholder para la imagen del producto */
.producto-innovador::before {
    content: "Lona por Rolloss";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #adb5bd;
    font-size: 1rem;
    background-color: #495057; 
    border-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 100%;
    height: 10%;
}

/* Sección de Características Clave */
#key-features {
    padding: 50px 0;
    background-color: #181b1f;
    text-align: center;
}

#key-features h2 {
    font-size: 2rem;
    margin-bottom: 2rem; 
}
#key-features h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem; 
    color: white;
}
.features .container{
    background-color: rgb(17, 18, 22);
    padding: 0;
}
#key-features p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: white;
}
.features h3{
    color: rgb(255, 81, 0);
}

.features img{
    background-color: rgba(255, 95, 2, 0.87);
    border-style:ridge;
    border-color: rgb(61, 61, 61);
    width: 350px;
    height: auto;
  
}
.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.caracteristica {
    padding: 20px;
    text-align: center;
}

.caracteristica i {
    font-size: 2rem; /* Placeholder para iconos */
    color: #ffc107;
    margin-bottom: 1rem;
    display: block;
}

.caracteristica h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.caracteristica p {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Sección de Aplicaciones */
#applications {
    padding: 50px 0;
}

#applications h2 {
    font-size: 12rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fa4812;
}

.aplicaciones-lista {
    display: flex;
    gap: 30px;
    align-items: center;
}

.aplicaciones-lista ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.aplicaciones-lista li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #495057;
}

.aplicaciones-lista li:last-child {
    border-bottom: none;
}

.aplicaciones-lista img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex: 1;
}

/* Llamada a la Acción */
.call-to-action {
    background-color: #343a40;
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
    margin-top: 30px;
}

.call-to-action h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.boton-contacto {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffc107;
    color: #212529;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.boton-contacto:hover {
    background-color: #e0a800;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Diseño Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-productos {
        padding: 60px 15px;
    }

    .hero-productos h1 {
        font-size: 2rem;
    }

    .tipos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    #featured-products h2,
    #key-features h2,
    #applications h2,
    .call-to-action h2 {
        font-size: 1.8rem;
    }

    .aplicaciones-lista {
        flex-direction: column;
        gap: 20px;
    }

    .aplicaciones-lista img {
        max-width: 100%;
    }
}

/* Animaciones Sutiles (Ejemplos) */
 

.producto-innovador img {
    transition: transform 0.3s ease-in-out;
}

.producto-innovador:hover img {
    transform: scale(1.05);
}

@media only screen and (min-width: 340px) and (max-width: 768px) {
.navbar-nav{
    background-color: #212529;
    padding: 15px;
}

.features img{
    /* background: radial-gradient(circle at center, #0000008a, #fa570c), url('..//img/rollo2.JPG'); /* Overlay oscuro para mejorar el contraste */
    
    width: 100px;
    height: auto;
    border-style: solid;
    border-color: rgb(245, 150, 9);  
} 

 .features p  {
    font-size: 0.9rem; /* Ajusta el tamaño del texto si es necesario en pantallas muy pequeñas */
  }

  .features .col-md-4 p{
    font-size: 9px;

  }
  .features row{
    display: flex;
  flex-wrap: nowrap; /* Evita que los elementos pasen a la siguiente línea */
  margin-left: -15px;
  margin-right: -15px;

  }

  #product-categories h2 {
    font-size: 1.5em;
    margin-bottom: 2rem;
    color:  #ff4a02;
}


  .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
    width: 33.333%; /* Intenta ocupar un tercio del ancho */
    box-sizing: border-box;
    text-align: center; /* Centra el contenido horizontalmente */
  }
  .img-fluid {
    max-width: 60px; /* Ajusta el tamaño de la imagen en pantallas muy pequeñas */
  }

  .features ion-icon {
    font-size: 1.5rem; /* Ajusta el tamaño de los íconos en pantallas muy pequeñas */
  }

  .col-md-4 p {
    font-size: 1rem; /* Ajusta el tamaño del texto en pantallas muy pequeñas */
  }

}


.image-container {
    width: 300px; /* Ajusta el ancho según necesites */
    margin: 20px auto;
    overflow: hidden;
    position: relative;
  }
  
  .image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
  }
  
  .image-container:hover img {
    transform: scale(1.05);
  }
  
  .image-container::before,
  .image-container::after {
    content: '';
    position: absolute;
    background-color: #ff8c00; /* Naranja vibrante */
    z-index: 1;
    width: 100%; /* Cubrir todo el ancho */
    height: 3px; /* Grosor de la línea */
    opacity: 0.7; /* Ligeramente transparente para un toque moderno */
  }
  
  .image-container::before {
    top: 20%; /* Posición desde la parte superior */
    transform: rotate(45deg) translateY(-50%);
  }
  
  .image-container::after {
    bottom: 20%; /* Posición desde la parte inferior */
    transform: rotate(-45deg) translateY(50%);
  }
  
  /* Líneas diagonales adicionales para un efecto más complejo */
  .image-container span::before,
  .image-container span::after {
    content: '';
    position: absolute;
    background-color: #ff8c00; /* Mismo naranja vibrante */
    z-index: 1;
    width: 3px; /* Grosor vertical */
    height: 100%; /* Cubrir toda la altura */
    opacity: 0.7;
  }
  
  .image-container span::before {
    left: 20%;
    transform: rotate(45deg) translateX(-50%);
  }
  
  .image-container span::after {
    right: 20%;
    transform: rotate(-45deg) translateX(50%);
  }
  
  .image-container span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Asegura que las líneas span no se salgan */
  }
  
  /* Estilos específicos para pantallas de 350px */
  @media (max-width: 350px) {
    .image-container {
      width: 90%;
      margin: 15px auto;
    }
  
    .image-container::before,
    .image-container::after {
      height: 2px; /* Líneas más delgadas en pantallas pequeñas */
      opacity: 0.8; /* Un poco más opacas para mejor visibilidad */
    }
  
    .image-container span::before,
    .image-container span::after {
      width: 2px;
      opacity: 0.8;
    }
  }
/* Accesibilidad (Consideraciones - se pueden añadir más según sea necesario) */
/* Asegurar un buen contraste de color entre texto y fondo */
/* Utilizar etiquetas semánticas HTML5 */
/* Proporcionar texto alternativo descriptivo para las imágenes */
/* Hacer que la navegación sea operable con teclado */
/* Indicar visualmente el foco para los elementos interactivos */



/* img */

.hero-productos {
    padding: 80px 0; /* Ajusta el espaciado vertical */
    min-height: 500px; /* Asegura una altura mínima para el contenido */
    width: 100%;
    background:linear-gradient(#ff4a02, #0000006c), url('../img/union.jpg'); /* Overlay oscuro */
    background-position: center; /* Centra la imagen de fondo */
    background-repeat: no-repeat;
    background-size: cover; /* Cubre todo el contenedor, manteniendo la proporción */
    display: flex; /* Para centrar verticalmente el contenido */
    align-items: center; /* Centra verticalmente los elementos */
  }
/*pantala  informCION*/


 
.contenido-principal {
    padding: 20px;
    text-align: center;
}

.contenido-principal h2{
    color: #ff4a02;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 20px auto;
    display: block;
}

.overlay {
    display: none; /* Inicialmente oculto */
    position: fixed; /* Se mantiene en la ventana del navegador */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con opacidad */
    backdrop-filter: blur(5px); /* Efecto de desenfoque del fondo */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    z-index: 10; /* Asegurar que esté por encima de otros elementos */
}

.detalles-contenido {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative; /* Para posicionar el botón de cerrar */
    max-width: 80%; /* Ancho máximo del contenido */
    max-height: 80%; /* Altura máxima del contenido */
    overflow: auto; /* Para contenido que excede el tamaño */
}

.detalles-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.detalles-contenido p {
    font-size: 16px;
    color: #333;
}

.cerrar-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cerrar-btn:hover {
    color: #000;
}








.innovador-productos-destacados {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(250, 72, 17, 0.966);
}

.innovador-productos-destacados h2 {
  font-size: 2em;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.innovador-productos-destacados h2::after  {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: #e67e22; /* Naranja innovador */
  transform: translateX(-50%);
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Todo el prodcu*/
.producto-innovador {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.849);
  transition: transform 0.3s ease-in-out;
}

.producto-innovador:hover {
  transform: translateY(-5px);
}

.producto-innovador .imagen-producto {
  position: relative;
  overflow: hidden; 
}

/*conexion*/
.producto-innovador .imagen-producto img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.producto-innovador:hover .imagen-producto img {
  transform: scale(1.05);
}

.producto-innovador .imagen-producto .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.producto-innovador:hover .imagen-producto .overlay {
  opacity: 1;
}

.producto-innovador .imagen-producto .detalles {
  text-align: center;
  color: #fff;
  padding: 20px;
}

.producto-innovador .imagen-producto .detalles h3 {
  font-size: 1.4em;
  margin-bottom: 5px;
}

.producto-innovador .imagen-producto .detalles p {
  font-size: 0.9em;
  margin-bottom: 15px;
}

.producto-innovador .imagen-producto .detalles .ver-mas {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e67e22;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9em;
  transition: background-color 0.3s ease-in-out;
}

.producto-innovador .imagen-producto .detalles .ver-mas:hover {
  background-color: #d35400;
}

.producto-innovador .caracteristicas-rapidas {
  padding: 15px;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.producto-innovador .caracteristicas-rapidas span {
  display: inline-block;
  margin: 5px 10px;
  font-size: 0.85em;
  color: #555;
}


/* Estilos para la sección de aplicaciones  Aplicaciones Versátiles*/
#applications {
    background-color: #ff7505; /* Un gris muy claro para un fondo sutil */
    padding: 70px 0;
    position: relative;
    overflow: hidden; /* Para contener elementos animados si se añaden */
}

#applications .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#applications .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1; /* Asegurar que el título esté sobre cualquier fondo animado */
}

#applications .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px; /* Espacio entre columnas */
}

#applications .col-md-6:first-child {
    flex: 1 1 45%; /* Ocupa un poco menos de la mitad */
    padding-right: 30px;
}

#applications .col-md-6:last-child {
    flex: 1 1 45%;
}

#applications .list-unstyled {
    padding: 0;
    list-style: none;
    
}

#applications .list-unstyled li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    color: #d35400;
}

#applications .list-unstyled li:last-child {
    border-bottom: none;
}

#applications .list-unstyled li i {
    color: #ffc107; /* Naranja */
    margin-right: 15px;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#applications .list-unstyled li span {
    padding-left: 30px; /* Espacio para el icono */
    display: block;
    color: #555;
    font-weight: 500;
}

#applications .list-unstyled li:hover {
    transform: translateX(5px);
    color: #333;
}

#applications .list-unstyled li:hover i {
    opacity: 1;
}

#applications .img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

#applications .img-fluid:hover {
    transform: scale(1.03);
}


/* Estilo innovador (ejemplo con un fondo sutilmente animado) */
#applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(52, 58, 64, 0.05) 100%); /* Degradado muy suave */
    z-index: 0;
    pointer-events: none; /* Permite la interacción con el contenido */
    animation: subtleBackground 10s infinite alternate;
}

@keyframes subtleBackground {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Media query para pantallas más pequeñas */
@media (max-width: 768px) {
    #applications .row {
        flex-direction: column;
    }

    #applications .col-md-6:first-child,
    #applications .col-md-6:last-child {
        flex: 1 1 100%;
        padding-right: 0;
    }

    #applications .col-md-6:first-child {
        margin-bottom: 30px;
    }

    #applications .list-unstyled li i {
        position: static;
        transform: none;
        margin-right: 10px;
        opacity: 1; /* Mostrar el icono en pantallas pequeñas */
    }

    #applications .list-unstyled li span {
        padding-left: 25px;
    }
}






/*Productos Fortoflex*/

/* Estilos para la sección de productos destacados "Fortoflex" */
#featured-products {
    background-color: #f9f9f9; /* Un gris muy claro de fondo */
    padding: 70px 0;
    position: relative;
    overflow: hidden; /* Para contener elementos animados si se añaden */
}

#featured-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#featured-products .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1; /* Asegurar que el título esté sobre cualquier fondo animado */
}

#featured-products .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Diseño de grid flexible */
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-card a {
    text-decoration: none;
    display: block;
    height: 100%; /* Asegura que el enlace cubra toda la tarjeta */
}

.product-card picture {
    display: block;
    overflow: hidden;
    border-bottom-left-radius:  12px; ;
    border-top-right-radius: 12px;  
    height: 220px; /* Altura un poco mayor */
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.product-card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 220px); /* Ajustar altura según la imagen */
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-text {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-outline-secondary {
    color: #555;
    border-color: #ccc;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn-outline-secondary:hover {
    background-color: #ccc;
    color: #333;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid #eee;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* Estilo innovador (ejemplo con sutiles líneas de fondo) */
#featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 0%, rgba(220, 220, 220, 0.1) 20%, rgba(220, 220, 220, 0.1) 80%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, rgba(220, 220, 220, 0.1) 20%, rgba(220, 220, 220, 0.1) 80%, transparent 100%);
    background-size: 100% 3px, 3px 100%;
    background-repeat: repeat-x, repeat-y;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 768px) {
    #featured-products .section-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }
}



/*diseño overly */
 


/*overlay dos */

/*ventana emergente */
.emergente-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Aplica el efecto de desenfoque */
    z-index: 999; /* Debe estar por debajo de la ventana emergente */
}

.emergente {
    display: none; /* Oculta la ventana emergente por defecto */
    position: fixed; /* Para que se quede en la ventana del navegador */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra la ventana */
    width: 750px;
    height: 500px;
    background-color: #333; /* Fondo gris oscuro */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    overflow: hidden; /* Evita que el contenido se salga */

}

.izquierda {
    width: 50%;
    height: 100%;
}

.izquierda img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el espacio sin deformar demasiado */
}

.derecha {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
}

.derecha h2 {
    color: #ff8c00; /* Color naranja vibrante */
    margin-bottom: 20px;
}

.derecha p {
    color: #fff; /* Color blanco */
    font-size: 16px;
    line-height: 1.6;
}

#cerrarVentana {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#cerrarVentana:hover {
    background-color: #777;
}

@media only screen and (min-width: 340px) and (max-width: 768px) {
    .emergente {
        width: 70%; /* Ocupa la mayoría del ancho */
        max-width: 350px; /* No exceder el ancho de 350px */
        height: auto; /* Ajusta la altura automáticamente */
        flex-direction: column; /* Disposición vertical */
        top: 50%; /* Mantiene el centrado vertical */
        left: 50%; /* Mantiene el centrado horizontal */
        transform: translate(-50%, -50%); /* Mantiene el centrado */
    }

    .izquierda {
        width: 100%;
        height: auto;
        max-height: 300px; /* Limita la altura de la imagen en pantallas pequeñas */
    }

    .derecha {
        width: 100%;
        padding: 20px;
        text-align: center; /* Centra el texto horizontalmente */
    }

    .derecha h2 {
        margin-bottom: 10px;
        font-size: 1.5em; /* Reduce el tamaño del título */
    }

    .derecha p {
        font-size: 10px; /* Reduce el tamaño de la descripción */
    }
    
    }