@charset "utf-8";

/* =========================================================
   FONT
========================================================= */

@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredokaone/v8/k3kUo8kEI-tA1RRcTZGmTlHGCac.woff2) format('woff2');
}

/* =========================================================
   VARIABLES
   Nota: --bg es más claro que en home (#6b4d5e → #8d5775)
========================================================= */

:root {
  --bg:     #8d5775;
  --red:    #ed2e3e;
  --orange: #fc9b38;
  --gold:   #FFD38A;
  --light:  #F5EFFF;
  --white:  #ffffff;
  --font:   'Fredoka One', system-ui, sans-serif;
  --nav-h:  56px;
  --radius: 10px;
  --pad-x:  clamp(14px, 4vw, 48px);
  --max-w:  1280px;
}

/* =========================================================
   RESET / BASE
========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

.clearfloat    { clear: both; }
.clearfloat-10 { clear: both; height: 10px; }


/* =========================================================
   NAV  — idéntico al home
========================================================= */

.main-nav {
  position: sticky;
  top: 0; z-index: 200;
  width: 100%;
  background: var(--white);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  position: relative;
}

.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  gap: clamp(2px, 1.2vw, 18px);
}

.nav-links a {
  font-family: var(--font);
  font-size: clamp(.82rem, 1.3vw, 1.05rem);
  color: var(--bg);
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--orange);
  color: var(--white);
}

.nav-inicio a {
  color: var(--orange);
}

/* oculto por defecto (desk + tablet) */
.nav-logo { display: none; }

/* solo en móvil */
@media (max-width: 560px) {
  .nav-logo {
    display: block;
    position: absolute;
    left: var(--pad-x);
    font-family: var(--font);
    font-size: 1.25rem;
    color: var(--bg);
    white-space: nowrap;
  }

   .nav-inicio { display: none; }
}



.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
  position: absolute; right: var(--pad-x);
  top: 50%; transform: translateY(-50%);
}

.hamburger span {
  display: block; width: 100%; height: 3px;
  background: var(--bg); border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }


/* =========================================================
   BREADCRUMB BAR
========================================================= */

.breadcrumb-bar {
  width: 100%;
  background: rgba(0,0,0,.15);
  padding: 8px 0;
}

.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9rem;
}

.breadcrumb-inner a {
  color: var(--gold);
  text-decoration: none;
  transition: color .15s;
}

.breadcrumb-inner a:hover { color: var(--white); }

.breadcrumb-sep {
  color: var(--orange);
  font-size: 1rem;
  line-height: 1;
}

.breadcrumb-current {
  color: var(--white);
}


/* =========================================================
   CONTAINER / MAIN
========================================================= */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg);
}

.cat-page {
  width: 100%;
  display: block;
}


/* =========================================================
   H1
========================================================= */

.cat-page h1 {
  font-family: var(--font);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: #FBEBF4;
  font-weight: 400;
  text-align: center;
  margin: 0;
  padding: 20px var(--pad-x) 16px;
  background: var(--bg);
  letter-spacing: .02em;
}


/* =========================================================
   GRID DE MINIATURAS
========================================================= */

.caja-miniaturas {
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 10px var(--pad-x) 24px;
  grid-auto-flow: row dense;   /* ← esta línea */
}

/* ---- card ---- */

.minis-sm {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.minis-sm a:first-child {
  display: block;
  width: 100%;
}

.minis-sm picture {
  display: block;
  width: 100%;
}

.minis-sm img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--orange);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}

.minis-sm:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(0,0,0,.3),
              0 0 14px rgba(252,155,56,.5);
}

/* etiqueta SEO */

.minis-sm-label {
  display: block;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(.7rem, 1.1vw, .9rem);
  color: var(--white);
  text-decoration: none;
  padding: 5px 4px 4px;
  line-height: 1.2;
  transition: color .15s;
}

.minis-sm-label:hover { color: var(--gold); }

