@charset "utf-8";

/* ========================================================================== 
   Archivo: plantilla-v1.css
   Versión: 1.0.0
   Fecha: 25-04-2026
   Descripción: Estilos complementarios para la plantilla comercial V1.
   Nota: Este archivo NO reemplaza el CSS principal. Solo agrega estilos de demo,
   carruseles simples y ajustes visuales para la plantilla.
   ========================================================================== */

/* ========================================================================== 
   01. VARIABLES DE LA PLANTILLA
   Paleta solicitada: blanco, grises, púrpura, rosado, celeste, menta y negro.
   ========================================================================== */
:root {
  --tpl-blanco: #ffffff;
  --tpl-humo: #f7f7f9;
  --tpl-gris-100: #f1f2f5;
  --tpl-gris-200: #e5e7eb;
  --tpl-gris-500: #6b7280;
  --tpl-gris-800: #1f2937;
  --tpl-negro: #111111;
  --tpl-purpura: #6d28d9;
  --tpl-purpura-oscuro: #3b0764;
  --tpl-rosado: #ec4899;
  --tpl-celeste: #0ea5e9;
  --tpl-menta: #10b981;
  --tpl-radio: 18px;
  --tpl-sombra: 0 18px 45px rgba(15, 23, 42, 0.10);
  --tpl-sombra-suave: 0 8px 22px rgba(15, 23, 42, 0.08);
  --tpl-transicion: 180ms ease;
}

/* ========================================================================== 
   02. BASE VISUAL DE LA PLANTILLA
   Ajustes generales para que el demo tenga una estética limpia.
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 34%),
    var(--tpl-humo);
  color: var(--tpl-gris-800);
}

main {
  display: block;
  width: 100%;
}

section {
  scroll-margin-top: 90px;
}

.tpl-section {
  padding: 54px 0;
}

.tpl-section-suave {
  background: linear-gradient(135deg, #ffffff, #f7f7fb);
}

.tpl-section-oscura {
  background:
    radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.22), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.20), transparent 30%),
    #111827;
  color: white;
}

.tpl-titulo-seccion {
  text-align: center;
  font-size: clamp(28px, 3vw, 46px);
  margin: 0 0 12px;
  color: var(--tpl-negro);
}

.tpl-section-oscura .tpl-titulo-seccion,
.tpl-section-oscura .tpl-bajada-seccion {
  color: white;
}

.tpl-bajada-seccion {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--tpl-gris-500);
  font-size: 17px !important;
  line-height: 1.55;
}

.tpl-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.10);
  color: var(--tpl-purpura);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========================================================================== 
   03. HEADER Y NAVEGACIÓN
   Se usan clases existentes del CSS principal: top-header, logo, header-nav.
   ========================================================================== */
.tpl-header {
  border-radius: 0 0 22px 22px;
  overflow: visible;
}

.tpl-header .top-header {
  background: linear-gradient(90deg, var(--tpl-negro), var(--tpl-purpura-oscuro));
}

.tpl-header .top-header .centrar-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.tpl-header .top-header-fecha,
.tpl-header .texto-top-header {
  color: white !important;
}

.tpl-header-principal {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.tpl-header .logo img {
  min-height: auto;
  max-height: 62px;
  object-fit: contain;
}

.tpl-header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  float: none;
}

.tpl-header nav > ul > li > a {
  background: transparent;
  color: var(--tpl-negro) !important;
  border-radius: 999px;
  padding: 10px 14px !important;
  font-size: 14px;
  font-weight: 700;
}

.tpl-header nav > ul > li > a:hover,
.tpl-header nav > ul > li > a.activo {
  background: var(--tpl-negro);
  color: white !important;
}

.tpl-header-acciones {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.tpl-btn-menu {
  display: none;
  background: var(--tpl-negro);
  color: white;
  border-radius: 12px;
  min-width: auto;
}

/* ========================================================================== 
   04. BANNER PRINCIPAL CON VERSIÓN MÓVIL
   El carrusel usa imágenes horizontales en escritorio y verticales en móvil.
   ========================================================================== */
.tpl-hero {
  position: relative;
  min-height: 420px;
  background: var(--tpl-negro);
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--tpl-sombra);
}

.tpl-slider {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.tpl-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 900ms ease;
}

.tpl-slide.activo {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.tpl-slide picture,
.tpl-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.tpl-slide img {
  object-fit: cover;
  aspect-ratio: 16 / 6.5;
}

.tpl-hero-capa {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.45), transparent 55%);
}

