/* ============================================================
   styles.css — NV Impresion
   Estructura:
   1. Reset & Base
   2. Componentes globales
   3. Secciones — Index
   4. Secciones — Producto
   5. MÓVIL (base, < 768px)
   6. TABLET (>= 768px)
   7. DESKTOP (>= 1024px)
   8. DESKTOP GRANDE (>= 1200px)
============================================================ */

/* ── 1. RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

#top {
  background: #ffffff;
}

a {
  text-decoration: none;
  color: black;
}

h2 {
  font-size: 1.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 20px;
}

h3 {
  text-align: center;
  font-size: 1.22em;
  font-weight: 500;
  letter-spacing: 0.03em;
}

h4 {
  font-size: 1.3em;
  font-weight: 600;
}

/* ── 2. COMPONENTES GLOBALES ── */

/* Header */
#cabeza {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  color: #fff;
  background: #1889ec;
  padding: 8px;
  font-size: 0.85em;
  font-weight: 300;
  letter-spacing: 0.1em;
}

#cabeza a {
  padding: 0.6em;
}

/* Nav */
#navegador {
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 5%;
  margin: 10px 0;
  flex-wrap: wrap;
  box-shadow: 0px 3px 6px -4px rgba(35, 35, 35, 0.64);
}

.logo img {
  height: 2.7em;
}

.menu-toggle {
  display: block;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
}

.navegador-lista {
  display: none;
  flex-direction: column;
  align-items: center;
  list-style: none;
  font-size: 1.1em;
  letter-spacing: 0.03em;
  gap: 15px;
  background: #fff;
  position: absolute;
  top: 70px;
  right: 20px;
  width: 90%;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.navegador-lista.active {
  display: flex;
}

.navegador-lista a {
  color: black;
}

.cotiza a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #01c501;
  color: white;
  padding: 10px 20px;
  margin: 0 0.8em;
  border-radius: 30px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cotiza a:hover {
  background: #00a800;
  transform: scale(1.02);
}

.cotiza img {
  height: 1.3em;
}

/* Footer */
#pie {
  width: 100%;
  background: #1889ec;
  color: white;
  margin-top: 30px;
  padding: 10px 0;
}

.pie-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin: 0 5%;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socials img {
  height: 2em;
}

/* Línea divisora */
.linea {
  border-bottom: 2px solid #e0e0e0;
  margin: 35px 30px 28px;
}

/* ── 3. SECCIONES — INDEX ── */

/* Banner */
#reco2 {
  border-radius: 25px;
  width: 100%;
  height: auto;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  object-fit: cover;
}

#reco2 .swiper-button-next,
#reco2 .swiper-button-prev {
  color: #ffffff;
  transition: color 0.3s;
}

#reco2 .swiper-button-next:hover,
#reco2 .swiper-button-prev:hover {
  color: #b8b8b8;
}

#reco2 .swiper-pagination-bullet {
  background-color: #9ca3af;
  opacity: 1;
}

#reco2 .swiper-pagination-bullet-active {
  background-color: #fff;
}

/* Grid de categorías */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.item-productos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.item-productos img {
  position: absolute;
  width: 8.5em;
}

.circulo-productos {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8em;
  width: 8em;
  color: white;
  font-weight: bold;
  margin: 10px 0;
  transition: transform 0.4s ease-out;
}

.circulo-productos:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in;
}

/* Botón cotizar */
#cotizacion {
  font-size: 1.4em;
  letter-spacing: 0.03em;
}

#cotizacion a {
  text-decoration: none;
}

/* Carrusel recomendados */
.reco {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 25px;
  padding: 0.5px 20px 15px;
  background: #1889ec;
}

.reco h2 {
  color: #fff;
  margin-bottom: 10px;
}

.reco h3 {
  margin-top: 7px;
}

.reco .swiper {
  margin: 0 20px 12px;
  height: auto;
}

