/* ============================================================
   public.css — Builder CVCR
   Estilos del frontend público para todas las secciones
   ============================================================ */

/* ─── Reset y base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.site-body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; }

.py-section { padding: var(--section-py) 0; }
.bg-soft { background: #f8fafc; }

/* ─── Helpers de sección ────────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  color: var(--c-text);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-text p {
  color: inherit;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ─── Bootstrap overrides con colores del tema ─────────────── */
.btn-primary {
  background: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--c-primary-dark) !important;
  border-color: var(--c-primary-dark) !important;
}
.btn-outline-primary {
  color: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
}
.btn-outline-primary:hover {
  background: var(--c-primary) !important;
  color: #fff !important;
}

/* ─── HEADER / NAVBAR ───────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
.site-header.header-sticky {
  position: sticky;
  top: 0;
}
.site-header.header-solid {
  background: var(--c-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.site-header.header-transparent {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.site-header.header-transparent.scrolled {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
}
.site-header.header-blur {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.navbar { padding: 14px 0; }

/* Logo */
.site-brand { display: flex; align-items: center; text-decoration: none; }
.site-logo  { max-height: 48px; max-width: 180px; object-fit: contain; }
.site-name-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.header-blur .site-name-text { color: var(--c-text); }

/* Nav links */
.site-nav-link {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.88) !important;
  padding: 7px 10px !important;
  border-radius: 7px;
  transition: background .15s, color .15s !important;
}
.site-nav-link:hover, .site-nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.header-blur .site-nav-link { color: var(--c-text) !important; }
.header-blur .site-nav-link:hover { background: var(--c-primary-light); color: var(--c-primary) !important; }

/* Dropdown */
.site-dropdown {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  margin-top: 6px !important;
}
.site-dropdown-item {
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--c-text) !important;
  transition: background .15s;
}
.site-dropdown-item:hover, .site-dropdown-item.active {
  background: var(--c-primary-light);
  color: var(--c-primary) !important;
}

