/* TIPUANAS — pages.css v10 */

/* PAGE HERO */
.page-hero {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
}
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transform: none !important;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: rgba(36,29,24,0.42);
}
.page-hero .container {
  position: relative; z-index: 2;
  padding-top: 0; padding-bottom: 0;
}
.page-hero .breadcrumb { padding: 0 0 10px; }
.page-hero .breadcrumb a,
.page-hero .breadcrumb__sep { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb__current { color: rgba(255,255,255,0.9); }
.page-hero__title {
  color: var(--color-blanco);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: 0;
}

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-texto-suave); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-texto-suave); transition: var(--transition); }
.breadcrumb a:hover { color: var(--color-verde); }
.breadcrumb__sep { color: var(--color-borde); }
.breadcrumb__current { color: var(--color-verde); font-weight: 600; }

/* PRODUCTS GRID */
.products-hub { padding: 48px 0 64px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-borde);
  background: var(--color-blanco);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-verde); }
.product-card__img { height: 220px; overflow: hidden; flex-shrink: 0; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product-card__name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--color-espresso); margin-bottom: 6px; }
.product-card__tag { font-size: 14px; color: var(--color-texto-suave); flex: 1; margin-bottom: 14px; line-height: 1.5; }
.product-card__cta { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--color-verde); text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; transition: gap 0.2s ease; }
.product-card:hover .product-card__cta { gap: 8px; }

/* PRODUCT DETAIL */
.product-detail { padding: 48px 0 72px; }
.product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery__main { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-arena); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-title-top { display: none; }
.product-info__name { display: block; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 20px; }
.product-info__desc { font-size: 17px; color: var(--color-texto-suave); line-height: 1.8; margin-bottom: 28px; }
.product-info__sale { font-size: 13px; font-weight: 600; color: var(--color-texto-suave); margin-bottom: 28px; display: flex; align-items: center; gap: 8px; }
.product-info__sale::before { content: ""; display: block; width: 3px; height: 18px; background: var(--color-verde); border-radius: 2px; flex-shrink: 0; }
.product-info__actions { display: flex; flex-direction: column; gap: 12px; }
.product-info__actions .btn { width: 100%; justify-content: center; }
.product-info__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-texto-suave); margin-top: 16px; transition: var(--transition); }
.product-info__back:hover { color: var(--color-verde); }

/* RELATED */
.related { padding: 48px 0; background: var(--color-arena); }
.related h2 { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-borde); background: var(--color-blanco); transition: var(--transition); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-verde); }
.related-card__img { height: 130px; overflow: hidden; }
.related-card__img img { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 12px; }
.related-card__name { font-size: 13px; font-weight: 700; color: var(--color-espresso); }

/* SERVICIOS — intro grid 2 cols */
.svc-intro { padding: 64px 0; }
.svc-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.svc-intro__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.svc-intro__img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.svc-intro__text { }
.service-info__tag,
.badge.badge--verde {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-verde);
  background: var(--color-verde-pale);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* SUSTRATO HS */
.svc-hs { padding: 0 0 64px; background: var(--color-arena); }
.svc-hs .container { padding-top: 56px; }
.svc-hs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.svc-hs__img { border-radius: var(--radius-lg); overflow: hidden; }
.svc-hs__img img { width: 100%; height: 460px; object-fit: cover; display: block; }

/* OTROS SERVICIOS */
.svc-otros { padding: 56px 0; }
.svc-otros__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-otros__card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.svc-otros__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-otros__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-otros__card p {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(36,29,24,0.85), transparent);
  color: white;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 24px 16px 16px; margin: 0;
}