.reco-swiper .swiper-button-next,
.reco-swiper .swiper-button-prev {
  color: #ffffff;
}

.reco-swiper .swiper-button-next:hover,
.reco-swiper .swiper-button-prev:hover {
  color: #b8b8b8;
}

/* Cards recomendados */
.reco-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: black;
  margin-bottom: 15px; 
}

.reco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.reco-card-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.reco-card-img img {
  width: 80%;   
  object-fit: contain;
  transition: transform 0.3s ease;
}

.reco-card:hover .reco-card-img img {
  transform: scale(1.05);
}

.reco-card-nombre {
  padding: 12px 16px;
  font-size: 0.95em;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Nosotros */
.nosotros-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.persona {
  display: flex;
  justify-content: center;
  width: 50%;
  margin: 10px 0;
}

.persona img {
  margin-bottom: 10px;
  width: 100%;
  height: auto;
  max-width: 300px;
}

.info {
  border-radius: 25px;
  background: #f5f5f5;
  padding: 30px;
}

.info h4{
  margin-bottom: 0.4em;
}

.info p{
  font-size: 1.2em;
}

/* Contacto */
.contactanos-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin: 20px 5% 0;
  gap: 20px;
}

.contactanos-wrapper iframe {
  border: 0;
  border-radius: 25px;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.contactanos-info {
  position: relative;
  background: #1889ec;
  width: 100%;
  color: white;
  padding: 20px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

.contactanos-info h4 {
  font-size: 1.2em;
}

.contactanos-info p {
  font-weight: 300;
  font-size: 1.15em;
  margin-bottom: 0.6em;
}



/* ── 4. SECCIONES — PRODUCTO ── */

/* Hero */
#producto-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #ffffff;
  padding: 20px;
  margin: 20px 12px;
  box-shadow: none;
}

.hero-foto {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  background: #dfdfdf;
}

.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
}

.hero-info h1 {
  text-decoration: underline;
  text-underline-offset: 7px;
  font-size: 2em;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: .4em;
}

.hero-info .descripcion {
  font-size: 1.2em;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  text-align: center;
}

.acabados-titulo {
  font-size: 1.5em;
  font-weight: 600;
  color: #111;
  text-align: center;
}

.acabados-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.acabado-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.acabado-circulo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: solid #dddddd 3px;
}

.acabado-circulo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acabado-item span {
  font-size: 1.2em;
  font-weight: 400;
  color: #333;
  text-align: center;
}

