@charset "UTF-8";

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

:root{
  --brand:#6b4d5e;
  --bg:#6b4d5e;
  --ink:#333;
  --muted:#6b7280;

  --a1:#df8c00;
  --a2:#fab553;
  --a3:#e86a00;

  --font-display:'Outfit',system-ui,sans-serif;
  --font-sans:'Inter',system-ui,sans-serif;

  --header-h:56px;

  --content-w:860px;
  --pad:24px;
  --gap:20px;
  --hair:#e5e7eb;
      --card-h: 150px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  background:var(--bg);
}
img{display:block;max-width:100%}
a{color:var(--brand);text-decoration:none}
h1,h2,h3{font-family:var(--font-display);margin:0}

.inner{max-width:860px;margin:0 auto;padding:0 var(--pad)}

/* =========================
   HEADER — BRAND + BREADCRUMB
========================= */

.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--header-h);
  background:var(--brand);
  z-index:1000;
  display:flex;
  justify-content:center; /* centra el contenedor */
}

.header .inner{
  width:100%;
  max-width:var(--content-w);
  padding:0 var(--pad);
  display:flex;
  align-items:center;
  justify-content:flex-start; /* texto a la izquierda */
  text-align:left;
}

.page-home .header .inner{
  justify-content:center; /* ← SOLO HOME centrado */
}

/* brand */
.header .brand a{
  font-family:var(--font-display);
  font-weight:700;
  font-size:26px;
  color:#fff;
  line-height:1;
  white-space:nowrap;
}