/* CHIPEADO FOTOS */
.chip-fotos {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 16px;
  height: 420px;
}
.chip-fotos__item { border-radius: var(--radius-md); overflow: hidden; }
.chip-fotos__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* GALERÍA — grilla 3 cols uniforme */
.gallery-section { padding: 48px 0 72px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}
.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-grid__item:hover img { transform: scale(1.04); }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.95);
  z-index: 9999;
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lightbox__img-wrap { max-width: 90vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lightbox__img-wrap img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-md); object-fit: contain; display: block; }
.lightbox__close { position: absolute; top: 20px; right: 24px; font-size: 1.3rem; color: white; background: rgba(255,255,255,0.1); border: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox__close:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: white; background: rgba(255,255,255,0.1); border: none; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter { position: absolute; bottom: 20px; color: rgba(255,255,255,0.6); font-size: 13px; font-family: var(--font-display); }

/* CONTACTO */
.contact-info-map { padding: 56px 0 72px; }
.contact-info-map__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: stretch;
}
.contact-info-block h2 { margin-bottom: 32px; }
.contact-detail-item { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-detail-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-verde); margin-bottom: 3px; }
.contact-detail-value { font-size: 16px; color: var(--color-texto-suave); line-height: 1.6; }
.contact-detail-value a { color: var(--color-texto-suave); transition: var(--transition); }
.contact-detail-value a:hover { color: var(--color-verde); }
.contact-map-block { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 320px; }
.contact-map-block iframe { width: 100%; height: 100%; min-height: 320px; border: none; display: block; }

/* FICHA PRODUCTO — título arriba en mobile */


/* SERVICIOS MOBILE */
@media (max-width: 768px) {
  .svc-intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-intro__text { order: 1; }
  .svc-intro__img  { order: 2; }
  .svc-hs__grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-otros__grid { grid-template-columns: 1fr 1fr; }
  .chip-fotos { grid-template-columns: 1fr; height: auto; }
  .chip-fotos__item { height: 260px; }
  .contact-info-map__grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .product-card__img { height: 220px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { height: 120px; }

  /* Ficha producto mobile: título arriba visible, dentro del grid oculto */
  .product-title-top {
    display: block !important;
    font-size: 1.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-espresso);
    margin-top: 20px;
    margin-bottom: 0;
  }
  .product-info__name { display: none !important; }
  .product-detail__grid {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }
  .product-gallery { order: 2; }
  .product-info { order: 3; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .gallery-grid { grid-template-columns: 1fr; }
  .svc-otros__grid { grid-template-columns: 1fr; }
}

/* TIPOGRAFÍAS MÁS GRANDES */
.diff-item__title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--color-espresso); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.diff-item__desc { font-size: 13px; color: var(--color-texto-suave); line-height: 1.5; }
.diff-item__icon { display: block; margin-bottom: 10px; line-height: 1; }

/* UTILIDADES */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* HEADER CONSISTENTE */
.header { height: var(--header-h) !important; }
.header > .container, .header__inner { height: 100% !important; align-items: center !important; }
.header__logo img { height: 30px !important; width: auto !important; flex-shrink: 0; }
.nav__item--wsp .btn { padding: 9px 16px !important; font-size: 11px !important; }
.nav__item--wsp .btn svg { width: 15px !important; height: 15px !important; }

/* ============================================
   SERVICIOS MOBILE — cards una arriba de la otra
   ============================================ */
@media (max-width: 768px) {
  /* Todos los hubs: 1 col en mobile */
  .products-hub .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   COHERENCIA TIPOGRÁFICA — mismos tamaños en todas las páginas
   ============================================ */
/* Títulos H2 de sección */
.svc-intro__text h2,
.svc-hs__text h2,
.contact-info-block h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* Textos de párrafo en servicios */
.svc-intro__text p,
.svc-hs__text p { font-size: 16px; color: var(--color-texto-suave); line-height: 1.8; }

/* servicios-mobile marker */
/* servicios-mobile */

/* Títulos de sección - tamaño coherente */
.reviews__header h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
.steps-section h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
.related h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* CARRUSEL DE PRODUCTO */
.product-carousel { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-arena); }
/* Fotos superpuestas en la misma celda de grilla: quedan una sobre otra sin
   salir del flujo, asi que el contenedor conserva su altura en mobile.
   No hay foto al costado que pueda asomarse. */
.product-carousel__track { display: grid; height: 100%; }
.product-carousel__slide { grid-area: 1 / 1; width: 100%; height: 100%; opacity: 0; transition: opacity 0.35s ease; }
.product-carousel__slide:first-child { opacity: 1; }
.product-carousel__slide.is-active { opacity: 1; }
.product-carousel__slide.is-hidden { opacity: 0; }
.product-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--color-espresso);
  transition: background 0.2s; z-index: 2;
}
.product-carousel__btn:hover { background: white; }
.product-carousel__btn--prev { left: 10px; }
.product-carousel__btn--next { right: 10px; }
.product-carousel__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.product-carousel__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; border: none; }
.product-carousel__dot.active { background: white; }