.hero-boton {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.hero-boton a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #01c501;
  color: #fff;
  font-size: 1.3em;
  font-weight: 400;
  padding: 11px 28px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-boton a:hover {
  background: #00a800;
  transform: scale(1.03);
}

.hero-boton img {
  height: 1.3em;
}

/* ── 5. TABLET (>= 768px) ── */
@media (min-width: 768px) {

  /* Grid categorías */
  .grid-productos {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .circulo-productos {
    width: 11.5em;
    height: 11.5em;
  }

  .item-productos img {
    width: 13.5em;
  }
}

/* ── 6. DESKTOP (>= 1024px) ── */
@media (min-width: 1024px) {

  /* Header */
  #cabeza {
    justify-content: center;
    font-size: 1em;
    padding: 10px 0;
  }

  #cotizacion-header {
    display: none;
  }

  /* Nav */
  #navegador {
    padding: 10px 40px;
    margin: 16px 0;
  }

  .menu-toggle {
    display: none;
  }

  .navegador-lista {
    position: static;
    display: flex !important;
    flex-direction: row;
    width: auto;
    gap: 40px;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

    .navegador-lista #galeria{
    font-weight: 400;
  }

  .navegador-lista #galeria:hover {
    color: #333;
    text-decoration: underline #6d6d6d solid 2px;
    text-underline-offset: 5px;
  }

  .cotiza a {
    padding: 10px 22px;
  }

  /* Banner */
  #reco2 {
    max-width: 1200px;
    margin: 0 auto 24px;
  }

  .swiper-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
  }

  /* Botón cotizar — ocultar en desktop */
  #cotizacion {
    display: none;
  }

  /* Carrusel */
  .reco {
    padding: 8px 40px 20px;
  }

  .reco .swiper {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Nosotros */
  .nosotros-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 40px;
  }

  .persona {
    width: 19%;
    margin: 0;
    justify-content: flex-start;
  }

  .persona img {
    max-width: 100%;
  }

  .info {
    flex: 1;
    border-radius: 10px;
  }

  /* Contacto */
  .contactanos-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 40px;
  }

  .contactanos-wrapper iframe {
    width: 60%;
    height: 380px;
    min-height: 380px;
  }

  .contactanos-info {
    width: 40%;
    padding: 28px;
    border-radius: 10px;
  }

  /* Footer */
  #pie {
    padding: 18px 0;
  }

  .pie-wrapper {
    flex-direction: row;
    text-align: left;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .socials {
    justify-content: flex-start;
  }

  /* Hero producto */
  #producto-hero {
    flex-direction: row;
    gap: 48px;
    padding: 40px;
    max-width: 1100px;
    margin: 40px auto;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }

  .hero-foto {
    flex: 0 0 380px;
    height: 100%;
    width: 100%;
    border-radius: 50%;
  }

  .hero-foto img {
    border-radius: 18px;
  }

  .hero-info {
    gap: 16px;
    padding-top: 8px;
  }

  .hero-info h1 {
    font-size: 2em;
    text-align: left;
  }


  .hero-info .descripcion {
    text-align: left;
  }

  .acabados-titulo {
    text-align: left;
  }

  .acabados-grid {
    justify-content: flex-start;
    gap: 20px;
  }

  .acabado-circulo {
    width: 130px;
    height: 130px;
  }

  .hero-boton {
    justify-content: flex-start;
  }
}

/* ── 7. DESKTOP GRANDE (>= 1200px) ── */
@media (min-width: 1200px) {

  /* Grid categorías */
  #contenedor-productos {
    max-width: 1200px;
    margin-inline: auto;
  }

  .grid-productos {
    justify-content: space-around;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .circulo-productos {
    width: 12.5em;
    height: 12.5em;
  }

  .item-productos img {
    width: 13em;
  }


  .reco-card-img {
  display: flex;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}

  .reco-card-img img {
  width: 80%;   
  object-fit: contain;
  transition: transform 0.3s ease;
}


}


/* ── GALERÍA ── */
#galeria {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
 
.desc {
  text-align: center;
  font-size: 1.2em;
}

/* Masonry con columns */
.galeria-grid {
  column-count: 2;
  column-gap: 12px;
  margin-top: 20px;
}
 
.galeria-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.galeria-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
 
.galeria-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}
 
.galeria-card:hover img {
  transform: scale(1.03);
}
 
.galeria-nombre {
  font-size: 0.85em;
  font-weight: 500;
  color: #333;
  text-align: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 0 0 14px 14px;
}
 
/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}
 
.lightbox-overlay.activo {
  display: flex;
}
 
.lightbox-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 90vw;
  max-height: 90vh;
}
 
.lightbox-contenido img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}
 
.lightbox-contenido p {
  color: #fff;
  font-size: 1em;
  font-weight: 400;
  text-align: center;
}
 
.lightbox-cerrar {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
 
.lightbox-cerrar:hover {
  opacity: 1;
}
 
/* Galería — Tablet */
@media (min-width: 768px) {
  .galeria-grid {
    column-count: 3;
    column-gap: 16px;
  }
}
 
/* Galería — Desktop */
@media (min-width: 1024px) {
  .galeria-grid {
    column-count: 4;
    column-gap: 20px;
  }
 
  .galeria-card {
    margin-bottom: 20px;
  }
}