.tpl-hero-contenido {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.tpl-hero-texto {
  max-width: 620px;
  padding: 46px 0;
  color: white;
}

.tpl-hero-texto h1 {
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 0.95;
  margin: 16px 0;
  color: white;
}

.tpl-hero-texto p {
  max-width: 520px;
  color: rgba(255,255,255,0.88);
  font-size: 18px !important;
  line-height: 1.55;
}

.tpl-slider-controles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tpl-dot {
  width: 12px;
  height: 12px;
  min-width: auto;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.tpl-dot.activo {
  background: white;
  width: 34px;
}

/* ========================================================================== 
   05. BLOQUES DESTACADOS Y TARJETAS
   Aprovecha .bloque, .imagen-bloque y .contenido-bloque del CSS principal.
   ========================================================================== */
.tpl-card-estadistica {
  background: white;
  border: 1px solid var(--tpl-gris-200);
  border-radius: var(--tpl-radio);
  box-shadow: var(--tpl-sombra-suave);
  padding: 24px;
  text-align: center;
}

.tpl-card-estadistica strong {
  display: block;
  font-size: 34px;
  color: var(--tpl-purpura);
  margin-bottom: 6px;
}

.tpl-card-estadistica span {
  color: var(--tpl-gris-500);
  font-size: 14px;
}

.tpl-producto .bloque {
  color: inherit;
  overflow: hidden;
}

.tpl-producto .bloque figure.imagen-bloque {
  aspect-ratio: 4 / 3;
}

.tpl-producto .bloque figure.imagen-bloque img {
  height: 100%;
  width: 100%;
  max-width: none;
  max-height: none;
}

.tpl-producto .precio-bloque {
  color: var(--tpl-purpura) !important;
  font-size: 19px !important;
}

.tpl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tpl-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--tpl-gris-100);
  color: var(--tpl-gris-800);
}

.tpl-badge.menta { background: rgba(16,185,129,.12); color: #047857; }
.tpl-badge.rosa { background: rgba(236,72,153,.12); color: #be185d; }
.tpl-badge.celeste { background: rgba(14,165,233,.12); color: #0369a1; }

/* ========================================================================== 
   06. MENÚ DE CATEGORÍAS Y CUERPO DE TIENDA
   Se apoya en nav.widget.menu, categoria-actual, nivel1, nivel2 y nivel3.
   ========================================================================== */
.tpl-tienda-grid {
  display: grid;
  grid-template-columns: minmax(230px, 280px) 1fr;
  gap: 24px;
  align-items: start;
}

.tpl-sidebar {
  position: sticky;
  top: 90px;
  background: white;
  border-radius: var(--tpl-radio);
  box-shadow: var(--tpl-sombra-suave);
  overflow: hidden;
}

.tpl-sidebar h3 {
  background: var(--tpl-negro);
  color: white;
  padding: 16px;
  margin: 0;
  font-size: 18px;
}

.tpl-productos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ========================================================================== 
   07. CARRUSELES DE GALERÍA Y CLIENTES
   Carruseles simples sin dependencia externa. Menos drama, más control.
   ========================================================================== */
.tpl-carrusel-shell {
  position: relative;
  overflow: hidden;
}

.tpl-carrusel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 8px 2px 18px;
}

.tpl-carrusel-track::-webkit-scrollbar {
  height: 8px;
}

.tpl-carrusel-item {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
  background: white;
  border-radius: var(--tpl-radio);
  box-shadow: var(--tpl-sombra-suave);
  overflow: hidden;
}

.tpl-carrusel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tpl-clientes-track .tpl-carrusel-item {
  flex-basis: 230px;
  padding: 20px;
}

.tpl-clientes-track .tpl-carrusel-item img {
  aspect-ratio: 2 / 1;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: var(--tpl-transicion);
}

.tpl-clientes-track .tpl-carrusel-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ========================================================================== 
   08. TESTIMONIOS
   Tarjetas sociales con fondo blanco y acentos suaves.
   ========================================================================== */
.tpl-testimonio {
  background: white;
  border-radius: var(--tpl-radio);
  box-shadow: var(--tpl-sombra-suave);
  padding: 24px;
  min-height: 190px;
}

.tpl-testimonio p {
  color: var(--tpl-gris-800);
  line-height: 1.6;
  font-size: 16px !important;
}

.tpl-testimonio strong {
  display: block;
  margin-top: 18px;
  color: var(--tpl-purpura);
}

.tpl-testimonio span {
  color: var(--tpl-gris-500);
  font-size: 13px;
}

/* ========================================================================== 
   09. PRODUCTO INDIVIDUAL
   Bloque tipo ficha para visualizar una página de producto.
   ========================================================================== */
.tpl-producto-detalle {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: center;
  background: white;
  border-radius: 28px;
  box-shadow: var(--tpl-sombra);
  padding: 28px;
}

.tpl-producto-detalle figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--tpl-gris-100);
}

