/* ============================================================
   PIMPOLLO.CSS — estilos propios del sitio público
   Cargado después de style.css para poder sobreescribir.
   ============================================================ */

/* Ocultar visualmente pero mantener accesible para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  font-size: .92rem;
}

.footer-main {
  padding: 52px 0 36px;
}

.footer-col {
  margin-bottom: 28px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 14px;
  display: block;
}

.footer-tagline {
  color: #999;
  font-size: .88rem;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 193, 7, .12);
  color: #ffc107;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: 1px solid rgba(255, 193, 7, .3);
}

.footer-social a:hover {
  background: #ffc107;
  color: #1a1a1a;
  text-decoration: none;
}

.footer-heading {
  color: #ffc107;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 193, 7, .2);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-links li a {
  color: #aaa;
  text-decoration: none;
  transition: color .2s;
}

.footer-links li a:hover {
  color: #ffc107;
}

.footer-links .fi {
  color: #ffc107;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin: 0;
}

.footer-copy {
  background: #111;
  padding: 16px 0;
  font-size: .82rem;
  color: #888;
  text-align: center;
}

.footer-copy p {
  margin: 0;
}

.footer-copy strong {
  color: #ffc107;
  font-weight: 600;
}

/* ===== PORTADA FIJA (index.php) ===== */
.portada-wrap {
  width: 100%;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.portada-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== CAROUSEL DE PRODUCTOS (index.php) ===== */
.carousel-prod-img {
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

#productosCarousel .carousel-control-prev,
#productosCarousel .carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 193, 7, .82);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#productosCarousel .carousel-control-prev { left: 16px; }
#productosCarousel .carousel-control-next { right: 16px; }

#productosCarousel .carousel-control-prev:hover,
#productosCarousel .carousel-control-next:hover {
  background: #ffc107;
}

/* ===== HERO SLIDER (index.php) — OBSOLETO, reservado ===== */
#heroCarousel {
  position: relative;
  height: 90vh;
  min-height: 440px;
  background: #111;
  overflow: hidden;
}

#heroCarousel .owl-stage-outer,
#heroCarousel .owl-stage,
#heroCarousel .owl-item {
  height: 100%;
}

.hero-slide {
  height: 90vh;
  min-height: 440px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.18) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  line-height: 1.6;
}

/* Nav arrows */
#heroCarousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 10;
}

#heroCarousel .owl-nav button {
  pointer-events: all;
  background: rgba(255, 193, 7, .82) !important;
  border-radius: 50% !important;
  width: 48px;
  height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff !important;
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
  outline: none;
  line-height: 1;
}

#heroCarousel .owl-nav button:hover {
  background: #ffc107 !important;
  transform: scale(1.1);
}

/* Dots */
#heroCarousel .owl-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

#heroCarousel .owl-dot span {
  background: rgba(255, 255, 255, .45) !important;
  transition: background .2s;
}

#heroCarousel .owl-dot.active span,
#heroCarousel .owl-dot:hover span {
  background: #ffc107 !important;
}

/* ===== SECCIÓN PRODUCTOS (index.php) ===== */
.sec-productos {
  background: #fff;
  padding: 56px 0;
}

.sec-titulo {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: .4rem;
}

.sec-subtitulo {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

.sec-sep {
  display: block;
  width: 48px;
  height: 4px;
  background: #ffc107;
  border-radius: 2px;
  margin: 1rem auto 2.5rem;
}

.categoria-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  background: #fff;
  margin-bottom: .5rem;
}

.categoria-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 32px rgba(0,0,0,.13);
  text-decoration: none;
}

.cat-img-wrap {
  background: #f5f5f5;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.cat-img-wrap img {
  max-height: 112px;
  max-width: 100%;
  object-fit: contain;
}

.cat-label {
  background: #ffc107;
  color: #1a1a1a;
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 8px;
  text-align: center;
  letter-spacing: .2px;
}

/* ===== SECCIÓN COBERTURA (index.php) ===== */
.cobertura-header {
  background: #1a1a1a;
  padding: 60px 0 50px;
}

.cobertura-header .sec-titulo  { color: #fff; }
.cobertura-header .sec-subtitulo { color: #999; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem 0 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 3.4rem;
  font-weight: 800;
  color: #ffc107;
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-top: .35rem;
}

.ciudades-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin: 1.6rem 0 2.2rem;
}

.ciudad-badge {
  border: 1.5px solid #ffc107;
  color: #ffc107;
  border-radius: 20px;
  padding: .36rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
}

.mapa-wrap iframe {
  display: block;
}

.mapa-consent {
  height: 500px;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: #555;
  text-align: center;
  padding: 20px;
}
.mapa-consent i {
  font-size: 3rem;
  color: #ffc107;
  display: block;
}
.mapa-consent p {
  font-size: 1rem;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #heroCarousel,
  .hero-slide {
    height: 72vh;
    min-height: 340px;
  }

  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p  { font-size: .92rem; }

  .stats-row { gap: 1.4rem; }
  .stat-num  { font-size: 2.5rem; }
  .sec-titulo { font-size: 1.75rem; }

  .footer-col { margin-bottom: 20px; }
  .footer-tagline { max-width: 100%; }
}