/* CTA y WhatsApp en navbar */
.nav-cta-btn { font-weight: 700 !important; border-radius: 8px !important; padding: 7px 16px !important; }
.nav-wa-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  font-size: .95rem;
  transition: background .15s, transform .15s;
}
.nav-wa-btn:hover { background: #128c7e; color: #fff; transform: scale(1.1); }
.nav-social-icons { display: flex; align-items: center; gap: 2px; }
.social-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: rgba(255,255,255,.7);
  border-radius: 6px;
  font-size: .9rem;
  transition: color .15s, background .15s;
}
.social-icon-link:hover { color: #fff; background: rgba(255,255,255,.15); }

/* Toggler hamburguesa */
.site-toggler {
  border: none; background: none;
  display: flex; flex-direction: column;
  gap: 5px; padding: 6px; cursor: pointer;
}
.toggler-bar {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ─── OFFCANVAS MOBILE ──────────────────────────────────────── */
.site-offcanvas {
  width: 300px !important;
  border-left: none !important;
}
.offcanvas-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
}
.offcanvas-brand { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; }
.offcanvas-close {
  background: none; border: none;
  color: var(--c-text-muted); font-size: 1rem; cursor: pointer;
}
.offcanvas-body { padding: 16px; display: flex; flex-direction: column; }
.offcanvas-nav  { list-style: none; padding: 0; margin: 0; flex: 1; }
.oc-item { margin-bottom: 2px; }
.oc-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: .9rem; font-weight: 600;
  color: var(--c-text);
  border: none; background: none;
  width: 100%; cursor: pointer;
  transition: background .15s;
  font-family: var(--font-heading);
}
.oc-link:hover, .oc-link.active { background: var(--c-primary-light); color: var(--c-primary); }
.oc-chevron { font-size: .75rem; transition: transform .2s; }
.oc-toggle:not(.collapsed) .oc-chevron { transform: rotate(180deg); }
.oc-child-link {
  display: block; padding: 9px 14px 9px 30px;
  font-size: .875rem; color: var(--c-text-muted);
  border-radius: 8px;
  transition: background .15s;
}
.oc-child-link:hover, .oc-child-link.active { background: var(--c-primary-light); color: var(--c-primary); }
.oc-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.oc-social { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.oc-social .social-icon-link { color: var(--c-text-muted); background: #f1f5f9; }
.oc-social .social-icon-link:hover { color: var(--c-primary); background: var(--c-primary-light); }

/* ─── BREADCRUMBS ───────────────────────────────────────────── */
.site-breadcrumbs {
  background: #f8fafc;
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0;
}
.breadcrumb { font-size: .8rem; }
.breadcrumb-item a { color: var(--c-primary); }
.breadcrumb-item.active { color: var(--c-text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }

/* ─── HERO ──────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center;
  overflow: hidden;
}
[data-height="pequena"],
[data-height="pequeno"]  { min-height: 320px; }
[data-height="mediana"],
[data-height="mediano"]  { min-height: 500px; }
[data-height="grande"]   { min-height: 90vh; }

.hero-overlay {
  position: absolute; inset: 0;
  background: #000; /* fallback; se sobreescribe con style inline */
  z-index: 1;
}
.hero-container { position: relative; z-index: 2; padding: 80px 0; display: flex; align-items: center; }
.hero-content   { max-width: 680px; width: 100%; }

/* ─── Alineación 1 columna — responsive ── */
/* Desktop ≥992px */
@media (min-width: 992px) {
  .hero-main[data-hmalign="izquierda"][data-hmlayout="1col"] > .hero-container { justify-content: flex-start; }
  .hero-main[data-hmalign="centro"][data-hmlayout="1col"]    > .hero-container { justify-content: center; }
  .hero-main[data-hmalign="derecha"][data-hmlayout="1col"]   > .hero-container { justify-content: flex-end; }
}
/* Tablet 768–991px */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-main[data-hmalign-t="izquierda"][data-hmlayout="1col"] > .hero-container { justify-content: flex-start; }
  .hero-main[data-hmalign-t="centro"][data-hmlayout="1col"]    > .hero-container { justify-content: center; }
  .hero-main[data-hmalign-t="derecha"][data-hmlayout="1col"]   > .hero-container { justify-content: flex-end; }
}
/* Móvil <768px */
@media (max-width: 767px) {
  .hero-main[data-hmalign-m="izquierda"][data-hmlayout="1col"] > .hero-container { justify-content: flex-start; }
  .hero-main[data-hmalign-m="centro"][data-hmlayout="1col"]    > .hero-container { justify-content: center; }
  .hero-main[data-hmalign-m="derecha"][data-hmlayout="1col"]   > .hero-container { justify-content: flex-end; }
}
/* Botón sigue la alineación — responsive */
.hero-content .hero-btn-wrap { display: flex; justify-content: flex-start; }
.hero-content.text-center    .hero-btn-wrap { justify-content: center; }
.hero-content.text-end       .hero-btn-wrap { justify-content: flex-end; }
@media (min-width: 768px) {
  .hero-content.text-md-start  .hero-btn-wrap { justify-content: flex-start; }
  .hero-content.text-md-center .hero-btn-wrap { justify-content: center; }
  .hero-content.text-md-end    .hero-btn-wrap { justify-content: flex-end; }
}
@media (min-width: 992px) {
  .hero-content.text-lg-start  .hero-btn-wrap { justify-content: flex-start; }
  .hero-content.text-lg-center .hero-btn-wrap { justify-content: center; }
  .hero-content.text-lg-end    .hero-btn-wrap { justify-content: flex-end; }
}

/* ─── Layout 2 columnas ── */
.hero-content-2col { max-width: 100%; }
/* .hero-btn-wrap alignment for 2col is handled by the .hero-content responsive rules above,
   since every 2col element also carries .hero-content. No duplicate rules here. */
.hero-img-col-wrap {
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: flex;            /* permite alinear la imagen horizontalmente */
  justify-content: center; /* por defecto centrada; override via inline style */
}
.hero-img-col {
  display: block;
  height: auto;
  max-width: 100%;          /* nunca desborda la columna */
  border-radius: var(--radius-lg, 16px);
}

/* ─── CARRUSEL DE BANNERS ──────────────────────────────────── */
.hero-carousel-wrap {
  display: block;    /* Sobreescribe el flex de .section-hero */
  padding: 0;
  min-height: 0;     /* Resetea el min-height del section-hero genérico */
}
.hero-carousel-wrap .carousel {
  width: 100%;
}

/* Altura aplicada directo a los carousel-item para evitar problemas de herencia */
.hero-carousel-wrap[data-height="pequena"] .carousel-item { min-height: 320px; }
.hero-carousel-wrap[data-height="mediana"] .carousel-item { min-height: 500px; }
.hero-carousel-wrap[data-height="grande"]  .carousel-item { min-height: 90vh;  }

.hero-carousel-wrap .carousel-inner {
  width: 100%;
}
.hero-carousel-wrap .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-carousel-wrap .carousel-item.active,
.hero-carousel-wrap .carousel-item-next,
.hero-carousel-wrap .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel-wrap .hero-container {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-carousel-wrap .hero-content {
  text-align: center;
  margin: 0 auto;
}
.hero-carousel-wrap .carousel-control-prev,
.hero-carousel-wrap .carousel-control-next {
  width: 48px;
  opacity: .7;
}
.hero-carousel-wrap .carousel-control-prev:hover,
.hero-carousel-wrap .carousel-control-next:hover {
  opacity: 1;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
}
.hero-btn { font-weight: 700; padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

/* Hero video */
.hero-video-wrap { position: relative; overflow: hidden; }
.hero-video-wrap[data-height="mediana"] { min-height: 600px; }
.hero-video-wrap > .hero-container { width: 100%; }
.hero-video-wrap[data-align="izquierda"] > .hero-container { justify-content: flex-start; }
.hero-video-wrap[data-align="centrado"]  > .hero-container { justify-content: center; }
.hero-video-wrap[data-align="derecha"]   > .hero-container { justify-content: flex-end; }
.hero-video-wrap[data-align="izquierda"] .hero-content { margin-right: auto; }
.hero-video-wrap[data-align="centrado"]  .hero-content { margin-left: auto; margin-right: auto; }
.hero-video-wrap[data-align="derecha"]   .hero-content { margin-left: auto; }
.hero-video-iframe {
  position: absolute;
  top: 50%; left: 50%;
  /* Técnica 16:9: garantiza cobertura total sin barras negras */
  width: 100vw;
  height: 56.25vw;     /* 9/16 del ancho del viewport */
  min-height: 100%;
  min-width: 177.78vh; /* 16/9 del alto del viewport */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  z-index: 0;
}

/* ─── NOSOTROS ──────────────────────────────────────────────── */
.nosotros-img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.nosotros-img { width: 100%; height: 380px; object-fit: cover; display: block; }
.nosotros-video-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ─── SERVICIOS ─────────────────────────────────────────────── */
.servicio-card {
  padding: 28px 24px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.servicio-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.servicio-icon {
  width: 52px; height: 52px;
  background: var(--c-primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.servicio-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.servicio-text  { font-size: .875rem; color: var(--c-text-muted); line-height: 1.6; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-item {
  border: 1.5px solid var(--c-border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-text) !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 16px 20px;
}
.faq-btn::after { filter: invert(0); }
.faq-btn:not(.collapsed) { color: var(--c-primary) !important; }
.faq-answer { font-size: .9rem; color: var(--c-text-muted); line-height: 1.7; padding: 4px 20px 16px; }

/* ─── TESTIMONIOS ───────────────────────────────────────────── */
.testimonio-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--c-border);
}
.testimonio-stars { color: #f59e0b; font-size: .9rem; margin-bottom: 14px; }
.testimonio-text  { font-size: .9rem; color: var(--c-text); line-height: 1.65; font-style: italic; margin-bottom: 20px; }
.testimonio-author { display: flex; align-items: center; gap: 12px; }
.testimonio-avatar {
  width: 42px; height: 42px;
  background: var(--c-primary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  flex-shrink: 0;
}
.testimonio-name  { display: block; font-weight: 700; font-size: .875rem; }
.testimonio-cargo { font-size: .78rem; color: var(--c-text-muted); }

/* ─── CTA ───────────────────────────────────────────────────── */
.section-cta { color: #fff; }
.cta-title    { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: #fff; font-weight: 800; margin-bottom: 12px; }
.cta-subtitle { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 8px; }
.cta-btn      { font-weight: 700; padding: 14px 32px; border-radius: 10px; }

/* ─── ESTADÍSTICAS ──────────────────────────────────────────── */
.stat-item { padding: 24px 16px; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: .875rem; color: var(--c-text-muted); font-weight: 500; }

/* ─── GALERÍA ───────────────────────────────────────────────── */
.galeria-grid {
  display: grid;
  gap: 10px;
}
.galeria-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.galeria-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.galeria-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.galeria-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
/* Masonry layout: usa columnas CSS para apilado natural */
/* ─ Masonry.js layout: position:relative + item widths por columna ─ */
.galeria-grid.masonry {
  position: relative !important;
  display: block !important;
  gap: 0;
}
/* Ancho de ítems: calc(100%/N - gutter*(N-1)/N) con gutter=10px */
.galeria-grid.masonry.cols-2 .galeria-item { width: calc(50%     - 5px);    }
.galeria-grid.masonry.cols-3 .galeria-item { width: calc(33.333% - 6.67px); }
.galeria-grid.masonry.cols-4 .galeria-item { width: calc(25%     - 7.5px);  }
.galeria-grid.masonry.cols-5 .galeria-item { width: calc(20%     - 8px);    }
.galeria-grid.masonry .galeria-item {
  aspect-ratio: unset !important;
  height: auto !important;
  margin-bottom: 10px;
}
.galeria-grid.masonry .galeria-item img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: cover;
}
.galeria-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galeria-item:hover img { transform: scale(1.05); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
  color: #fff; font-size: 1.5rem;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }

/* ─── VIDEO DESTACADO ───────────────────────────────────────── */
.video-centered { max-width: 820px; margin: 0 auto; }
.video-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ─── FORMULARIO DE CONTACTO ────────────────────────────────── */
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.cf-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--c-text); }
.cf-input {
  display: block; width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: .9rem; color: var(--c-text);
  background: #fff;
  transition: border-color .15s;
  outline: none; resize: vertical;
}
.cf-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-light); }
.cf-submit { font-weight: 700; padding: 12px 28px; border-radius: 9px; width: 100%; font-size: .95rem; }
.cf-feedback-ok  { padding: 12px 16px; background: #dcfce7; border-radius: 9px; color: #15803d; font-size: .875rem; }
.cf-feedback-err { padding: 12px 16px; background: #fee2e2; border-radius: 9px; color: #b91c1c; font-size: .875rem; }

/* ─── MAPA ──────────────────────────────────────────────────── */
.mapa-wrap { overflow: hidden; }
.mapa-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ─── DATOS DE CONTACTO ─────────────────────────────────────── */
.dato-card {
  text-align: center; padding: 28px 20px;
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--c-border);
  height: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.dato-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.dato-icon {
  width: 52px; height: 52px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto 14px;
}
.dato-icon.wa { background: #dcfce7; color: #15803d; }
.dato-label   { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--c-text-muted); margin-bottom: 6px; }
.dato-value   { font-size: .9rem; color: var(--c-text); font-weight: 500; }
.dato-value a { color: var(--c-primary); }

/* ─── TEXTO + IMAGEN ────────────────────────────────────────── */
.texto-imagen-img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.texto-imagen-img { width: 100%; max-height: 420px; object-fit: cover; }

/* ─── PREVIEW PRODUCTOS ─────────────────────────────────────── */
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-card {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #f8fafc; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2rem; color: #cbd5e1; }
.product-badge { position: absolute; top: 8px; left: 8px; background: var(--c-primary); color: #fff; font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.product-info  { padding: 12px 14px; }
.product-name  { font-size: .875rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-normal  { font-weight: 700; color: var(--c-primary); font-size: .9rem; }
.price-sale    { font-weight: 700; color: #dc2626; font-size: .9rem; }
.price-original{ text-decoration: line-through; color: var(--c-text-muted); font-size: .78rem; }
.price-consult { font-size: .78rem; color: var(--c-text-muted); font-style: italic; }

/* ─── PREVIEW BLOG ──────────────────────────────────────────── */
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1.5px solid var(--c-border);
  transition: box-shadow .2s, transform .2s; height: 100%;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: #f8fafc; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.04); }
.blog-no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2rem; color: #cbd5e1; }
.blog-card-body { padding: 18px 20px; }
.blog-date      { font-size: .72rem; color: var(--c-text-muted); display: block; margin-bottom: 6px; }
.blog-card-title{ font-size: .95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-excerpt   { font-size: .82rem; color: var(--c-text-muted); line-height: 1.6; margin-bottom: 10px; }
.blog-read-more { font-size: .8rem; font-weight: 700; color: var(--c-primary); }

/* ─── WHATSAPP FLOTANTE ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); color: #fff; }
.wa-float-derecha   { right: 24px; }
.wa-float-izquierda { left: 24px; }
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer { padding-top: 60px; }
.footer-dark  { background: #0f172a; color: rgba(255,255,255,.85); }
.footer-light { background: #f8fafc; color: var(--c-text); border-top: 1px solid var(--c-border); }
.footer-brand { background: var(--c-primary); color: rgba(255,255,255,.9); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(auto-fill, minmax(160px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  text-align: center;
}
.footer-grid .footer-col,.footer-grid .footer-brand-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo   { max-height: 52px; max-width: 180px; object-fit: contain; }
.footer-name-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: inherit; text-decoration: none; }
.footer-name-text:hover { color: inherit; }
.footer-tagline   { font-size: .85rem; margin-top: 10px; opacity: .7; line-height: 1.5; max-width: 280px; text-align: center; }

.footer-social { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.footer-dark  .footer-social-icon { color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); }
.footer-light .footer-social-icon { color: var(--c-text-muted); background: #e9ecef; }
.footer-social-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .15s, color .15s; text-decoration: none;
  background: rgba(255,255,255,.12);
}
.footer-social-icon:hover { background: var(--c-primary); color: #fff !important; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-dark  .footer-col-title { color: rgba(255,255,255,.4); }
.footer-light .footer-col-title { color: var(--c-text-muted); }

.footer-links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-link { font-size: .875rem; text-decoration: none; opacity: .75; transition: opacity .15s; }
.footer-dark  .footer-link { color: rgba(255,255,255,.7); }
.footer-light .footer-link { color: var(--c-text-muted); }
.footer-link:hover { opacity: 1; color: var(--c-primary) !important; }

.footer-contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 8px; font-size: .85rem;
}
.footer-dark  .footer-contact-list li { color: rgba(255,255,255,.65); }
.footer-light .footer-contact-list li { color: var(--c-text-muted); }
.footer-contact-list i { margin-top: 2px; flex-shrink: 0; color: var(--c-primary); }
.footer-contact-list a { color: inherit; text-decoration: none; }
.footer-contact-list a:hover { color: inherit; }

.footer-map-wrap { border-radius: var(--radius); overflow: hidden; height: 160px; }
.footer-map-wrap iframe { width: 100%; height: 100%; border: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer-light .footer-bottom { border-color: var(--c-border); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-copyright { font-size: .78rem; opacity: .5; }
.footer-powered   { font-size: .72rem; opacity: .4; color: inherit !important; }
.footer-powered:hover { opacity: .7; }

/* ─── Animaciones de entrada ────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
[data-aos].aos-animate { opacity: 1; transform: none; }
[data-aos="fade-left"]  { transform: translateX(-20px); }
[data-aos="fade-right"] { transform: translateX(20px); }
[data-aos="zoom-in"]    { transform: scale(.95); }
[data-aos].aos-animate  { transform: none; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  [data-height="grande"] { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .galeria-grid.cols-4,
  .galeria-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .galeria-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid.masonry.cols-4 .galeria-item,
  .galeria-grid.masonry.cols-5 .galeria-item { width: calc(33.333% - 6.67px); }
}
@media (max-width: 575px) {
  .py-section { padding: 40px 0; }
  .hero-container { padding-left: 24px; padding-right: 24px; }
  .hero-content { max-width: 100%; }
  /* En móvil: reducir padding del container del hero */
  .hero-container { padding-top: 48px; padding-bottom: 48px; }
  /* 2col apilado: imagen ocupa el ancho disponible */
  .hero-img-col-wrap { border-radius: var(--radius, 10px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .galeria-grid.cols-3,
  .galeria-grid.cols-4,
  .galeria-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid.masonry.cols-3 .galeria-item,
  .galeria-grid.masonry.cols-4 .galeria-item,
  .galeria-grid.masonry.cols-5 .galeria-item { width: calc(50% - 5px); }
  .galeria-grid.masonry.cols-2 .galeria-item { width: 100%; }
  .contact-form-wrap { padding: 22px 18px; }
}

/* ─── Lightbox con navegación ───────────────────────────────── */
#lbOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 0;
}
.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 140px);
  max-height: 92vh;
}
#lbImg {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity .2s ease;
  display: block;
}
.lb-loader {
  display: none;
  position: absolute;
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lb-spin .7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* Botones */
.lb-btn {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 2rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .12s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lb-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }

.lb-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.6rem;
  width: 40px; height: 40px;
  z-index: 1;
}
.lb-prev { margin-right: 12px; }
.lb-next { margin-left:  12px; }

/* Footer: caption + counter */
.lb-footer {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
}
.lb-counter {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Responsive mobile */
@media (max-width: 575px) {
  .lb-img-wrap { max-width: calc(100vw - 80px); }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 1.5rem; }
  .lb-prev { margin-right: 6px; }
  .lb-next { margin-left:  6px; }
}

/* ── Image caption ─────────────────────────────────────────── */

/* ── Bloque libre (sección personalizada) ──────────────────── */
.section-bloque-libre { width: 100%; }
.blq-outer { box-sizing: border-box; }
.blq-outer .container { box-sizing: border-box; }
.blq-heading { margin: 0; }
.blq-text { }
.blq-text p { margin: 0 0 .8em; }
.blq-text p:last-child { margin-bottom: 0; }
.blq-btn { display: inline-block; padding: .5em 1.4em; border-radius: 6px;
           background: #2563eb; color: #fff; text-decoration: none;
           font-weight: 600; transition: opacity .15s; }
.blq-btn:hover { opacity: .85; }
.blq-btn-pill    { border-radius: 999px; }
.blq-btn-outline { background: transparent !important; border: 2px solid currentColor; }
.blq-btn-ghost   { background: transparent !important; border: none; }

/* ══════════════════════════════════════════════════════════════
   BLQ-CAROUSEL — carrusel de sección personalizada
   Usa background-image en lugar de <img> para evitar el
   artifact de zoom que Bootstrap's transform:translateX()
   causa sobre elementos img durante la transición de slides.
   ═══════════════════════════════════════════════════════════ */
.blq-carousel { overflow: hidden; }
.blq-carousel .carousel-inner { overflow: hidden; }

/* Cada slide usa background-image (igual que el hero carousel) */
.blq-car-slide {
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
}

/* ── Sección personalizada: apilar columnas en responsive ─── */
@media (max-width: 991px) { .blq-stk-tab { flex-direction: column !important; } }
@media (max-width: 767px)  { .blq-stk-mob { flex-direction: column !important; } }
@media (min-width: 768px) and (max-width: 991px) { .blq-hide-tab { display: none !important; } }
