@import url("temas/original.css");

/*
  TEMA DE LA WEB: es el ÚNICO archivo que hay que tocar para cambiar de tema o de colores.

  Cambiar de tema: cambia SOLO la primera línea de este archivo (el @import), que debe ser
  la primera regla y ocupar una línea: @import url("temas/<nombre>.css");
  El @import va antes de este comentario porque CSS ignora cualquier @import que tenga una regla antes.

  Temas disponibles (css/temas/):
    original         la web tal cual (sin tema)
    Estaciones:      primavera, verano, otono, invierno
    Fiestas y días:  reyes, rebajas, san-valentin, dia-del-padre, pascua,
                     dia-de-la-madre, vuelta-al-cole, halloween, black-friday,
                     navidad, nochevieja

  Volver a la web normal: @import url("temas/original.css"); y dejar vacío el bloque :root de abajo.

  Cambiar solo el texto de la franja de anuncio del tema activo: añade en el bloque :root de abajo
  --tema-anuncio: "Tu texto aquí"; (entre comillas). Se quita borrando esa línea.

  No borrar nunca estos comentarios ni el bloque de decoración del final.
*/

:root {
  /* Colores personalizados del cliente (opcional; mandan sobre el tema). Ejemplo:
     --color-boton: #c62828; */
}

/* ------------------------------------------------------------------
   Decoración del tema (no editar: se controla con las variables de css/temas/)
   Con el tema "original" no se ve nada de esto: solo las rayas rosa y lima de la fachada.
   - Franja de anuncio bajo el menú (.tema-anuncio, enlaza a #encargos):
       --tema-activo, --tema-anuncio, --tema-anuncio-fondo, --tema-anuncio-texto, --tema-icono
   - Sello circular sobre la foto de la portada (.hero::after): --tema-sello
   - Bandas con el motivo del tema en lugar de las rayas (.franjas):
       --tema-banda, --tema-banda-vertical, --tema-banda-alto
   - Icono grande junto a la dirección (.contact-section::before): --tema-icono
   Las ilustraciones de cada tema están en img/temas/<nombre>/.
   ------------------------------------------------------------------ */
.tema-anuncio {
  display: var(--tema-activo, none);
  padding: 12px 20px;
  background: var(--tema-anuncio-fondo, var(--color-primario-oscuro));
  color: var(--tema-anuncio-texto, var(--color-texto-invertido));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: filter .2s ease;
}
.tema-anuncio::before {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background: currentColor;
  content: '';
  vertical-align: -3px;
  -webkit-mask: var(--tema-icono) center / contain no-repeat;
  mask: var(--tema-icono) center / contain no-repeat;
}
.tema-anuncio::after { content: var(--tema-anuncio, "") "  →"; }
.tema-anuncio:hover { filter: brightness(1.25); }
.tema-anuncio:hover::after { text-decoration: underline; text-underline-offset: 4px; }
.tema-anuncio:focus-visible { outline: 3px solid var(--color-detalle); outline-offset: -3px; }

.franjas { background: var(--tema-banda, repeating-linear-gradient(90deg, var(--color-acento) 0 14px, var(--color-detalle) 14px 28px)); }
.franjas-horizontal { height: var(--tema-banda-alto, 14px); }
.franjas-vertical { background: var(--tema-banda-vertical, repeating-linear-gradient(90deg, var(--color-acento) 0 14px, var(--color-detalle) 14px 28px)); }

.hero::after {
  position: absolute;
  z-index: 2;
  top: 40px;
  right: 40px;
  width: clamp(130px, 13.5vw, 200px);
  aspect-ratio: 1;
  background: var(--tema-sello, none) center / contain no-repeat;
  content: '';
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3));
  pointer-events: none;
  animation: tema-sello .9s .3s cubic-bezier(.2, .8, .2, 1.2) both;
}
.contact-section { position: relative; overflow: hidden; }
.contact-section::before {
  display: var(--tema-activo, none);
  position: absolute;
  top: 36px;
  right: var(--gutter, 24px);
  width: 64px;
  height: 64px;
  background: var(--color-acento);
  content: '';
  opacity: .9;
  pointer-events: none;
  -webkit-mask: var(--tema-icono) center / contain no-repeat;
  mask: var(--tema-icono) center / contain no-repeat;
}
@keyframes tema-sello {
  from { opacity: 0; transform: rotate(-40deg) scale(.6); }
  to { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@media (max-width: 860px) {
  .hero::after { top: 28px; right: 16px; width: 116px; }
  .contact-section::before { top: 20px; width: 52px; height: 52px; }
  .hero-media .franjas-vertical { height: var(--tema-banda-alto, 12px); background: var(--tema-banda, repeating-linear-gradient(90deg, var(--color-acento) 0 14px, var(--color-detalle) 14px 28px)); }
}
@media (max-width: 620px) {
  .tema-anuncio { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; transform: rotate(-8deg); }
}
