
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');


:root {
  --gold: #AEBBCB;
  --gold-bright: #E1E8F0;
  --ivory: #E2E7EF;
  --muted: #A4ADBC;
  --dark: #090C13;
  --border: rgba(135, 157, 190, 0.48);

  --silver: #AEBBCB;
  --silver-bright: #E1E8F0;
  --steel-blue: #536A89;
  --blood-red: #651C2B;
  --blood-red-bright: #A83246;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--dark);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ivory);
  background: var(--dark);
  font-family: 'Cormorant Garamond', serif;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

.welcome {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px clamp(24px, 7vw, 110px);
  overflow: hidden;
  background: var(--dark);
}

/* FONDOS: biblioteca normal y luna roja */

.background {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.background-normal {
  background-image: url("assets/backgrounds/Pantalla%20de%20inicio.png");
  opacity: 1;
  transition: opacity 1.1s ease;
}

.background-blood-moon {
  background-image: url("assets/backgrounds/Pantalla%202.png");
  opacity: 0;
  transition: opacity 1.1s ease;
}

.welcome.blood-moon-active .background-normal {
  opacity: 0;
}

.welcome.blood-moon-active .background-blood-moon {
  opacity: 1;
}

/* Oscurece el lado del menú sin ocultar la biblioteca */

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 10, 0.94) 0%,
      rgba(5, 6, 10, 0.82) 25%,
      rgba(5, 6, 10, 0.52) 43%,
      rgba(5, 6, 10, 0.10) 70%,
      rgba(5, 6, 10, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 6, 10, 0.75) 0%,
      transparent 24%,
      transparent 75%,
      rgba(5, 6, 10, 0.25) 100%
    );
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(
      ellipse at 12% 55%,
      rgba(92, 78, 68, 0.13),
      transparent 43%
    ),
    linear-gradient(
      90deg,
      rgba(8, 9, 13, 0.12),
      transparent 70%
    );
  transition: background 1s ease;
}

.welcome.blood-moon-active .atmosphere {
  background:
    radial-gradient(
      ellipse at 75% 35%,
      rgba(145, 16, 29, 0.12),
      transparent 48%
    ),
    linear-gradient(
      90deg,
      rgba(8, 9, 13, 0.12),
      transparent 70%
    );
}

/* ENCABEZADO */

.brand {
  width: min(100%, 540px);
  position: relative;
  animation: reveal 1s ease both;
}


.raven-emblem {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 0 22px 0;
  opacity: 1;
  filter:
    brightness(1.12)
    drop-shadow(0 0 12px rgba(116, 143, 181, 0.25))
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.8));
}


.eyebrow,
.section-label {
  margin: 0;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 3px;
  line-height: 1.8;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 12px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(39px, 5.1vw, 68px);
  line-height: 1.1;
  letter-spacing: 3px;
  text-shadow: 0 4px 24px #000;
}

h1 span {
  color: var(--gold);
  font-size: 0.45em;
  letter-spacing: 7px;
  vertical-align: middle;
}

.subtitle {
  margin: 0;
  color: #D2DCE9;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 10px #000;
}

.ornament {
  display: block;
  width: min(100%, 290px);
  height: 28px;
  object-fit: contain;
  object-position: left center;
  margin: 23px 0 25px;
  opacity: 0.8;
}

/* MENÚ DE CAMPAÑAS */

.campaigns {
  width: min(100%, 430px);
  animation: reveal 1s 0.15s ease both;
}

.section-label {
  margin: 0 0 12px 3px;
  color: #AEBBCB;
  font-size: 10px;
  letter-spacing: 2.5px;
}

.campaign-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 9px 0;
  padding: 12px 18px;
  overflow: hidden;
  text-align: left;
  color: var(--ivory);
  background: linear-gradient(
    100deg,
    rgba(12, 17, 27, 0.91),
    rgba(20, 25, 36, 0.76)
  );
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.campaign-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid rgba(174, 187, 203, 0);
  transition: border-color 0.35s ease;
  pointer-events: none;
}