.tpl-producto-detalle figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.tpl-precio-grande {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--tpl-purpura);
  font-weight: 900;
  margin: 18px 0;
}

.tpl-lista-check {
  padding-left: 0;
  list-style: none;
}

.tpl-lista-check li {
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
}

.tpl-lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tpl-menta);
  font-weight: 900;
}

/* ========================================================================== 
   10. DEMOSTRACIÓN DE ETIQUETAS HTML
   Sirve para revisar cómo se ve cada elemento base con el CSS actual.
   ========================================================================== */
.tpl-demo-html {
  background: white;
  border-radius: 24px;
  box-shadow: var(--tpl-sombra-suave);
  padding: 28px;
}

.tpl-demo-html code,
.tpl-demo-html pre {
  background: #111827;
  color: #d1fae5;
  border-radius: 12px;
}

.tpl-demo-html code {
  padding: 3px 6px;
}

.tpl-demo-html pre {
  padding: 16px;
  overflow-x: auto;
}

.tpl-demo-html blockquote {
  border-left: 5px solid var(--tpl-purpura);
  margin: 18px 0;
  padding: 10px 18px;
  background: #faf5ff;
  color: #4c1d95;
  border-radius: 0 12px 12px 0;
}

/* ========================================================================== 
   11. FORMULARIOS Y CONTACTO
   Usa input, textarea, select y .boton del CSS principal.
   ========================================================================== */
.tpl-contacto-box {
  background: white;
  border-radius: 28px;
  box-shadow: var(--tpl-sombra);
  padding: 28px;
}

.tpl-contacto-datos {
  background: linear-gradient(145deg, var(--tpl-negro), var(--tpl-purpura-oscuro));
  color: white;
  border-radius: 24px;
  padding: 28px;
  min-height: 100%;
}

.tpl-contacto-datos a {
  color: white;
}

.tpl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tpl-form-grid .full {
  grid-column: 1 / -1;
}

/* ========================================================================== 
   12. FOOTER
   Se apoya en footer, bottom-footer, logo-footer y links existentes.
   ========================================================================== */
.tpl-footer {
  background:
    radial-gradient(circle at top left, rgba(236,72,153,.18), transparent 25%),
    radial-gradient(circle at top right, rgba(14,165,233,.20), transparent 30%),
    #111111;
}

.tpl-footer .logo-footer {
  background: white;
  border-radius: 12px;
  padding: 8px;
}

/* ========================================================================== 
   13. RESPONSIVE
   Ajustes para tablet y móvil. Que no explote, el estándar mínimo de civilización.
   ========================================================================== */
@media (max-width: 980px) {
  .tpl-header-principal {
    grid-template-columns: 180px 1fr auto;
  }

  .tpl-tienda-grid {
    grid-template-columns: 1fr;
  }

  .tpl-sidebar {
    position: relative;
    top: auto;
  }

  .tpl-productos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpl-producto-detalle {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tpl-header .top-header .centrar-mini {
    flex-direction: column;
    text-align: center;
    padding: 8px 0;
  }

  .tpl-header-principal {
    grid-template-columns: 1fr auto;
  }

  .tpl-header nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .tpl-header nav.abierto {
    display: block;
  }

  .tpl-header nav ul {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .tpl-header nav > ul > li > a {
    width: calc(100% - 28px);
    text-align: left;
  }

  .tpl-btn-menu {
    display: inline-block;
  }

  .tpl-hero,
  .tpl-slider {
    min-height: 680px;
    border-radius: 0 0 22px 22px;
  }

  .tpl-slide img {
    aspect-ratio: 9 / 14;
  }

  .tpl-hero-capa {
    background: linear-gradient(180deg, rgba(0,0,0,.56), rgba(0,0,0,.18));
  }

  .tpl-hero-contenido {
    align-items: flex-start;
    padding-top: 54px;
  }

  .tpl-productos-grid,
  .tpl-form-grid {
    grid-template-columns: 1fr;
  }

  .tpl-section {
    padding: 38px 0;
  }

  .tpl-demo-html {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpl-slide,
  .tpl-dot,
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
