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

:root {
  --bg:         #8d5775;
  --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:      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; }


/* =========================================================
   CONTAINER
   — full viewport width, no side borders, no 70% cap
========================================================= */

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

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


/* =========================================================
   NAV  (agregar al HTML: <nav class="main-nav">…</nav>
   antes del <main>)
========================================================= */

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

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

/* ---- 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: var(--bg);
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}

/* hamburger → X */
.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); }


/* =========================================================
   HERO  (reemplaza .home-header + h1 anterior)
   H1 necesita dos <span>:
     <h1>
       <span class="h1-main">Dibujos para colorear y pintar</span>
       <span class="h1-accent">online gratis</span>
     </h1>
========================================================= */

.hero {
  background: var(--bg);
  text-align: center;
  padding: 28px var(--pad-x) 24px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font);
  line-height: 1.2;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.h1-main {
  color: var(--white);
  display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.h1-accent {
  color: var(--orange);
  display: block;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ---- si querés mantener el h1 como estaba, sin tocar el HTML: ---- */
/* .home > h1 {  (sigue funcionando como fallback)  } */


/* =========================================================
   HOME CATS  — 6 miniaturas con epígrafe SEO
   HTML del article: reemplazar <h2> por <p class="cat-caption">
   o mantener el h2 y darle ese estilo
========================================================= */

.home-cats {
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  padding: 20px var(--pad-x) 30px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

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

.cat {
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  text-align: center;
}

.cat a {
  display: block;
  text-decoration: none;
}

/* imagen con borde naranja */
.cat .cat-img-wrap,
.cat > a > img,
.cat img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--orange);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* si wrapeás la imagen en .cat-img-wrap: */
.cat-img-wrap {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--orange);
  aspect-ratio: 1 / 1;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Marcos arco iris — 6 miniaturas home */
.home-cats .cat:nth-child(1) .cat-img-wrap { border-color: #E85555; } /* rojo     */
.home-cats .cat:nth-child(2) .cat-img-wrap { border-color: #F5923A; } /* naranja  */
.home-cats .cat:nth-child(3) .cat-img-wrap { border-color: #F0C030; } /* amarillo */
.home-cats .cat:nth-child(4) .cat-img-wrap { border-color: #52B96A; } /* verde    */
.home-cats .cat:nth-child(5) .cat-img-wrap { border-color: #4A8FD4; } /* azul     */
.home-cats .cat:nth-child(6) .cat-img-wrap { border-color: #9B6DD6; } /* violeta  */

/* grosor doble */
.home-cats .cat-img-wrap { border-width: 8px; }

.cat-img-wrap img {
  border: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
  transition: transform .25s ease;
}

.cat:hover .cat-img-wrap,
.cat:hover > a > img {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,.3),
              0 0 18px rgba(252,155,56,.5);
}

.cat:hover .cat-img-wrap img {
  transform: scale(1.07);
}

/* epígrafe SEO — usar <p class="cat-caption"> o reusar el h2 */
.cat h2,
.cat-caption {
  font-family: var(--font);
  font-size: clamp(.75rem, 1.2vw, .95rem);
  font-weight: 400;
  color: var(--white);
  text-align: center;
  margin: 8px 2px 0;
  line-height: 1.25;
  letter-spacing: .02em;
  padding: 0;
  text-decoration: none;
}

.cat h2 a,
.cat-caption a {
  color: var(--white);
  text-decoration: none;
}


/* =========================================================
   AD SLOTS  — contenedores reubicables fácilmente
========================================================= */

.ad-slot {
  background: var(--bg);
  text-align: center;
  padding: 10px var(--pad-x);
  width: 100%;
}

/* leaderboard desktop 728×90 o responsive */
.ad-slot--leaderboard  { min-height: 100px; }

/* billboard desktop 970×250 o 970×90  */
.ad-slot--billboard    { min-height: 110px; }

/* cuadrado mobile 300×250 */
.ad-slot--mobile {
  display: none;
}

@media (max-width: 900px) {
  .ad-slot--leaderboard  { display: none; }
  .ad-slot--mobile       { display: block; min-height: 270px; }
}


/* =========================================================
   HOME MEGA  — grids de categorías (desktop)
========================================================= */

.home-mega {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg);
  padding: 8px var(--pad-x) 20px;
}

.home-mega h2 {
  font-size: 1.35rem;
  letter-spacing: .05em;
  color: var(--white);
  text-align: left;
  margin: 22px 0 8px;
}

.home-mega h2 a {
  color: var(--white);
  text-decoration: none;
}

.home-mega h2 a:hover { color: var(--gold); }

.home-mega .col1,
.home-mega .col2,
.home-mega .col3,
.home-mega .col4,
.home-mega .col5 {
  width: 18%;
  margin: 0 1%;
  float: left;
  text-align: center;
}

.minis-menu {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}

.minis-menu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: .2em solid var(--orange);
  border-radius: var(--radius);
  transition: transform .25s ease;
}

.minis-menu:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,.35),
              0 0 18px rgba(252,155,56,.55);
}

.minis-menu:hover img { transform: scale(1.08); }


/* =========================================================
   HOME TEXT  — fondo blanco para el bloque de texto
========================================================= */

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

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

.textoFluo h2 {
  color: var(--bg);
  font-size: 1.5rem;
  margin: 1.6rem 0 .7rem;
}

.textoFluo h3 {
  font-size: 1.15rem;
  color: var(--bg);
  font-weight: 600;
  margin: 1.4rem 0 .5rem;
}

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

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

.textoFluo p a:hover,
.textoFluo li a:hover { color: var(--orange); }

/* listas */
.textoFluo ul {
  max-width: 820px;
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.textoFluo li {
  position: relative;
  padding-left: 24px;
  margin: .5rem 0;
  color: #333;
  line-height: 1.6;
}

.textoFluo li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-size: .8rem;
  line-height: 1.65;
}

/* citas */
.textoFluo blockquote {
  margin: .8rem 0;
  padding: 12px 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 blockquote cite {
  font-size: .88rem;
  color: var(--bg);
  font-style: normal;
}

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

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

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


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

footer { width: 100%; margin-top: 2%; }

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


/* =========================================================
   CENTRAR HELPER (para ads entre secciones)
========================================================= */

.centrar {
  text-align: center;
  width: 100%;
}


/* =========================================================
   VISIBILIDAD MEGA / CATS
========================================================= */

.home-cats { display: grid; }
.home-mega { display: block; }

@media (max-width: 900px) {
  .home-mega { display: none; }
}


/* =========================================================
   TABLET  (max 900px) — cats: 3 + 3
========================================================= */

@media (max-width: 900px) {

  .home-cats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px var(--pad-x) 24px;
  }

  .cat h2,
  .cat-caption {
    font-size: .88rem;
  }

  .cat { min-width: 0; }

  .cat img,
  .cat-img-wrap {
    aspect-ratio: 1 / 1;
  }
}


/* =========================================================
   MOBILE  (max 560px) — cats: 2 columnas
========================================================= */

@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: 2px;
    padding: 8px 12px 14px;
    border-top: 1px solid #eee;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
  }

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

  .nav-links a {
    font-size: 1.05rem;
    padding: 10px 12px;
  }

  /* hero */
  .hero { padding: 20px 14px 18px; }
  .hero h1 { font-size: 1.3rem; }

  /* cats: 2 columnas */
  .home-cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 12px 20px;
  }

  .cat h2,
  .cat-caption {
    font-size: .72rem;
    margin-top: 5px;
  }

  /* text */
  .textoFluo { font-size: .93rem; }
  .textoFluo h2 { font-size: 1.25rem; }
  .textoFluo h3 { font-size: 1rem; }
}


/* =========================================================
   HAMBURGER JS  — pegar en el <head> o antes de </body>:

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

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