.campaign-card:hover,
.campaign-card:focus-visible,
.campaign-card:active {
  border-color: var(--blood-red-bright);
  background: linear-gradient(
    100deg,
    rgba(70, 18, 32, 0.94),
    rgba(30, 15, 25, 0.88)
  );
  box-shadow:
    0 0 18px rgba(139, 28, 49, 0.20),
    inset 0 0 18px rgba(139, 28, 49, 0.10);
  
}

.campaign-card:hover,
.campaign-card:focus-visible {
  transform: translateX(4px);
}

.campaign-card:hover::before,
.campaign-card:focus-visible::before,
.campaign-card:active::before {
  border-color: rgba(174, 187, 203, 0.35);
}

/* Adorno de rama */

.branch {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.campaign-card:hover .branch,
.campaign-card:focus-visible .branch,
.campaign-card:active .branch {
  opacity: 0.22;
}

.number {
  flex: 0 0 34px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 22px;
  text-align: center;
  text-shadow: 0 2px 8px #000;
}

.campaign-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campaign-info strong {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

.campaign-info small {
  color: var(--muted);
  font-size: 15px;
}

.arrow {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 22px;
  opacity: 0.75;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.campaign-card:hover .arrow,
.campaign-card:focus-visible .arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* PIE DE PÁGINA */

footer {
  margin-top: 27px;
  color: rgba(174, 187, 203, 0.72);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  line-height: 2;
  text-shadow: 0 2px 8px #000;
  animation: reveal 1s 0.3s ease both;
}

footer span {
  padding: 0 5px;
  color: var(--gold);
}

/* VENTANA DE CAMPAÑA */

dialog {
  position: fixed;
  width: min(90%, 430px);
  max-height: 85vh;
  padding: 38px 32px;
  color: var(--ivory);
  background:
    linear-gradient(rgba(19, 19, 23, 0.97), rgba(11, 12, 16, 0.98));
  border: 1px solid var(--steel-blue);
  box-shadow: 0 20px 100px #000d;
  text-align: center;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

dialog h2 {
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 25px;
  font-weight: 500;
}

dialog p:not(.eyebrow) {
  color: #C3CDDC;
  font-size: 18px;
  line-height: 1.5;
}

.close-dialog {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 0 5px;
  color: var(--ivory);
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.primary-button {
  margin-top: 12px;
  padding: 12px 20px;
  color: #11151E;
  background: var(--gold);
  border: 1px solid var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: var(--gold-bright);
}

/* ANIMACIONES */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET Y MÓVILES */

@media (max-width: 700px) {
  .welcome {
    justify-content: center;
    align-items: center;
    padding: 35px 22px 25px;
  }

  .brand,
  .campaigns {
    width: min(100%, 430px);
  }

  .brand {
    text-align: center;
  }

  .raven-emblem {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
  }

  h1 {
    font-size: clamp(36px, 9vw, 54px);
    letter-spacing: 2px;
  }

  h1 span {
    letter-spacing: 4px;
  }

  .ornament {
    margin: 18px auto 22px;
    object-position: center;
  }

  .section-label {
    text-align: center;
    margin-left: 0;
  }

  .campaign-card {
    min-height: 72px;
    padding: 11px 14px;
  }

  footer {
    margin-top: 22px;
    text-align: center;
  }

  .welcome::before {
    background:
      linear-gradient(
        180deg,
        rgba(5, 6, 10, 0.55) 0%,
        rgba(5, 6, 10, 0.76) 35%,
        rgba(5, 6, 10, 0.88) 100%
      );
  }
}

@media (max-width: 380px) {
  .welcome {
    padding: 25px 15px 20px;
  }

  .campaign-card {
    gap: 10px;
    padding: 10px;
  }

  .number {
    flex-basis: 27px;
    font-size: 19px;
  }

  .campaign-info strong {
    font-size: 12px;
  }

  .campaign-info small {
    font-size: 14px;
  }
}

/* Respeta la preferencia de movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