/* líneas */
.header-lines{
  position:fixed;
  top:var(--header-h);
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:var(--content-w);
  padding:0;
  z-index:999;
    background: #6b4d5e;
    padding-bottom:4px; /* ajustá acá fino */
}
.header-lines .line{height:4px;margin-bottom:3px}
.header-lines .line:last-child{margin-bottom:0}
.line--1{background:#ef2b2b}
.line--2{background:#ff9903}
.line--3{background:#fbbd16}


/* breadcrumbs en header */
.breadcrumbs--header{
  display:flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-display);
  font-size:15px;
  color:rgba(255,255,255,.85);
}

.breadcrumbs--header .sep{
  font-size:22px;
  font-weight:700;
  color:var(--a2);
  line-height:1;
  margin:0 8px;
}

.breadcrumbs--header .crumb--nivel{
  font-weight:700;
  color:var(--a2); /* amarillo marca */
}


/* =========================
   BREADCRUMBS HEADER (GLOBAL)
========================= */

.breadcrumbs--header{
  color:rgba(255,255,255,.85);
}

.breadcrumbs--header .crumb--section{
  color:rgba(255,255,255,.85);
  font-weight:600;
}

.breadcrumbs--header .crumb--nivel{
  color:var(--a2);
  font-weight:700;
}

.breadcrumbs--header .sep{
  color:var(--a2);
  font-size:22px;
  font-weight:700;
  line-height:1;
}


.header .brand{
  margin-right:8px;
}

main{
  padding-top: calc(var(--header-h) + 24px);
}


/* CARDS */

.card{
  display:block;
  border:4px solid var(--accent,var(--hair));
  background:#fff;
  overflow:hidden;
    
      position:relative;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

/* imagen */
.card .thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* hover */
@media (hover:hover) and (pointer:fine){
  .card:hover{
    transform:translateY(-2px);
    border-color:var(--accent);
    box-shadow:
      0 8px 22px rgba(0,0,0,.18),
      0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
  }
}


@media (hover:hover) and (pointer:fine){
  .card .thumb{
    transition:
      transform .25s ease,
      filter .25s ease;
  }

  .card:hover .thumb{
    transform:scale(1.06);
    filter:
      brightness(1.08)
      contrast(1.05)
      saturate(1.08);
  }
}

/* =========================
   SECTION AFTER HERO — DESKTOP
========================= */

.section-after-hero{
  width: calc(100% - (var(--pad) * 2));
  margin-left: auto;
  margin-right: auto;
  padding: var(--pad);
  background: ...
}


/* =========================
   TIPOGRAFÍA EDITORIAL — DESK
========================= */

.section-after-hero h2{
  font-size: clamp(20px, 1.8vw, 26px);
  margin-top: 32px;
  margin-bottom: 10px;
  color: #944976;
}

.section-after-hero h3{
  font-size: clamp(17px, 1.6vw, 22px);
  margin-top: 24px;
  margin-bottom: 8px;
  color: #5a6370;
}

.section-after-hero p{
  margin: 0 0 12px;
}

/* ======================
   LISTAS — DESK
====================== */

.section-after-hero ul{
  list-style: none;
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid rgba(0,0,0,.08);
}

.section-after-hero ul li{
  margin: 10px 0;
}

.section-after-hero ul li::before{
  content:none;
}

.section-after-hero ul li a{
  font-weight:700;
  text-decoration:none;
}

/* ======================
   FAQ — DESK
====================== */

.section-after-hero dl{
  margin: 24px 0;
  padding: 0;
}

.section-after-hero dt{
  font-weight:600;
  margin:16px 0 4px;
  color:var(--ink);
}

.section-after-hero dd{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.55;
}

/* ======================
   TESTIMONIOS — DESK
====================== */

.section-after-hero blockquote{
  margin:20px 0;
  padding:0 16px;
  border-left:4px solid rgba(0,0,0,.12);
}

.section-after-hero blockquote p{
  margin:0;
  font-style:italic;
  color:var(--ink);
}

.section-after-hero blockquote cite{
  display:block;
  margin-top:6px;
  font-size:14px;
  color:var(--muted);
  font-style:normal;
}

/* =========================
   HERO LINES — DESK
========================= */

.section-after-hero .hero-lines{
  width: calc(100% + (var(--pad) * 2));
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  margin-bottom: 24px;
}

.section-after-hero .hero-line{
  height:4px;
  width:100%;
  margin-bottom:3px;
}

.section-after-hero .hero-line--1{background:#ef2b2b;}
.section-after-hero .hero-line--2{background:#ff9903;}
.section-after-hero .hero-line--3{background:#fbbd16;}




.section-after-hero {
   
  
  background: linear-gradient(
    to bottom,
    #f6f4f2 0%,
    #f6f4f2cc 35%,
    #f6f4f24d 70%,
    #ffffff 100%
  );
}

.footer{
  background:var(--brand);
  color:#fff;
  padding:24px 0;

  font-family:var(--font-display);
}

.footer .inner{
  max-width:var(--content-w);
  margin:0 auto;
  padding:0 var(--pad);

  display:flex;
  justify-content:center;
  align-items:center;
  gap:32px;
}

.footer a{
  color:#fff;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;

  opacity:.65;
  transition:opacity .2s ease;
}

@media (hover:hover){
  .footer a:hover{
    opacity:1;
  }
}





.nivel-badge{
 margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;

  color: #9d4a00;
  text-align: left;
}



/* =========================
   BREADCRUMBS (GLOBAL)
========================= */

    
    

.breadcrumbs{
  display:flex;
  align-items:center;
  gap:6px;
  font-family: var(--font-display);
  font-size:18px;
  color: var(--muted);
  line-height:1.35;
  margin:0;
}



.breadcrumbs a{
  color: inherit;
  text-decoration:none;
}
.breadcrumbs a:hover{ text-decoration:underline; }

.breadcrumbs .crumb--home::before{
  content:"";
  width:8px; height:8px;
  border-radius:50%;
  background: currentColor;
  display:inline-block;
  margin-right:8px;
}



.sr-only {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ad-spacer {
  height: 40px;
}

.br-mobile{display:none;}
@media (max-width:640px){
  .br-mobile{display:inline;}
}

/* ADS */
.adsense-wrap{
    max-width:100%;
margin:0;}
.ad-spacer{height:40px}







/* ===== LAYOUT JUEGO + ASIDE (GLOBAL) ===== */

/* el fondo del layout ocupa todo el ancho del inner */
.page-layout{
  display:block;
  background:#ece8e3;
  padding-bottom: var(--pad);
  margin-top:calc(-1 * var(--pad));
  padding-top:var(--pad);
}

/* grilla real: juego + aside */
.page-main{
  display:grid;
  grid-template-columns: var(--game-w) minmax(0,1fr);
  gap:24px;
  align-items:start;

  width:100%;
  max-width:none;
  min-width:0;

  padding-left:var(--pad);
  padding-right:var(--pad);
}

/* juego */
.page-main > .game-slot{
  grid-column:1;
  min-width:0;
}

/* aside */
.page-main > .page-aside{
  grid-column:2;
  min-width:0;
  overflow:visible;
  align-self:start;
  justify-self:end;
  max-width:260px;
}

/* el inner deja pasar el fondo del layout */
.page-game main > .inner{
  padding-left:0;
  padding-right:0;
  padding-top: var(--pad);
}

.page-game .inner{
  padding-left:0;
  padding-right:0;
}
/* =========================
   ASIDE — JDMG
========================= */

.page-aside{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* tarjeta contenedora */
.aside-card{
  background:#f6f4f2;
  border-radius:0px;
  padding:14px 14px 10px;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

/* título */
.aside-card h3{
  font-family:var(--font-display);
  font-size:14px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--brand);
  margin:0 0 18px;
  padding-bottom:12px;
  padding-top:4px;
  border-bottom:1px solid rgba(0,0,0,.12);
  line-height:1.1;
  text-align:center;
}

/* ítems */
.aside-game{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:10px;
  align-items:center;
  text-decoration:none;
  padding:8px 6px;
  transition:background .15s ease, transform .15s ease;
}

/* hover */
@media (hover:hover){
  .aside-game:hover{
    background:rgba(0,0,0,.05);
    transform:translateX(2px);
  }
}

/* imagen */
.aside-game img{
  width:48px;
  height:48px;
  border-radius:0px;
  object-fit:cover;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}

/* texto */
.aside-game span{
  font-size:14px;
  line-height:1.25;
  font-weight:600;
  color:#1f2937;
}


/* =========================
   ASIDE — TEXTO 2 LÍNEAS
========================= */

.aside-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1.15;
}

/* Línea 1: tipo + nivel */
.aside-text .aside-meta{
  font-size:14px;
  font-weight:800;
  color:var(--brand);
}

/* Línea 2: tema */
.aside-text .aside-title{
  font-size:14px;
  font-weight:700;
  color:var(--a3);
}


/* MEMORIA: que .page-layout toque el borde del .inner */
.page-memoria main > .inner{
  padding-left:0 !important;
  padding-right:0 !important;
}

/* y el contenido interno mantiene el padding normal */
.page-memoria .page-main{
  padding-left:var(--pad) !important;
  padding-right:var(--pad) !important;
}

/* =========================
   INFO PAGES (Privacidad / Quiénes somos)
========================= */

.page-info-main{
  max-width: 860px;
  margin: 0 auto;
  padding: 92px 24px 64px;
      background:#fff;
}

.page-info-main p{
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
}

.page-info-main a{
  color: var(--brand);
  text-decoration: underline;
}

.page-info-main a:hover{
  text-decoration: none;
}

/* Breadcrumb actual — destacado */
.breadcrumbs--header{
  color:var(--a2); /* naranja */
  font-weight:600;
}






/* ======================================================================================================================================================
   HOME — MOBILE LIMPIO
====================================================================================================================================================== */
@media (max-width:640px){

  /* Apagar SOLO desktop */
  .home-layout{
    display:none;
  }

  /* Encender sección mobile */
  .home-memoria-mobile{
    display:block;
    padding:0 16px;
    margin-bottom:28px;
  }

  .home-memoria-mobile h2{
    font-size:20px;
    margin:0 0 12px;
    color:var(--brand);
  }

  /* Grid mobile real */
  .home-memoria-mobile .mobile-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
  }

  /* Card */
  .home-memoria-mobile .card{
    display:block;
    aspect-ratio:1 / 1;
  }

  /* Imagen */
  .home-memoria-mobile .card .thumb{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  /* Badge */
  .home-memoria-mobile .nivel-badge{
    font-size:13px;
    font-weight:600;
    margin-top:6px;
    text-align:center;
  }



    /* FULL BLEED REAL — submenús */
.page-sudokus .section-after-hero,
.page-memoria .section-after-hero,
.page-sopa .section-after-hero{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
    
    

  .page-home .header .inner,
  .page-sudokus .header .inner,
  .page-memoria .header .inner,
  .page-sopa .header .inner{
    justify-content:center;
    padding-left:16px;
    padding-right:16px;
  }

  .header .brand{
    margin:0;
    max-width:100%;
  }

  .header .brand a{
    display:block;
    font-size:22px;
    line-height:1.2;
    white-space:normal;    
    text-align:center;
  }
    

    
  .section-after-hero{
    width:100%;
      max-width:none;
    margin-left:0;
    margin-right:0;
    padding-left:16px;
    padding-right:16px;
    padding:20px 16px 28px;
  }
    


  /* PÁRRAFOS */
  .section-after-hero p{
    font-size:20px;
    line-height:1.7;
    margin:0 0 16px;
  }

  /* H2 */
  .section-after-hero h2{
    font-size:26px;
    line-height:1.35;
    margin-top:28px;
    margin-bottom:12px;
  }

  /* H3 */
  .section-after-hero h3{
    font-size:24px;
    line-height:1.45;
    margin-top:24px;
    margin-bottom:10px;
  }

  /* LISTAS */
  .section-after-hero ul{
    padding-left:20px;
    margin:0 0 18px;
  }

  .section-after-hero ul li{
    font-size:20px;
    line-height:1.65;
    margin:10px 0;
  }

  .section-after-hero ul li a{
    font-weight:700;
  }

  /* FAQ */
  .section-after-hero dt{
    font-size:20px;
    line-height:1.5;
    margin:18px 0 6px;
  }

  .section-after-hero dd{
    font-size:20px;
    line-height:1.65;
    margin:0 0 14px;
  }

  /* BLOCKQUOTE / TESTIMONIOS */
  .section-after-hero blockquote{
    padding-left:20px;
    margin:20px 0;
  }

  .section-after-hero blockquote p{
    font-size:20px;
    line-height:1.65;
  }

  .section-after-hero blockquote cite{
    font-size:18px;
    margin-top:6px;
    display:block;
  }

    
    
 
  /* Breadcrumbs fuera del header */
   /* HEADER LINES — bloque completo */
  .header-lines{
    position:fixed;
    top:var(--header-h);
    left:50%;
    transform:translateX(-50%);
    width:100%;
    max-width:var(--content-w);
    z-index:999;
    background:var(--brand); /* asegura el “aire” violeta */
  }

  /* Breadcrumbs debajo del bloque de líneas */
  .breadcrumbs--header{
    position:fixed;
    top:calc(var(--header-h) + 22px); /* header + líneas + aire */
    left:50%;
    transform:translateX(-50%);
    width:100%;
    max-width:var(--content-w);
    padding:6px 16px 12px;
    background:#f6f4f2;
    color:var(--muted);
    font-size:15px;
    z-index:998;
    justify-content:left;
  }
  .breadcrumbs--header .crumb--section{
    color:var(--brand);
    font-size:16px;
  }
  .breadcrumbs--header .sep{
    color:var(--brand);
  }

  .breadcrumbs--header .crumb--nivel{
    color:var(--brand);
    font-weight:700;
  }

  /* Empujar el contenido */

    
    .page-info .breadcrumbs--header{
  display:none;
}
   .page-info main{
  padding-top:80px;
} 
    
.page-sopa main,
.page-sudokus main{
  padding-top: calc(var(--header-h) + 22px + 40px);
}

  .page-memoria .page-layout{
    margin-top: 6px;
  }
    
    
    
}


