/* Fuentes servidas desde el propio servidor (Fredoka y Caveat) */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fuentes/caveat-latin-ext-60fd7f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fuentes/caveat-latin-14ecf1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fuentes/caveat-latin-ext-60fd7f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fuentes/caveat-latin-14ecf1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-ext-4667f6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-11adc6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-ext-4667f6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-11adc6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-ext-4667f6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-11adc6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-ext-4667f6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fuentes/fredoka-latin-11adc6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cafetería Glissando · crema, turquesa, mostaza y coral */
:root {
  --crema: #fff7ea; --crema-2: #fdebd0; --tinta: #2b2118; --tinta-2: #5a4a3c;
  --turq: #12a39d; --turq-o: #0b6f6b; --mostaza: #ffc93c; --coral: #ff7a59; --lima: #b7d84b; --rosa: #ff8fb8;
  --t: 'Fredoka', 'Comic Sans MS', system-ui, sans-serif; --m: 'Caveat', cursive;
  --sombra: 4px 4px 0 var(--tinta); --rebote: cubic-bezier(.34, 1.56, .64, 1);
}
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body { background: var(--crema); color: var(--tinta); font-family: var(--t); font-size: 1.08rem; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.sin-scroll { overflow: hidden; }
::selection { background: var(--mostaza); }
a { color: var(--turq-o); text-decoration: none; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--t); font-weight: 700; line-height: 1.1; }
.container-xl { padding-left: clamp(16px, 4vw, 2.5rem); padding-right: clamp(16px, 4vw, 2.5rem); }
.saltar { position: absolute; top: 8px; left: 8px; z-index: 3000; background: #fff; padding: .5rem 1rem; }

/* Notas musicales flotando de fondo */
.notas-fondo { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.notas-fondo i { position: absolute; bottom: -40px; font-style: normal; color: var(--turq); opacity: .16; animation: subir linear infinite; }
@keyframes subir { to { transform: translate(var(--x, 30px), -115vh) rotate(var(--g, 30deg)); } }
main, .cab, .pie { position: relative; z-index: 1; }

/* Bloques */
.seccion { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.cab-sec { max-width: 760px; margin: 0 auto 3rem; }
.chapa { display: inline-block; font-weight: 600; font-size: .9rem; padding: .3rem .95rem; border-radius: 999px; background: var(--mostaza); color: var(--tinta); border: 2px solid var(--tinta); box-shadow: 2px 2px 0 var(--tinta); margin-bottom: 1.1rem; transform: rotate(-2deg); }
.chapa-blanca { background: #fff; }
.titulo { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--tinta-2); }
.marcador { position: relative; white-space: nowrap; z-index: 0; }
.marcador::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: .05em; height: .42em; background: var(--mostaza); border-radius: 6px; z-index: -1; transform: rotate(-1.5deg) scaleX(0); transform-origin: left; transition: transform .8s var(--rebote) .2s; }
.js .visto .marcador::after, .js .visto.marcador::after, .listo .marcador::after, html:not(.js) .marcador::after { transform: rotate(-1.5deg) scaleX(1); }
.mini-tit { font-size: 1.35rem; margin: 1.6rem 0 .8rem; }

/* Botones */
.btn-gli { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.4rem; border-radius: 999px; background: #0b7e79; color: #fff; border: 2.5px solid var(--tinta); box-shadow: var(--sombra); font-weight: 600; font-size: 1rem; transition: transform .25s var(--rebote), box-shadow .25s; cursor: pointer; }
.btn-gli:hover { color: #fff; transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--tinta); }
.btn-gli:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.btn-blanco { background: #fff; color: var(--tinta); }
.btn-blanco:hover { color: var(--tinta); background: var(--mostaza); }
.btn-verde { background: #25d366; color: #fff; }
.btn-grande { padding: .95rem 1.8rem; font-size: 1.12rem; }
.btn-sm-gli { padding: .5rem 1rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--tinta); }

/* Cabecera */
.cab { position: fixed; inset: 0 0 auto; z-index: 1000; transition: transform .4s, background .3s, box-shadow .3s; }
.cab.compacta { background: rgba(255, 247, 234, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 3px 0 var(--tinta); }
.cab.oculta { transform: translateY(-110%); }
.cab-barra { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: height .3s; }
.cab.compacta .cab-barra { height: 72px; }
.logo img { height: 62px; width: auto; transition: height .3s, transform .4s var(--rebote); }
.cab.compacta .logo img { height: 48px; }
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.cab-nav { gap: .2rem; }
.cab-nav a { color: var(--tinta); font-weight: 600; padding: .45rem .85rem; border-radius: 999px; transition: background .2s, transform .2s var(--rebote); }
.cab-nav a:hover { background: var(--mostaza); color: var(--tinta); transform: rotate(-3deg); }
.cab-acciones { display: flex; align-items: center; gap: .7rem; }
.estado { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 2px solid var(--tinta); }
.estado-luz { width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.abierto .estado-luz { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: latir 1.6s infinite; }
.cerrado .estado-luz { background: var(--coral); }
@keyframes latir { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hamb { width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid var(--tinta); background: var(--mostaza); position: relative; box-shadow: 3px 3px 0 var(--tinta); }
.hamb span { position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: var(--tinta); transition: transform .3s, opacity .3s; }
.hamb span:nth-child(1) { top: 14px; } .hamb span:nth-child(2) { top: 21px; } .hamb span:nth-child(3) { top: 28px; }
.menu-abierto .hamb span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-abierto .hamb span:nth-child(2) { opacity: 0; }
.menu-abierto .hamb span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-movil { position: fixed; inset: 0; z-index: 990; background: var(--turq); display: flex; align-items: center; justify-content: center; clip-path: circle(0 at calc(100% - 40px) 46px); transition: clip-path .6s var(--rebote); }
.menu-abierto .menu-movil { clip-path: circle(150% at calc(100% - 40px) 46px); }
.menu-movil nav { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 6rem 1rem 2rem; }
.menu-movil nav > a { color: #fff; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; }
.mm-botones { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }

/* Héroe */
.heroe { padding: 8.5rem 0 4rem; position: relative; overflow: hidden; }
.heroe::before { content: ''; position: absolute; width: 640px; height: 640px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 163, 157, .2), transparent 65%); z-index: -1; }
.heroe-titulo { font-size: clamp(2.5rem, 6.2vw, 4.6rem); margin-bottom: 1.2rem; letter-spacing: -.01em; }
.heroe-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--tinta-2); max-width: 34rem; }
.heroe-botones { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; }
.pegatinas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pegatinas li { background: #fff; border: 2px dashed var(--turq); color: var(--turq-o); font-weight: 600; font-size: .95rem; padding: .35rem .8rem; border-radius: 12px; transform: rotate(var(--r)); transition: transform .3s var(--rebote); }
.pegatinas li:hover { transform: rotate(0) scale(1.08); }
.heroe-ilus { position: relative; }
.heroe-ilus img { border-radius: 32px; border: 3px solid var(--tinta); box-shadow: 10px 10px 0 var(--turq); transform: rotate(2deg); width: 100%; animation: flotar 6s ease-in-out infinite; }
@keyframes flotar { 50% { transform: rotate(1deg) translateY(-10px); } }
.taza { position: absolute; left: -26px; bottom: -26px; width: 96px; height: 96px; background: var(--mostaza); border: 3px solid var(--tinta); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--sombra); }
.taza-cuerpo { font-size: 3rem; line-height: 1; }
.vapor { position: absolute; top: -28px; width: 8px; height: 26px; border-radius: 8px; background: rgba(90, 74, 60, .35); filter: blur(2px); animation: vapor 2.4s ease-in-out infinite; }
.v1 { left: 34px; } .v2 { left: 46px; animation-delay: .6s; } .v3 { left: 58px; animation-delay: 1.2s; }
@keyframes vapor { 0% { transform: translateY(10px) scaleY(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-22px) scaleY(1.2) translateX(6px); opacity: 0; } }
.bocadillo-txt { position: absolute; right: -10px; top: -26px; background: #fff; border: 2.5px solid var(--tinta); border-radius: 20px; padding: .55rem 1rem; font-family: var(--m); font-size: 1.45rem; line-height: 1.05; transform: rotate(5deg); box-shadow: var(--sombra); animation: globo 3s ease-in-out infinite; }
.bocadillo-txt::after { content: ''; position: absolute; left: 28px; bottom: -14px; width: 22px; height: 22px; background: #fff; border-right: 2.5px solid var(--tinta); border-bottom: 2.5px solid var(--tinta); transform: rotate(35deg); }
@keyframes globo { 50% { transform: rotate(2deg) scale(1.04); } }
.js .heroe-txt > * { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s var(--rebote); }
.js .listo .heroe-txt > * { opacity: 1; transform: none; }
.js .listo .heroe-txt > *:nth-child(2) { transition-delay: .1s; } .js .listo .heroe-txt > *:nth-child(3) { transition-delay: .2s; } .js .listo .heroe-txt > *:nth-child(4) { transition-delay: .3s; } .js .listo .heroe-txt > *:nth-child(5) { transition-delay: .4s; }
.js .heroe-titulo { opacity: 1 !important; transform: none !important; }

/* Cinta */
.cinta { background: var(--turq); border-top: 3px solid var(--tinta); border-bottom: 3px solid var(--tinta); overflow: hidden; transform: rotate(-1.2deg); margin: 1rem -10px; position: relative; z-index: 2; }
.cinta-pista { display: flex; width: max-content; padding: .8rem 0; animation: cinta 30s linear infinite; }
.cinta span { color: #fff; font-weight: 700; font-size: 1.35rem; padding: 0 1rem; white-space: nowrap; }
.cinta i { font-style: normal; color: var(--mostaza); font-size: 1.5rem; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Estrellas */
.estrella { position: relative; background: #fff; border: 3px solid var(--tinta); border-radius: 26px; padding: 1rem 1rem 1.6rem; box-shadow: 8px 8px 0 var(--coral); transform: rotate(var(--r, 0)); transition: transform .4s var(--rebote); text-align: center; }
.estrella:hover { transform: rotate(0) translateY(-6px); }
.estrella-foto { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; margin-bottom: 1.2rem; }
.estrella-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.estrella:hover img { transform: scale(1.07); }
.estrella h3 { font-size: 1.9rem; }
.estrella p { color: var(--tinta-2); margin: 0 .5rem; }
.sello { position: absolute; top: -18px; right: -14px; width: 92px; height: 92px; border-radius: 50%; background: var(--coral); color: #fff; border: 3px solid var(--tinta); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--m); font-size: 1.35rem; line-height: .95; transform: rotate(12deg); animation: sello 4s ease-in-out infinite; }
.sello.amarillo { background: var(--mostaza); color: var(--tinta); }
@keyframes sello { 50% { transform: rotate(-6deg) scale(1.06); } }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 4.5rem; }
.servicio { background: var(--fondo, #fff); border: 3px solid var(--tinta); border-radius: 24px; padding: 1.6rem; box-shadow: var(--sombra); transition: transform .3s var(--rebote), box-shadow .3s; }
.servicio:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 8px 8px 0 var(--tinta); }
.srv-emo { display: inline-block; font-size: 2.8rem; line-height: 1; margin-bottom: .6rem; transition: transform .4s var(--rebote); }
.servicio:hover .srv-emo { transform: scale(1.25) rotate(-12deg); }
.servicio h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.servicio p { margin: 0; color: var(--tinta-2); }

/* Nosotros */
.nosotros { background: var(--crema-2); border-top: 3px dashed rgba(43, 33, 24, .25); border-bottom: 3px dashed rgba(43, 33, 24, .25); }
.razones { list-style: none; padding: 0; margin: 0; }
.razones li { position: relative; padding: .45rem 0 .45rem 2.2rem; font-size: 1.08rem; }
.razones li::before { content: '♪'; position: absolute; left: .2rem; top: .25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--turq); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.collage { position: relative; height: clamp(420px, 46vw, 560px); }
.pol { display: block; background: #fff; padding: 12px 12px 14px; border: 2px solid var(--tinta); box-shadow: 6px 6px 0 rgba(43, 33, 24, .2); transform: rotate(var(--r, 0)); transition: transform .4s var(--rebote), box-shadow .3s; margin: 0; }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pol figcaption, .pol-pie { display: block; font-family: var(--m); font-size: 1.5rem; text-align: center; color: var(--tinta); margin-top: .4rem; line-height: 1.1; }
.collage .pol { position: absolute; width: 62%; }
.collage .p1 { left: 0; top: 0; }
.collage .p2 { right: 0; bottom: 0; width: 52%; }
.collage .pol:hover, .polaroids .pol:hover { transform: rotate(0) scale(1.04); z-index: 3; box-shadow: 10px 10px 0 rgba(43, 33, 24, .25); }
.nota-flota { position: absolute; font-size: 3rem; color: var(--turq); animation: flotar 4s ease-in-out infinite; }
.n1 { right: 8%; top: 4%; } .n2 { left: 6%; bottom: 8%; color: var(--coral); animation-delay: 1s; }

/* Piano */
.piano-sec { padding-top: clamp(3rem, 7vw, 5rem); }
.piano { display: flex; justify-content: center; margin: 2.2rem auto .8rem; max-width: 900px; padding: 18px 18px 22px; background: var(--tinta); border-radius: 22px 22px 26px 26px; box-shadow: 0 10px 0 #1a130d; touch-action: none; user-select: none; }
.tecla { flex: 1; height: 190px; margin: 0 2px; border: 0; border-radius: 0 0 10px 10px; background: linear-gradient(#fff, #f3ece0); box-shadow: inset 0 -8px 0 #ddd2bf; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; cursor: pointer; transition: transform .08s; }
.tecla span { font-size: .72rem; font-weight: 600; color: #a89880; }
.tecla.on { background: linear-gradient(var(--mostaza), #ffe08a); box-shadow: inset 0 -3px 0 #e2a90b; transform: translateY(4px); }
.tecla.on::before { content: '♪'; position: absolute; top: -34px; left: 50%; transform: translateX(-50%); color: var(--turq); font-size: 1.6rem; animation: nota-sale .7s forwards; }
@keyframes nota-sale { to { transform: translate(-50%, -40px); opacity: 0; } }
.piano-ayuda { color: var(--tinta-2); font-size: .95rem; }

/* Eldense */
.eldense { background: repeating-linear-gradient(90deg, #003c8f 0 70px, #c8102e 70px 140px); color: #fff; padding: clamp(4rem, 8vw, 6rem) 0; border-top: 3px solid var(--tinta); border-bottom: 3px solid var(--tinta); position: relative; overflow: hidden; }
.eldense::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 20, 60, .85), rgba(0, 20, 60, .45)); }
.eldense .container-xl { position: relative; }
.eldense .titulo { color: #fff; }
.eldense .sub { color: rgba(255, 255, 255, .9); }
.eldense-nombre { color: var(--mostaza); }
.balon-zona { position: relative; height: 240px; display: flex; align-items: flex-end; justify-content: center; }
.balon { font-size: 5.5rem; line-height: 1; animation: botar 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate; cursor: pointer; filter: drop-shadow(0 12px 6px rgba(0, 0, 0, .3)); }
@keyframes botar { from { transform: translateY(-140px) rotate(0); } to { transform: translateY(0) rotate(200deg); } }
.gol { position: absolute; top: 10px; font-size: 3rem; font-weight: 700; color: var(--mostaza); text-shadow: 3px 3px 0 var(--tinta); opacity: 0; transform: scale(.5) rotate(-8deg); transition: all .4s var(--rebote); }
.balon-zona.gol-on .gol { opacity: 1; transform: scale(1) rotate(-8deg); }

/* Polaroids */
.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.polaroids .pol { color: var(--tinta); cursor: zoom-in; }

/* Dónde y cuándo */
.tarjeta { height: 100%; background: #fff; border: 3px solid var(--tinta); border-radius: 26px; padding: 2rem; box-shadow: 8px 8px 0 var(--turq); }
.tarjeta h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.partitura { position: relative; overflow: hidden; }
.pentagrama { position: relative; height: 54px; margin: .6rem 0 1.2rem; }
.pentagrama span { display: block; height: 2px; background: var(--tinta); opacity: .55; margin-bottom: 10px; }
.clave { position: absolute; left: 0; top: -22px; font-size: 5rem; font-style: normal; line-height: 1; color: var(--turq); }
.h-fila { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.25rem; padding: .6rem 0; border-bottom: 2px dashed var(--crema-2); margin: 0; }
.estado-grande { display: inline-flex; align-items: center; gap: .55rem; margin: 1.4rem 0 0; font-weight: 600; font-size: 1.15rem; padding: .5rem 1rem; border-radius: 999px; background: var(--crema); border: 2px solid var(--tinta); }
.dato-grande { font-size: 1.3rem; font-weight: 500; }

/* Legal y 404 */
.legal { padding-top: 9rem; }
.texto-legal { max-width: 48rem; background: #fff; border: 3px solid var(--tinta); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.6rem); }
.texto-legal h2 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }
.texto-legal h2:first-child { margin-top: 0; }
.error-pag { padding-top: 10rem; }
.error-num { font-size: clamp(6rem, 20vw, 11rem); font-weight: 700; line-height: 1; margin: 0; color: var(--turq); }
.taza-404 { display: inline-block; animation: flotar 3s ease-in-out infinite; }

/* Pie */
.pie { background: var(--turq-o); color: #e9fbf9; padding: 3rem 0 2rem; margin-top: 4rem; }
.pie a { color: #fff; } .pie a:hover { color: var(--mostaza); }
.pie-ola { position: absolute; top: -79px; left: 0; width: 100%; height: 80px; fill: var(--turq-o); }
.pie-logo { height: 70px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.pie-lema { font-size: 1.15rem; max-width: 26rem; }
.pie-tit { font-family: var(--m); font-size: 1.7rem; color: var(--mostaza); margin-bottom: .3rem; }
.redes { display: flex; gap: .7rem; }
.redes a { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 2.5px solid var(--tinta); display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--tinta); transition: transform .3s var(--rebote); }
.redes a:hover { transform: rotate(-10deg) scale(1.1); }
.redes svg { width: 24px; height: 24px; fill: none; stroke: var(--turq-o); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.redes .lleno { fill: var(--turq-o); }
.pie-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 2px dashed rgba(255, 255, 255, .3); font-size: .9rem; }
.pie-legal a { text-decoration: underline; }
.wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 980; width: 60px; height: 60px; border-radius: 50%; background: #25d366; border: 3px solid var(--tinta); box-shadow: var(--sombra); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; transition: transform .3s var(--rebote); animation: saludar 4s ease-in-out infinite 2s; }
.wa-flotante:hover { transform: scale(1.12) rotate(-10deg); }
@keyframes saludar { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-14deg); } 96% { transform: rotate(14deg); } }

/* Visor */
.lb { position: fixed; inset: 0; z-index: 3000; background: rgba(43, 33, 24, .92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lb.abierta { opacity: 1; visibility: visible; }
.lb figure { margin: 0; background: #fff; padding: 14px 14px 10px; transform: rotate(-1.5deg); }
.lb img { max-width: 86vw; max-height: 74vh; object-fit: contain; }
.lb figcaption { font-family: var(--m); font-size: 1.8rem; text-align: center; color: var(--tinta); }
.lb button { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--tinta); background: var(--mostaza); font-size: 1.8rem; line-height: 1; box-shadow: var(--sombra); }
.lb-cerrar { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; margin-top: -27px; } .lb-sig { right: 18px; top: 50%; margin-top: -27px; }

/* Aparición */
.js [data-rv] { opacity: 0; transform: translateY(26px) rotate(var(--r, 0)); transition: opacity .7s ease var(--d, 0s), transform .8s var(--rebote) var(--d, 0s); }
.js [data-rv].visto { opacity: 1; transform: rotate(var(--r, 0)); }
.js .estrella[data-rv].visto:hover, .js .pol[data-rv].visto:hover { transform: rotate(0) scale(1.04); }

@media (max-width: 991.98px) { .servicios { grid-template-columns: repeat(2, 1fr); } .polaroids { grid-template-columns: repeat(2, 1fr); } .heroe { padding-top: 7rem; } .tecla { height: 150px; } }
@media (max-width: 575.98px) {
  .cab-barra { height: 76px; } .logo img { height: 46px; }
  .estado { font-size: .75rem; padding: .3rem .6rem; }
  .servicios { grid-template-columns: 1fr; }
  .polaroids { gap: 1rem; } .pol-pie, .pol figcaption { font-size: 1.2rem; }
  .heroe-botones .btn-gli { flex: 1 1 100%; }
  .bocadillo-txt { font-size: 1.1rem; right: 0; }
  .taza { width: 72px; height: 72px; left: -6px; } .taza-cuerpo { font-size: 2.2rem; }
  .tecla { height: 120px; margin: 0 1px; } .tecla span { display: none; } .piano { padding: 10px 10px 14px; }
  .collage { height: 380px; }
  .h-fila { font-size: 1.05rem; flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-rv], .js .heroe-txt > * { opacity: 1; transform: none; }
  .notas-fondo { display: none; }
}

/* Página del Eldense */
.titulo-sm { font-size: 1.6rem; margin-bottom: 1rem; }
.eld-cab { background: repeating-linear-gradient(90deg, #003c8f 0 70px, #c8102e 70px 140px); color: #fff; padding: 9rem 0 4rem; position: relative; border-bottom: 3px solid var(--tinta); }
.eld-cab::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 20, 60, .9), rgba(0, 20, 60, .55)); }
.eld-cab .container-xl { position: relative; }
.eld-cab .titulo { color: #fff; } .eld-cab .sub { color: rgba(255, 255, 255, .9); }
.eld-datos { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.4rem; }
.eld-pos { background: #fff; color: var(--tinta); border: 2.5px solid var(--tinta); border-radius: 14px; padding: .4rem .9rem; box-shadow: 3px 3px 0 var(--tinta); font-size: 1.05rem; }
.eld-pos b { font-size: 1.4rem; color: #003c8f; }
.racha { display: inline-flex; gap: .3rem; }
.racha i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 2.5px solid var(--tinta); }
.r-v { background: #22c55e; color: #fff; } .r-e { background: var(--mostaza); color: var(--tinta); } .r-d { background: var(--coral); color: #fff; }
.prox { background: #fff; color: var(--tinta); border: 3px solid var(--tinta); border-radius: 26px; padding: 1.6rem; box-shadow: 8px 8px 0 var(--mostaza); text-align: center; transform: rotate(1.5deg); }
.prox-tit { font-family: var(--m); font-size: 1.8rem; color: #c8102e; margin: 0; }
.prox-eq { display: flex; align-items: center; justify-content: center; gap: .7rem; font-size: 1.5rem; font-weight: 700; margin: .3rem 0 .6rem; flex-wrap: wrap; }
.prox-eq i { font-style: normal; font-size: 1rem; background: var(--mostaza); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--tinta); }
.prox-fecha { color: var(--tinta-2); font-size: .98rem; }
.cuenta { display: flex; justify-content: center; gap: .5rem; margin: .8rem 0; }
.cuenta span { display: flex; flex-direction: column; align-items: center; background: #003c8f; color: #fff; border-radius: 14px; padding: .5rem .7rem; min-width: 64px; font-size: .75rem; border: 2px solid var(--tinta); }
.cuenta b { font-size: 1.7rem; line-height: 1; }
.prox-pie { font-weight: 600; margin: 0; }
.prox-ya { font-size: 1.4rem; font-weight: 700; color: #c8102e; margin: .8rem 0; }
.cronicas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cronica { background: #fff; border: 3px solid var(--tinta); border-radius: 24px; padding: 1.3rem 1.4rem 1.4rem; box-shadow: 6px 6px 0 var(--borde, var(--mostaza)); }
.cr-v { --borde: #22c55e; } .cr-d { --borde: var(--coral); } .cr-e { --borde: var(--mostaza); }
.cr-cab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.cr-fecha { color: var(--tinta-2); font-size: .92rem; text-transform: capitalize; }
.cr-res { font-weight: 700; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; border: 2px solid var(--tinta); background: var(--borde); color: #fff; }
.cr-e .cr-res { color: var(--tinta); }
.marcador-eld { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; margin: .6rem 0; }
.me-eq { font-weight: 600; font-size: 1.15rem; text-align: right; }
.me-eq:last-child { text-align: left; }
.me-eq.nuestro { color: #003c8f; font-weight: 700; }
.me-goles { font-size: 2.6rem; font-weight: 700; background: var(--tinta); color: #fff; border-radius: 16px; padding: .1rem .9rem; line-height: 1.2; }
.me-goles i { font-style: normal; color: var(--mostaza); padding: 0 .2rem; }
.cr-estadio { text-align: center; font-size: .9rem; color: var(--tinta-2); margin-bottom: .8rem; }
.cr-eventos { list-style: none; padding: .8rem 0 0; margin: 0; border-top: 2px dashed var(--crema-2); }
.cr-eventos li { display: flex; align-items: baseline; gap: .55rem; padding: .25rem 0; }
.cr-eventos li.suyo { color: var(--tinta-2); }
.cr-eventos li.nuestro { font-weight: 600; }
.ev-min { font-family: var(--m); font-size: 1.3rem; min-width: 3.4rem; color: #c8102e; }
.cr-eventos small { font-weight: 400; color: var(--tinta-2); }
.cr-sin { color: var(--tinta-2); font-style: italic; margin: 0; }
.cr-prensa { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cr-prensa p { margin: 0 .3rem 0 0; font-size: .92rem; font-weight: 600; }
.cr-prensa a { font-size: .85rem; padding: .2rem .65rem; border-radius: 999px; background: var(--crema); border: 2px solid var(--tinta); color: var(--tinta); }
.cr-prensa a:hover { background: var(--mostaza); }
.prensa { list-style: none; padding: 0; margin: 0; }
.prensa li { padding: .65rem 0; border-bottom: 2px dashed var(--crema-2); }
.prensa a { color: var(--tinta); font-weight: 600; display: block; line-height: 1.3; }
.prensa a:hover { color: #c8102e; }
.prensa small { color: var(--tinta-2); text-transform: capitalize; }
.nota-fuente { font-size: .82rem; color: var(--tinta-2); margin: .8rem 0 0; }
.tabla-eld { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tabla-eld th { font-size: .8rem; color: var(--tinta-2); text-align: left; padding: .3rem .4rem; }
.tabla-eld td { padding: .45rem .4rem; border-top: 2px dashed var(--crema-2); }
.tabla-eld tr.nuestro td { background: #e7efff; font-weight: 700; color: #003c8f; }
.prox-lista { list-style: none; padding: 0; margin: 0; }
.prox-lista li { display: flex; flex-direction: column; padding: .4rem 0; border-top: 2px dashed var(--crema-2); }
.prox-lista small { color: var(--tinta-2); text-transform: capitalize; }
@media (max-width: 767.98px) { .cronicas { grid-template-columns: 1fr; } .me-goles { font-size: 2rem; } .me-eq { font-size: 1rem; } .eld-cab { padding-top: 7.5rem; } .cuenta span { min-width: 54px; } }

.pg-eldense .cab:not(.compacta) .cab-nav a { color: #fff; }
.pg-eldense .cab:not(.compacta) .cab-nav a:hover { color: var(--tinta); }
.pg-eldense .cab:not(.compacta) .logo img { filter: brightness(0) invert(1); }

.tabla-eld td { padding: .28rem .4rem; font-size: .95rem; }
.tabla-eld td:first-child { border-left: 5px solid transparent; font-weight: 600; }
.tabla-eld tr.z-asc td:first-child { border-left-color: #22c55e; }
.tabla-eld tr.z-play td:first-child { border-left-color: var(--turq); }
.tabla-eld tr.z-desc td:first-child { border-left-color: var(--coral); }
.tabla-eld tr.nuestro td { font-size: 1.05rem; }
.leyenda { font-size: .82rem; color: var(--tinta-2); margin: .7rem 0 0; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.leyenda span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: .5rem; }
.leyenda span:first-child { margin-left: 0; }
.l-asc { background: #22c55e; } .l-play { background: var(--turq); } .l-desc { background: var(--coral); }
