/* =========================================================
   PEQUEÑOS GENIOS · Sistema de diseño
   Paleta: azul confiable + acentos amarillo/verde/naranja
   Tipografía: Fredoka (display) + Inter (texto)
   ========================================================= */

:root{
  /* Color */
  --blue:        #2E6F9E;
  --blue-dark:   #1E4F73;
  --blue-light:  #EAF4FC;
  --yellow:      #FFC94A;
  --green:       #7FCB9E;
  --orange:      #FF9F6E;
  --white:       #FFFFFF;
  --ink:         #26313A;
  --ink-soft:    #5B6B77;
  --border:      #E3ECF2;
  --bg:          #FBFDFF;

  /* Forma */
  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   28px;

  /* Sombra */
  --shadow-sm:   0 2px 10px rgba(30, 79, 115, 0.07);
  --shadow-md:   0 14px 30px rgba(30, 79, 115, 0.12);
  --shadow-lg:   0 24px 48px rgba(30, 79, 115, 0.16);

  /* Tipografía */
  --font-display: 'Fredoka', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --header-h: 138px;
}

@media (max-width: 991.98px){
  :root{ --header-h: 128px; }
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--header-h);
}

h1, h2, h3, h4, .display-font{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: 0.2px;
}

a{ text-decoration: none; }

.text-ink-soft{ color: var(--ink-soft); }
.bg-blue-light{ background: var(--blue-light); }

/* Enfoque visible para accesibilidad */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* =========================================================
   LOGO
   ========================================================= */