/* ===== PAGE HERO (páginas interiores) ===== */
.page-hero {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.page-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .62);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.page-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ===== NOSOTROS — VIDEO ===== */
.nosotros-video-section {
  background: #fff;
  padding: 52px 0;
  border-top: 4px solid #ffc107;
}

.video-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,.14);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ===== NOSOTROS — HISTORIA ===== */
.nosotros-historia {
  padding: 64px 0;
  background: #fff;
}

.historia-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.nosotros-badge {
  display: inline-block;
  background: #ffc107;
  color: #1a1a1a;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .3rem .9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.nosotros-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}

.nosotros-texto {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

/* ===== NOSOTROS — VALORES ===== */
.nosotros-valores {
  padding: 56px 0 64px;
  background: #f7f7f7;
}

.valor-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  height: 100%;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

.valor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
}

.valor-icon {
  width: 64px;
  height: 64px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 1.6rem;
  color: #1a1a1a;
}

.valor-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.valor-texto {
  font-size: .95rem;
  line-height: 1.75;
  color: #666;
  margin: 0;
}

/* ===== BARRA DE FILTROS (productos + sucursales) ===== */
.filtros-bar {
  background: #fff;
  padding: 18px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 90;
}

.filtros-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.filtro-btn {
  padding: 7px 18px;
  border-radius: 24px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.2;
}

.filtro-btn:hover {
  border-color: #ffc107;
  color: #1a1a1a;
  background: #fff9e6;
}

.filtro-btn.activo {
  background: #ffc107;
  border-color: #ffc107;
  color: #1a1a1a;
}

/* ===== GRID DE PRODUCTOS ===== */
.productos-section {
  background: #f4f4f4;
  padding: 32px 0 56px;
}

.prod-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
}

.prod-img-wrap {
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 155px;
  flex-shrink: 0;
  overflow: hidden;
}

.prod-img-wrap img {
  max-height: 115px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .2s;
}

.prod-card:hover .prod-img-wrap img {
  transform: scale(1.07);
}

.prod-card-body {
  padding: 10px 12px 13px;
  border-top: 3px solid #ffc107;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-name {
  font-size: .82rem;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

/* ===== GRID DE SUCURSALES ===== */
.sucursales-section {
  background: #f4f4f4;
  padding: 32px 0 56px;
}

.suc-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}

.suc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
}

.suc-gallery { display: block; }

.suc-img-wrap {
  position: relative;
  overflow: hidden;
  height: 160px;
  cursor: pointer;
}

.suc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}

.suc-card:hover .suc-img-wrap img {
  transform: scale(1.06);
}

.suc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.suc-overlay i {
  color: #fff;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity .2s;
}

.suc-card:hover .suc-overlay {
  background: rgba(0,0,0,.35);
}

.suc-card:hover .suc-overlay i {
  opacity: 1;
}

.suc-foto-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.suc-card-body {
  padding: 10px 12px;
  border-top: 3px solid #ffc107;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suc-num-badge {
  background: #ffc107;
  color: #1a1a1a;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.suc-ciudad {
  font-size: .82rem;
  font-weight: 600;
  color: #555;
}

/* ===== CONECTADOS — HERO ===== */
.conectados-hero {
  position: relative;
  height: 340px;
  background: linear-gradient(135deg, #ffc107 0%, #f0a800 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.conectados-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.conectados-hero-content {
  position: relative;
  z-index: 1;
  color: #1a1a1a;
}

.conectados-eyebrow {
  display: inline-block;
  background: rgba(0,0,0,.12);
  color: #1a1a1a;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: .25rem .8rem;
  border-radius: 4px;
  margin-bottom: .8rem;
}

.conectados-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 .6rem;
  line-height: 1.15;
  color: #1a1a1a;
}

.conectados-hero-content p {
  font-size: 1.1rem;
  color: rgba(0,0,0,.6);
  margin: 0;
}

/* ===== CONECTADOS — FUNDACIÓN ===== */
.conectados-fundacion {
  padding: 72px 0;
  background: #fff;
}

.fundacion-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 32px rgba(0,0,0,.1);
  border: 4px solid #ffc107;
}

.conectados-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
  line-height: 1.25;
}

.conectados-texto {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.conectados-cta-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.6rem 0 1rem;
}

.conectados-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .15s, box-shadow .15s;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  text-decoration: none;
}

.social-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.social-fb {
  background: #f0f4ff;
  color: #1a3a8c;
  border: 1.5px solid #c5d2f5;
}

.social-ig {
  background: #fff0f8;
  color: #9b2068;
  border: 1.5px solid #f0c0dc;
}

/* ===== CONECTADOS — IMPACTO ===== */
.conectados-impacto {
  padding: 56px 0 72px;
  background: #f7f7f7;
}

.impacto-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}

.impacto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.impacto-icon {
  width: 64px;
  height: 64px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.impacto-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: .8rem;
}

.impacto-card p {
  font-size: .9rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}
