/* Web nueva (Javi, 12-11-2026): entrada roja con el logo, menu rojo y secciones con el
   carrusel de destacados a la izquierda y el contenido a la derecha. Lo usan las plantillas
   inicio.html, _marco.html y seccion_*.html. Se sirve en /estilo/wd.css. */
:root { --rojo: #e0402e; --negro: #111; --gris: #6b6b6b; --linea: #e6e3df; --stories: #c84b3d; --ideas: #762f2c; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Lato, sans-serif; color: var(--negro); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- menu rojo (pagina de inicio y desplegable de las secciones) ---------- */
.wd-rojo { position: fixed; inset: 0; z-index: 1000; background: var(--rojo); color: var(--negro);
  display: flex; flex-direction: column; padding: 28px clamp(24px, 6vw, 90px) 26px; overflow-y: auto; }
.wd-rojo-arriba { display: flex; justify-content: space-between; align-items: center; }
.wd-rojo-logo { width: 64px; height: 64px; display: block; }
.wd-rojo-logo svg { width: 100%; height: 100%; display: block; }
.wd-cerrar { all: unset; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.wd-cerrar svg { width: 30px; height: 30px; stroke: var(--negro); stroke-width: 2; }
.wd-rojo nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4vh 0; }
.wd-rojo nav a { display: flex; align-items: baseline; gap: 22px; text-decoration: none; padding: .9vh 0;
  border-bottom: 1px solid rgba(0,0,0,.18); transition: padding-left .25s ease; }
.wd-rojo nav a:first-child { border-top: 1px solid rgba(0,0,0,.18); }
/* El desplazamiento solo con raton: en el movil el toque lo dejaba pegado (Javi, 12-11-2026). */
@media (hover: hover) { .wd-rojo nav a:hover { padding-left: 14px; } }
.wd-rojo nav a:focus-visible { padding-left: 14px; outline: none; }
.wd-rojo nav b { font: 400 clamp(38px, 7.2vh, 84px)/1.05 Neuton, serif; letter-spacing: -.01em; }
.wd-rojo nav i { font: 700 clamp(11px, 1.5vh, 14px)/1.2 Lato, sans-serif; font-style: normal; letter-spacing: .2em;
  text-transform: uppercase; opacity: .75; }
/* La seccion actual: una raya roja oscura a la izquierda (el subrayado chocaba con el texto pequeno en el movil). */
.wd-rojo nav a.actual { box-shadow: inset 6px 0 0 var(--negro); padding-left: 20px; }
.wd-rojo-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px;
  font: 700 12px/1.5 Lato, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.wd-rojo-pie a { text-decoration: none; margin-right: 16px; }
.wd-rojo-pie a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .wd-rojo nav a { flex-direction: column; gap: 2px; padding: 1.3vh 0; }
  .wd-rojo nav i { font-size: 10px; }
  .wd-rojo nav b { font-size: min(10.5vw, 6.4vh); }
}
/* entrada escalonada de las opciones */
.wd-rojo nav a { opacity: 0; transform: translateY(10px); animation: wd-entra .55s ease forwards; }
.wd-rojo nav a:nth-child(1) { animation-delay: .05s; } .wd-rojo nav a:nth-child(2) { animation-delay: .12s; }
.wd-rojo nav a:nth-child(3) { animation-delay: .19s; } .wd-rojo nav a:nth-child(4) { animation-delay: .26s; }
.wd-rojo nav a:nth-child(5) { animation-delay: .33s; } .wd-rojo nav a:nth-child(6) { animation-delay: .40s; }
.con-intro .wd-rojo nav a { animation-play-state: paused; }
/* En el desplegable de las secciones: rapido, sin hacer esperar (Javi: "le cuesta entrar"). */
.wd-desplegable nav a { animation-duration: .25s; }
.wd-desplegable nav a:nth-child(n) { animation-delay: 0s; }
.wd-desplegable nav a:nth-child(2) { animation-delay: .03s; } .wd-desplegable nav a:nth-child(3) { animation-delay: .06s; }
.wd-desplegable nav a:nth-child(4) { animation-delay: .09s; } .wd-desplegable nav a:nth-child(5) { animation-delay: .12s; }
.wd-desplegable nav a:nth-child(6) { animation-delay: .15s; }
.wd-abrir { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@keyframes wd-entra { to { opacity: 1; transform: none; } }

/* desplegable en las secciones */
.wd-desplegable { display: none; }
.wd-desplegable.abierto { display: flex; }

/* ---------- entrada: el logo dibujandose (solo la primera vez) ---------- */
.wd-intro { position: fixed; inset: 0; z-index: 2000; background: var(--rojo); display: flex; align-items: center;
  justify-content: center; transition: opacity .7s ease; }
.wd-intro.fuera { opacity: 0; pointer-events: none; }
.wd-intro svg { width: min(56vmin, 520px); height: auto; overflow: visible; }
.wd-intro .anillo { fill: none; stroke: var(--negro); stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: wd-dibujar 1.3s cubic-bezier(.65,0,.35,1) .2s forwards; }
.wd-intro .marca path { fill: var(--negro); fill-opacity: 0; stroke: var(--negro); stroke-width: 3;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: wd-dibujar .9s ease-in-out forwards, wd-rellenar .5s ease forwards; }
@keyframes wd-dibujar { to { stroke-dashoffset: 0; } }
@keyframes wd-rellenar { to { fill-opacity: 1; stroke-width: 0; } }

/* ---------- secciones: carrusel a la izquierda, contenido a la derecha ---------- */
.wd-izq { position: fixed; top: 0; left: 0; width: 50%; height: 100vh; z-index: 1; background: #111; }
#home-izd.wd-izq .wd-carrusel img { height: 100%; }
.wd-izq-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.wd-izq .wd-logo-blanco { position: absolute; z-index: 5; top: 26px; left: 30px; width: 58px; height: 58px; }
.wd-izq .wd-logo-blanco svg { width: 100%; height: 100%; display: block; }
.wd-der { margin-left: 50%; min-height: 100vh; display: flex; flex-direction: column; }
.wd-abrir { all: unset; cursor: pointer; position: fixed; z-index: 50; top: 26px; right: 30px; display: flex; align-items: center;
  gap: 12px; font: 900 12px/1 Lato, sans-serif; letter-spacing: .24em; text-transform: uppercase;
  background: rgba(255,255,255,.92); padding: 10px 12px; }
.wd-abrir span.rayas { width: 26px; height: 14px; display: block; border-top: 2px solid var(--negro); border-bottom: 2px solid var(--negro); position: relative; }
.wd-abrir span.rayas::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--negro); }
.wd-contenido { flex: 1; padding: 110px clamp(24px, 6%, 80px) 60px; max-width: 820px; width: 100%; }
.wd-titulo { margin: 0 0 34px; }
.wd-titulo::before { content: ""; display: block; width: 96px; height: 10px; background: var(--negro); margin-bottom: 26px; }
.wd-titulo h1 { font: 400 clamp(44px, 5.4vw, 72px)/1 Neuton, serif; margin: 0; letter-spacing: -.01em; }
.wd-titulo p { font: italic 400 clamp(19px, 1.7vw, 23px)/1.35 Neuton, serif; color: #444; margin: 12px 0 0; }
.wd-texto { font: 400 18px/1.65 Lato, sans-serif; color: #2a2a2a; }
.wd-texto p { margin: 0 0 1.1em; }
.wd-texto h2 { font: 900 12px/1.2 Lato, sans-serif; letter-spacing: .24em; text-transform: uppercase; margin: 2.2em 0 1em; color: var(--negro); }
.wd-texto a { text-decoration-color: var(--rojo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wd-pie { border-top: 1px solid var(--linea); padding: 26px clamp(24px, 6%, 80px); display: flex; flex-wrap: wrap; gap: 8px 28px;
  font: 700 12px/1.6 Lato, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.wd-pie b { color: var(--negro); }
.wd-pie a { text-decoration: none; }
.wd-pie a:hover { color: var(--negro); }

/* tarjetas grandes (Online Store, entradas desde Events) */
.wd-tarjetas { display: grid; gap: 22px; }
.wd-tarjeta { display: grid; grid-template-columns: 44% 1fr; text-decoration: none; background: #f6f4f1; min-height: 220px;
  transition: background .2s; }
.wd-tarjeta:hover { background: #efebe6; }
.wd-tarjeta .foto { background: #222 center / cover no-repeat; }
.wd-tarjeta .cuerpo { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.wd-tarjeta .etq { font: 900 11px/1 Lato, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--rojo); margin-bottom: 10px; }
.wd-tarjeta h3 { font: 400 34px/1.05 Neuton, serif; margin: 0 0 10px; }
.wd-tarjeta p { font: 400 16px/1.55 Lato, sans-serif; color: #444; margin: 0 0 14px; }
.wd-tarjeta .ir { font: 900 12px/1 Lato, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.wd-tarjeta .ir::after { content: " \203A"; font-size: 1.5em; vertical-align: -1px; }
.wd-aviso { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--rojo); color: var(--negro);
  padding: 18px 22px; text-decoration: none; margin: 0 0 30px; }
.wd-aviso b { font: 400 24px/1.15 Neuton, serif; }
.wd-aviso span { font: 900 11px/1 Lato, sans-serif; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.wd-aviso span::after { content: " \203A"; font-size: 1.5em; vertical-align: -1px; }

/* pestanas Stories / Ideas (Bar Menu) */
.wd-pestanas { display: flex; gap: 0; margin: 0 0 26px; border-bottom: 2px solid var(--negro); }
.wd-pestanas button { all: unset; cursor: pointer; padding: 12px 22px 10px; font: 400 30px/1 Neuton, serif; }
.wd-pestanas button small { display: block; font: 700 11px/1.4 Lato, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); margin-top: 4px; }
.wd-pestanas button.activa { background: var(--negro); color: #fff; }
.wd-pestanas button.activa small { color: #ccc; }

@media (max-width: 900px) {
  .wd-izq { position: relative; width: 100%; height: 88vh; }
  .wd-izq-foto { height: auto; }
  .wd-izq-foto img { height: auto; }
  .wd-der { margin-left: 0; min-height: 0; }
  .wd-abrir { background: rgba(255,255,255,.92); top: 18px; right: 16px; }
  .wd-izq .wd-logo-blanco { top: 16px; left: 16px; width: 50px; height: 50px; }
  .wd-contenido { padding-top: 46px; }
  .wd-tarjeta { grid-template-columns: 1fr; }
  .wd-tarjeta .foto { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition: none !important; }
}