.logo-img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.logo-img-footer{
    width:70px;
    height:auto;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-brand{
  background: var(--blue);
  border: none;
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn-brand:hover{
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-brand-outline{
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  transition: all .18s ease;
}
.btn-brand-outline:hover{
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp{
  background: #35B76A;
  color: var(--white);
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  transition: all .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover{
  background: #2A9C57;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-icon-circle{
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: none;
  transition: all .18s ease;
  position: relative;
}
.btn-icon-circle:hover{ background: var(--blue); color: var(--white); }

.badge-cart{
  position: absolute;
  top: -4px; right: -4px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  padding: 0 3px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-top{
  background: var(--blue-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
}
.header-top a{ color: rgba(255,255,255,0.9); }

.header-main{
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.logo-mark{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-light);
  border: 2px dashed var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.1;
}

.brand-name{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-dark);
  font-weight: 600;
  line-height: 1;
}
.brand-tagline{
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
}

.search-form{
  flex: 1;
  max-width: 560px;
}
.search-form .form-control{
  border-radius: 999px 0 0 999px;
  border: 2px solid var(--border);
  border-right: none;
  padding: 0.65rem 1.2rem;
  background: var(--blue-light);
}
.search-form .form-control:focus{
  box-shadow: none;
  border-color: var(--blue);
  background: var(--white);
}
.search-form .btn{
  border-radius: 0 999px 999px 0;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  padding: 0 1.2rem;
}

.nav-main{
  padding: 0.55rem 0;
}
.nav-main .nav-link{
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px;
  transition: all .15s ease;
}
.nav-main .nav-link:hover,
.nav-main .nav-link.active{
  background: var(--blue-light);
  color: var(--blue-dark);
}

.offcanvas-brand-header .nav-link{
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-dark);
  padding: 0.6rem 0.3rem;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  background: linear-gradient(135deg, var(--blue-light) 0%, #FFFFFF 60%);
  overflow: hidden;
  padding: 4rem 0 6rem;
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero h1{
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.hero-accent{ color: var(--orange); }

.hero-img-wrap{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.2;
}
.hero-img-wrap img{ width: 100%; height: 100%; object-fit: cover; }

.hero-chip{
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
/*
.hero-chip{
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}*/
@media (max-width: 767.98px){
  .hero-chip{ left: 10px; bottom: -18px; }
}

.hero-chip-icon{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Divisor ondulado */
.wave-divider{ display: block; width: 100%; line-height: 0; margin-top: -2px; }
.wave-divider svg{ width: 100%; height: 60px; display: block; }

/* =========================================================
   SECCIONES / RUTA DE APRENDIZAJE (elemento distintivo)
   ========================================================= */
.section-pad{ padding: 4.5rem 0; }

.section-heading .eyebrow{
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.learning-path{
  position: relative;
}
.learning-path-line{
  position: absolute;
  top: 46px;
  left: 0; right: 0;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 991.98px){
  .learning-path-line{ display: none; }
}

.category-card{
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.category-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.category-badge-num{
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--border);
  font-weight: 600;
}

.category-icon{
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
}

.category-card h3{
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}

.category-card .count{
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* =========================================================
   TARJETA DE PRODUCTO
   ========================================================= */
.product-card{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card-img{
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--blue-light);
}
.product-card-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card-img img{ transform: scale(1.06); }

.product-card-cat{
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.product-card-body{
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3{
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
  min-height: 2.6em;
}

.product-price{
  font-family: var(--font-display);
  color: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.3rem 0 0.8rem;
}
.product-price .old{
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  font-family: var(--font-body);
  margin-left: 0.4rem;
}

.btn-add-cart{
  margin-top: auto;
  width: 100%;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem;
  transition: all .18s ease;
  font-size: 0.88rem;
}
.btn-add-cart:hover{ background: var(--blue); color: var(--white); }
.btn-add-cart.added{ background: var(--green); color: var(--white); }

/* =========================================================
   BLOQUES GENERALES
   ========================================================= */
.icon-pill{
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}

.bg-tint-blue{ background: var(--blue); }
.bg-tint-yellow{ background: var(--yellow); color: var(--ink) !important; }
.bg-tint-green{ background: var(--green); }
.bg-tint-orange{ background: var(--orange); }

.value-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.value-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }

.cta-band{
  background: var(--blue);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* =========================================================
   CATÁLOGO
   ========================================================= */
.filters-panel{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.filters-panel h4{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.filters-panel .form-check{ margin-bottom: 0.45rem; }
.filters-panel hr{ border-color: var(--border); margin: 1.3rem 0; }

.toolbar-catalog{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.view-toggle .btn{
  background: var(--blue-light);
  border: none;
  color: var(--blue-dark);
  width: 38px; height: 38px;
}
.view-toggle .btn.active{ background: var(--blue); color: var(--white); }

.product-list-row{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1.2rem;
  transition: box-shadow .2s ease;
}
.product-list-row:hover{ box-shadow: var(--shadow-md); }
.product-list-row img{
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.empty-state{
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ink-soft);
}

/* =========================================================
   DETALLE DE PRODUCTO
   ========================================================= */
.gallery-main{
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--blue-light);
  border: 1px solid var(--border);
}
.gallery-main img{ width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s ease;
}
.gallery-thumbs img.active,
.gallery-thumbs img:hover{ border-color: var(--blue); }

.spec-row{
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-row span:first-child{ color: var(--ink-soft); }
.spec-row span:last-child{ font-weight: 600; }

.qty-selector{
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.qty-selector button{
  width: 40px; height: 40px;
  border: none;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 1.1rem;
}
.qty-selector input{
  width: 46px;
  text-align: center;
  border: none;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button{ -webkit-appearance: none; margin:0; }

.stock-pill{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}
.stock-pill.out{ color: var(--orange); }
.stock-pill .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   CARRITO
   ========================================================= */
.cart-row{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cart-row img{
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-row .remove-btn{
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.1rem;
  transition: color .15s ease;
}
.cart-row .remove-btn:hover{ color: var(--orange); }

.summary-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary-row{
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.summary-total{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--blue-dark);
  border-top: 1px solid var(--border);
  margin-top: 0.6rem;
  padding-top: 0.9rem;
}

.cart-empty{
  text-align: center;
  padding: 4rem 1rem;
}
.cart-empty .icon-pill{
  width: 84px; height: 84px;
  border-radius: 50%;
  font-size: 2.2rem;
  margin: 0 auto 1.2rem;
}

/* =========================================================
   PÁGINA CONTACTO / NOSOTROS
   ========================================================= */
.contact-info-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

.map-placeholder{
  background: var(--blue-light);
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  font-weight: 600;
  text-align: center;
  gap: 0.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--blue-dark);
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h5{
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a{ color: rgba(255,255,255,0.75); }
.site-footer a:hover{ color: var(--yellow); }
.site-footer ul{ list-style: none; padding: 0; margin: 0; }
.site-footer li{ margin-bottom: 0.55rem; font-size: 0.9rem; }

.footer-social a{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: background .15s ease;
}
.footer-social a:hover{ background: var(--orange); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  font-size: 0.82rem;
}

/* Botón flotante de WhatsApp (móvil) */
.whatsapp-float{
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: #35B76A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 1040;
}

/* Breadcrumb */
.breadcrumb-bar{ padding: 1.1rem 0; }
.breadcrumb{ margin: 0; font-size: 0.85rem; }

/* =========================================================
   SECCIÓN "¿QUÉ ENCONTRARÁS EN LOS RETOÑITOS?" (Inicio)
   Tarjetas con imagen representativa + ícono superpuesto
   ========================================================= */
.highlight-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.highlight-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }

.highlight-card-img{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blue-light);
}
.highlight-card-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.highlight-card:hover .highlight-card-img img{ transform: scale(1.06); }

.highlight-card-icon{
  position: absolute;
  bottom: -18px;
  left: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.highlight-card h3{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 1.6rem 1rem 1.1rem;
  margin: 0;
  text-align: center;
}

/* =========================================================
   VITRINA DE LÁMINAS EDUCATIVAS (producto insignia)
   Imágenes grandes, formato afiche
   ========================================================= */
.lamina-showcase-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lamina-showcase-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lamina-showcase-card img{ width: 100%; height: 100%; object-fit: cover; }

.lamina-showcase-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(30,79,115,0.92) 0%, rgba(30,79,115,0) 100%);
  color: var(--white);
  padding: 2rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.lamina-showcase-caption span{ font-size: 0.82rem; font-weight: 500; line-height: 1.25; }
.lamina-showcase-caption strong{ font-family: var(--font-display); font-size: 1rem; }

/* =========================================================
   BLOQUE INFORMATIVO — Materiales para Maquetas (Inicio)
   ========================================================= */
.materiales-strip{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.materiales-chip{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin: 0.25rem;
}