.minis-fila-final {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.minis-fila-final .minis-sm {
  width: calc((100% - 5 * 14px) / 6);
}

@media (max-width: 991px) {
  .minis-fila-final .minis-sm { width: calc((100% - 2 * 12px) / 3); }
}

@media (max-width: 560px) {
  .minis-fila-final .minis-sm { width: calc((100% - 8px) / 2); }
}

/* =========================================================
   AD SLOTS DENTRO DEL GRID
   Siempre ocupan la fila completa
========================================================= */

.ad-slot {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6px 0;
}

.ad-slot--mobile { display: none; }
.ad-slot--desk   { display: block; }



/* =========================================================
   TEXTO — fondo blanco
========================================================= */

.home-text {
  width: 100%;
  background: var(--white);
  padding: 36px 0 40px;
}

.textoFluo {
  max-width: 901px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-family: system-ui, Arial, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
}

.textoFluo p {
  color: #333;
  text-align: left;
  margin: .7rem 0;
}

.textoFluo p a     { color: var(--bg); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.textoFluo p a:hover { color: var(--orange); }

.textoFluo h2 {
  font-family: var(--font);
  color: var(--bg);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 1.5rem 0 .6rem;
}



.textoFluo blockquote {
  margin: .8rem 0;
  padding: 10px 16px;
  border-left: 4px solid var(--orange);
  background: #fdf7f3;
  border-radius: 0 8px 8px 0;
}

.textoFluo blockquote p {
  font-weight: 600;
  color: #444;
  margin: 0 0 4px;
}

.textoFluo cite {
  font-size: .88rem;
  color: var(--bg);
  font-style: normal;
}

/* link volver al home */
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-family: var(--font);
  font-size: 1.5rem;
  text-decoration: none;
  margin-top: .5rem;
}

.home-link:hover { color: var(--orange); }

.faq-item h3 {
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 400;
  margin: 1.2rem 0 .3rem;
}

/* =========================================================
   FOOTER
========================================================= */

footer { width: 100%; }

.pie_creditos {
  width: 100%;
  background: var(--bg);
  padding: 14px var(--pad-x);
}

.pie_creditos p,
.pie_creditos a {
  color: #c0b1b1;
  text-decoration: none;
  font-size: .9rem;
}


/* =========================================================
   TABLET  (max 901px) — 3 columnas
========================================================= */

@media (max-width: 991px) {

  .caja-miniaturas {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px var(--pad-x) 20px;
  }

  .minis-sm-label { font-size: .85rem; }

  .ad-slot--desk   { display: none;  }
  .ad-slot--mobile { display: block; }

    .nav-links a {
    text-transform: uppercase;
  }
  
}


/* =========================================================
   MOBILE  (max 560px) — 2 columnas + hamburger
========================================================= */

@media (max-width: 560px) {

  /* nav */
  .hamburger { display: flex; }
  .nav-inner  { justify-content: flex-start; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 22px;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
  }

  .nav-links li { display: block; }

  .nav-links a {
    display: block;
    font-size: 1.15rem;
    padding: 16px 14px;
    border-radius: 8px;
  }

  .nav-links.is-open { display: flex; }


  /* grid */
  .caja-miniaturas {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 10px 16px;
  }

  .minis-sm-label { font-size: .72rem; }

  .cat-page h1 { font-size: 1.1rem; padding: 14px 12px 12px; }

  .breadcrumb-inner { font-size: .82rem; }
}


/* =========================================================
   HAMBURGER JS — pegar antes de </body>:

  <script>
    const btn  = document.querySelector('.hamburger');
    const menu = document.querySelector('.nav-links');
    btn.addEventListener('click', function () {
      btn.classList.toggle('is-open');
      menu.classList.toggle('is-open');
      btn.setAttribute('aria-expanded', menu.classList.contains('is-open'));
    });
  </script>

========================================================= */
