@charset "utf-8";

html {
  overflow-x: hidden;
  background: var(--white); /* evita el teal en overscroll vertical */
  overscroll-behavior-x: none; /* overscroll horizontal en iOS */
}

body {
  overflow-x: hidden;
  background: var(--white); /* el teal pasa al nav y breadcrumb */
}

/* =========================================================
   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
========================================================= */

:root {
  --bg:      #4c7e8a;   /* teal — fondo de páginas de categoría */
  --violeta: #8a4c6e;
  --red:     #ed2e3e;
  --orange:  #fc9b38;
  --gold:    #FFD38A;
  --light:   #F5EFFF;
  --white:   #ffffff;
  --font:    'Fredoka One', system-ui, sans-serif;
  --nav-h:   56px;
  --radius:  12px;
  --pad-x:   clamp(14px, 4vw, 48px);
  --max-w:   1100px;
}

/* =========================================================
   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; }




/* =========================================================
   NAV  — idéntico al home
   Agregar class="active" al <a> de la categoría actual
========================================================= */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: #4c7e8a;
  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: space-between;
  padding: 0 var(--pad-x);
  position: relative;
}

/* ---- brand ---- */

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.nav-brand-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: .75rem;
  line-height: 1.18;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---- links ---- */

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

.nav-links a {
  font-family: var(--font);
  font-size: clamp(.72rem, 1.1vw, .95rem);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

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

/* categoría activa: fondo naranja + subrayado dorado */
.nav-links a.active {
  background: var(--orange);
  color: var(--white);
  
}



/* ---- hamburger ---- */

.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: #fff;
  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: #3a6270;

  padding: 8px 0;
  margin-bottom: 6px;
}

.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); 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); }

/* =========================================================
   BREADCRUMB INLINE
========================================================= */

.bc2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: .9rem;
  padding-top: 20px;
}
.bc2 .sep  { color: #888; font-size: 1rem; line-height: 1; }
.bc2 .lv1  { color: #4c7e8a; text-decoration: none; transition: opacity .15s; }
.bc2 .lv2  { color: #e0963a; text-decoration: none; transition: opacity .15s; }
.bc2 .lv3  { color: #8a4c6e; font-weight: 500; }
.bc2 a:hover { opacity: .75; }


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

.container {
  width: 100%;
  background: var(--white);
}

.cat-page {
  width: 100%;
  max-width: var(--max-w);  /* 1100px */
  margin: 0 auto;
  display: block;
}


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

h1 {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #8a4c6e;
  font-weight: 400;
  text-align: center;
  margin: 0;
  padding: 20px var(--pad-x) 10px;
  background: #fff;
  letter-spacing: .02em;
}

.h1-break { display: block; }

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

.caja-miniaturas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 10px var(--pad-x) 24px;
}

.minis-sm {
  width: calc((100% - 3 * 14px) / 4); /* 4 por fila, 3 gaps */
}

.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: 259 / 129;
  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 {
  font-family: var(--font);
  font-size: clamp(.78rem, 1vw, .88rem);
  color: #8aacb5;
  padding: 3px 4px 2px;
  line-height: 1.2;
  transition: color .15s;
}

.minis-sm:hover .minis-sm-label { color: #4c7e8a; }

/* FAQ */
.faq-section { margin: 1.5rem 0; }
.faq-list     { margin: 0; }

.faq-list dt {
  color: #ff3366;
  font-weight: 600;
  font-family: var(--font);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.faq-list dd {
  color: #4c7e8a;
  margin: .3rem 0 .8rem 1rem;
  line-height: 1.55;
}


/* =========================================================
   AD SLOTS
========================================================= */

.ad-slot {
  width: 100%;
  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: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-family: system-ui, Arial, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
  overflow: hidden;
}



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

.textoFluo p a       { color: var(--violeta); 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(--violeta);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 1.5rem 0 .6rem;
}

.textoFluo h3 {
  font-size: 1.15rem;
  color: #ff3366;
  font-weight: 600;
  margin: 1.4rem 0 .5rem;
}

.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(--violeta); font-style: normal; }

.img-flotante {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 360px;
}

/* 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(--violeta); }

.faq-item h3 {
  color: #4c7e8a;
  font-size: 1.05rem;
  font-weight: 400;
  margin: 1.2rem 0 .3rem;
}

.link-home {
  font-family: var(--font);
  color: var(--violeta);
  font-size: 1.1rem;
}

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

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

footer { width: 100%; }

.pie_creditos {
  width: 100%;
  background: #3a6270;
  border-top: 4px solid var(--orange);
  padding: 28px var(--pad-x);
  text-align: center;
}

.pie-marca {
  font-family: var(--font);
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 0 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pie-desc {
  font-family: system-ui, Arial, sans-serif;
  font-size: .88rem;
  color: #c8dde3;
  margin: 0 0 14px;
  line-height: 1.5;
}

.pie-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pie-links a {
  font-family: var(--font);
  font-size: .9rem;
  color: var(--white);
  transition: color .2s;
}

.pie-links a:hover { color: var(--orange); }

.pie-sep { color: var(--orange); }

.pie-copy {
  font-family: system-ui, Arial, sans-serif;
  font-size: .78rem;
  color: #8aacb5;
  margin: 0;
}


/* =========================================================
   TABLET  (max 768px) — 4 columnas + hamburger
========================================================= */

@media (max-width: 768px) {

  .hamburger { display: flex; }
  .nav-inner  { justify-content: space-between; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: #4c7e8a;
    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;
    text-transform: uppercase;
  }

  /* activo en menú desplegable: borde dorado izquierdo */
  .nav-links a.active {
    box-shadow: none;
    border-left: 4px solid var(--gold);
    padding-left: 10px;
  }

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

  .nav-brand-text {
  flex-direction: row;
  gap: 5px;
  font-size: 1rem;
}

  .caja-miniaturas {
   
    gap: 12px;
    padding: 10px var(--pad-x) 20px;
  }

  .minis-fila-final .minis-sm { width: calc((100% - 3 * 12px) / 4); }
  
  .minis-sm {
    width: calc((100% - 2 * 12px) / 3); /* 3 por fila */
  }
  .minis-sm-label { font-size: .85rem; }

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


/* =========================================================
   MOBILE  (max 576px) — 2 columnas
========================================================= */

@media (max-width: 576px) {

  .caja-miniaturas {
   
    gap: 8px;
    padding: 8px 10px 16px;
  }

  .minis-sm {
    width: calc((100% - 8px) / 2); /* 2 por fila */
  }

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

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

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

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

  .textoFluo      { font-size: .93rem; }
  .textoFluo h2   { font-size: 1.25rem; }
  .textoFluo h3   { font-size: 1.15rem; }

  .nav-brand-text {
  flex-direction: row;
  gap: 5px;
  font-size: 1rem;
}

    .img-flotante {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }

}

@media (max-width: 960px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: #4c7e8a;
    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.is-open { display: flex; }

  .nav-brand-text {
    flex-direction: row;
    gap: 5px;
    font-size: 1rem;
  }
}