@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");
.site-header{position:relative;width:100%;max-width:1220px;margin:0 auto;background:#000;overflow:hidden}
.internal-header-image{display:block;width:100%;height:150px;object-fit:cover;object-position:center top}
.site-header .main-nav{position:absolute;top:28px;left:50%;transform:translateX(-50%);width:100%;max-width:1220px;display:flex;align-items:center;justify-content:flex-end;gap:28px;padding-right:60px;z-index:3000}
.site-header .main-nav a,.site-header .main-nav a:visited{display:inline-block;margin:0;padding:0;color:#FFF;text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:500;line-height:1;white-space:nowrap;transition:opacity .2s ease, transform .2s ease}
.site-header .main-nav a:hover{opacity:.7;transform:translateY(-1px)} .site-header .main-nav a.active{opacity:.65}
.site-header .main-nav a.language-switch{display:flex;align-items:center;justify-content:center;margin-left:6px;padding:0;text-decoration:none;opacity:1}
.site-header .main-nav a.language-switch img{display:block;width:25px;height:auto;opacity:.58;filter:saturate(70%) brightness(1.5);transition:opacity .2s ease, filter .2s ease, transform .2s ease}
.site-header .main-nav a.language-switch:hover{opacity:1;transform:none}.site-header .main-nav a.language-switch:hover img{opacity:.95;filter:saturate(85%) brightness(1);transform:scale(1.08)}
.home-header{position:relative;width:100%;max-width:1220px;margin:0 auto;background:#000}

/* ========================================
   GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #F3F0E9;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

/* ========================================
   HOME HEADER WRAPPER
======================================== */

.home-header {
  position: relative;

  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  background: #000000;
}

/* ========================================
   HERO / MAP
======================================== */

.hero {
  position: relative;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  background: #000000;
  overflow: visible;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   VINTAGE ATMOSPHERE / VIGNETTE
======================================== */

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(0, 0, 0, 0.40) 0%,
      rgba(0, 0, 0, 0.20) 20%,
      rgba(0, 0, 0, 0.07) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at 100% 0%,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.18) 20%,
      rgba(0, 0, 0, 0.06) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at 0% 100%,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.15) 20%,
      rgba(0, 0, 0, 0.05) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.16) 20%,
      rgba(0, 0, 0, 0.05) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, 0.08) 66%,
      rgba(0, 0, 0, 0.20) 84%,
      rgba(0, 0, 0, 0.38) 100%
    );
}


/* ========================================
   GRUNGE FRAME
======================================== */

.hero-grunge {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.18) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.50) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.50) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, 0.06) 64%,
      rgba(0, 0, 0, 0.18) 82%,
      rgba(0, 0, 0, 0.42) 100%
    );
}


/* ========================================
   HOME NAVIGATION
======================================== */

.main-nav {
  position: absolute;

  top: 22px;
  right: 60px;

  display: flex;
  align-items: center;

  gap: 22px;

  z-index: 30;
}

.main-nav a,
.main-nav a:visited {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #FFFFFF;

  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;
  font-weight: 500;
  line-height: 1;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  color: #FFFFFF;
  opacity: 0.7;

  transform: translateY(-1px);
}

.main-nav a:active {
  color: #FFFFFF;
}

/* ========================================
   LAMP SHADOW
======================================== */

.lamp-shadow {
  position: absolute;

  left: 2.8%;
  top: 22.8%;

  width: 16%;
  height: 8%;

  z-index: 50;
  pointer-events: none;

  opacity: 1;

  filter: blur(6px);

  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.65) 42%,
      rgba(0, 0, 0, 0.25) 68%,
      rgba(0, 0, 0, 0) 100%
    );

  transform: rotate(-8deg);
}


/* ========================================
   LAMP GLOW
======================================== */

.lamp-glow {
  position: absolute;

  left: 11%;
  top: 7.5%;

  width: 22%;
  aspect-ratio: 1;

  border-radius: 50%;

  z-index: 6;
  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(255, 195, 100, 0.25) 0%,
      rgba(255, 155, 65, 0.13) 28%,
      rgba(255, 130, 45, 0.06) 48%,
      rgba(255, 120, 30, 0) 72%
    );

  animation:
    glowFlicker
    2.4s
    ease-in-out
    infinite;
}

@keyframes glowFlicker {

  0% {
    opacity: 0.84;
    transform: scale(1);
  }

  18% {
    opacity: 1;
    transform: scale(1.03);
  }

  37% {
    opacity: 0.72;
    transform: scale(0.985);
  }

  58% {
    opacity: 0.94;
    transform: scale(1.02);
  }

  79% {
    opacity: 0.78;
    transform: scale(0.995);
  }

  100% {
    opacity: 0.84;
    transform: scale(1);
  }
}


/* ========================================
   OIL LAMP
======================================== */

.oil-lamp {
  position: absolute;

  left: 0%;
  top: 0%;

  width: 27%;
  height: auto;

  z-index: 7;

  pointer-events: none;
}


/* ========================================
   ANIMATED FLAME
======================================== */

.lamp-flame {
  position: absolute;

  left: 19.0%;
  top: 10.8%;

  width: 5.6%;
  height: auto;

  z-index: 8;

  pointer-events: none;

  transform-origin: center bottom;

  animation:
    flameFlicker
    2.4s
    ease-in-out
    infinite;

  filter:
    drop-shadow(
      0 0 6px
      rgba(255, 170, 60, 0.72)
    );
}

@keyframes flameFlicker {

  0% {
    transform:
      translateX(0)
      rotate(0deg)
      scaleX(1)
      scaleY(1);

    opacity: 0.96;
  }

  18% {
    transform:
      translateX(-1px)
      rotate(-2deg)
      scaleX(0.96)
      scaleY(1.07);

    opacity: 1;
  }

  37% {
    transform:
      translateX(1px)
      rotate(1.5deg)
      scaleX(1.03)
      scaleY(0.97);

    opacity: 0.92;
  }

  58% {
    transform:
      translateX(-0.5px)
      rotate(-1deg)
      scaleX(0.98)
      scaleY(1.05);

    opacity: 1;
  }

  79% {
    transform:
      translateX(1px)
      rotate(2deg)
      scaleX(1.02)
      scaleY(0.99);

    opacity: 0.94;
  }

  100% {
    transform:
      translateX(0)
      rotate(0deg)
      scaleX(1)
      scaleY(1);

    opacity: 0.96;
  }
}


/* ========================================
   MAP LEGEND
======================================== */

.map-legend {
  position: absolute;

  left: 3.2%;
  bottom: 12%;

  width: 22%;
  max-width: 355px;
  height: auto;

  z-index: 1000;

  pointer-events: none;

  transform: translateY(45px);

  filter:
    drop-shadow(
      6px 8px 6px
      rgba(0, 0, 0, 0.50)
    );
}

/* ========================================
   MAP MARKERS
======================================== */

.map-marker {
  position: absolute;

  border: 0;

  padding: 0;
  margin: 0;

  background: transparent;

  cursor: pointer;

  z-index: 20;
}

.map-marker img {
  display: block;

  width: 100%;
  height: auto;

  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.map-marker:hover img,
.map-marker:focus img,
.map-marker.active img {
  transform:
    scale(1.28);

  filter:
    drop-shadow(
      0 0 9px
      rgba(194, 163, 107, 0.95)
    );
}


/* ========================================
   MARKER TYPES
======================================== */

.sword-marker {
  width: 5%;
}

.axe-marker {
  width: 4.7%;
}

.warrior-marker {
  width: 4.8%;
}

.legion-marker {
  width: 4%;
}

/* ========================================
   MARKER POSITIONS
======================================== */

.marker-iberia {
  left: 8.3%;
  top: 48.7%;
}

.marker-britannia {
  left: 22.5%;
  top: 38%;
}

.marker-teutoburg {
  left: 28%;
  top: 35%;
}

.marker-zama {
  left: 36%;
  top: 72%;
}

.marker-carrhae {
  left: 87%;
  top: 69%;
}

.marker-iv-parthica {
  left: 81%;
  top: 53%;
}

/* ========================================
   AVE LEGIONARY INTRO
======================================== */

.intro {
  max-width: 1220px;

  margin: 0 auto;

  padding:
    42px
    36px
    42px;

  text-align: center;

  background: #F3F0E9;
}

.intro-heading {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 410px;
  min-height: 108px;
}

.laurel {
  position: absolute;

  width: 360px;
  max-width: 92vw;

  height: auto;

  pointer-events: none;
}

.intro h1 {
  position: relative;

  z-index: 2;

  margin: 0;

  font-size: 25px;
  font-weight: 700;

  letter-spacing: 0.4px;
}

.intro p {
  max-width: 1080px;

  margin:
    10px
    auto
    0;

  font-size: 21px;

  line-height: 1.48;

  text-align: justify;
}


/* ========================================
   STORY PANEL
======================================== */

.story-panel {
  max-width: 1220px;

  margin: 0 auto;

  padding:
    100px
    36px
    82px;

  background: #F3F0E9;
}

.story-panel.empty {
  display: none;
}

.story-panel.visible {
  display: block;
}

.story-card {
  background: #F3F0E9;

  border:
    1px solid
    rgba(0, 0, 0, 0.10);

  box-shadow:
    0 14px 32px
    rgba(0, 0, 0, 0.07);

  padding:
    34px
    40px
    38px;
}

.story-card h2 {
  margin:
    0
    0
    6px;

  font-size: 31px;
}

.story-subtitle {
  margin:
    0
    0
    22px;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.2px;
}

.story-card p {
  max-width: 940px;

  margin: 0;

  font-size: 12px;

  line-height: 1.65;

text-align: justify;

}


/* ========================================
   STORY BUTTONS
======================================== */

.story-buttons {
  display: flex;

  gap: 18px;

  margin-top: 22px;
}

.story-button {
  display: inline-block;

  min-width: 240px;

  padding:
    12px
    22px;

  text-align: center;

  text-decoration: none;

  color: #FFFFFF;

  font-size: 13px;
  font-weight: 700;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.story-button.primary {
  background: #9C2B21;
}

.story-button.secondary {
  background: #818181;
}

.story-button.static {
  cursor: default;
}

.story-button:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.story-button.static:hover {
  opacity: 1;
  transform: none;
}

/* ========================================
   LANGUAGE SWITCH
======================================== */

.main-nav a.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: 6px;
  padding: 0;

  text-decoration: none;
  opacity: 1;
}

.main-nav a.language-switch img {
  display: block;

  width: 21px;
  height: auto;

  opacity: 0.58;

  filter:
    saturate(70%)
    brightness(1.5);

  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

.main-nav a.language-switch:hover {
  opacity: 1;
  transform: none;
}

.main-nav a.language-switch:hover img {
  opacity: 0.95;

  filter:
    saturate(85%)
    brightness(1);

  transform: scale(1.08);
}
/* ========================================
   HOME MOBILE
======================================== */

@media (max-width: 800px) {

  /* ========================================
     MOBILE NAVIGATION
  ======================================== */

  .hero {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .main-nav {
    position: relative;

    top: auto;
    left: auto;
    right: auto;

    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    padding: 0 10px;

    background: #000000;

    z-index: 2000;
  }

  .main-nav a {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;
  }


  /* ========================================
     MAP
  ======================================== */

  .map-image {
    width: 100%;
    height: auto;
  }


  /* ========================================
     MOBILE LAMP
  ======================================== */

  .oil-lamp {
    left: 0.5%;
    top: 10.8%;
    width: 24%;
  }

  .lamp-flame {
    left: 17.5%;
    top: 18.9%;
    width: 4.9%;
  }

  .lamp-glow {
    left: 8.7%;
    top: 7.8%;
    width: 22%;
  }

  .lamp-shadow {
    left: 0.8%;
    top: 26%;
    width: 18.5%;
  }


 /* ========================================
   MAP LEGEND
======================================== */

.map-legend {
  position: absolute;

  right: 70%;
  top: 65%;

  left: auto;
  bottom: auto;

  width: 26%;
  max-width: none;

  height: auto;

  z-index: 1000;

  pointer-events: none;

  transform: none;

  filter:
    drop-shadow(
      3px 5px 5px
      rgba(0, 0, 0, 0.40)
    );

  opacity: 0.96;

  animation: legendPulse 2.5s ease-in-out infinite;
}

@keyframes legendPulse {
  0%,
  100% {
    opacity: 0.96;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.025);
  }
}


  /* ========================================
     MAP MARKERS
  ======================================== */

  .sword-marker {
    width: 8%;
  }

  .axe-marker,
  .warrior-marker {
    width: 8%;
  }

  .legion-marker {
    width: 8%;
  }

  .marker-iv-parthica {
    left: 80%;
    top: 56%;
  }


  /* ========================================
     AVE LEGIONARY
  ======================================== */

  .intro {
    max-width: 100%;

    padding:
      14px
      22px
      34px;
  }

  .intro-heading {
    min-width: 0;
    width: 100%;

    min-height: 90px;
  }

  .laurel {
    width: 235px;
    max-width: 90%;
  }

  .intro h1 {
    font-family: "Cinzel", serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.5px;
  }

  .intro p {
    margin-top: 10px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }


  /* ========================================
     STORY PANEL
  ======================================== */

  .story-panel {
    max-width: 100%;

    padding:
      10px
      18px
      48px;
  }

  .story-card {
    padding:
      26px
      22px
      28px;
  }

  .story-card h2 {
    font-size: 12px;
  }

  .story-card p {
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
  }

  .story-buttons {
    flex-direction: column;
  }

  .story-button {
    width: 100%;
    min-width: 0;
  }

}

/* ========================================
   LETTERS FROM THE LIMES — MAP ICON
======================================== */

.letters-marker {
  position: absolute;

  top: -4%;
  right: 4%;

  width: 40%;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  z-index: 25;

  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.letters-marker img {
  display: block;

  width: 100%;
  height: auto;

  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.letters-marker:hover img {
  filter:
    brightness(1.35)
    drop-shadow(0 0 12px rgba(255, 215, 130, 0.75));

  transform: scale(1.035);
}


@media (max-width:1000px){.site-header .main-nav{gap:18px;padding-right:34px}.site-header .main-nav a,.site-header .main-nav a:visited{font-size:16px}}
@media (max-width:800px){.site-header,.home-header{max-width:100%}.site-header .main-nav{position:relative;top:auto;left:auto;transform:none;width:100%;height:58px;display:flex;align-items:center;justify-content:center;gap:18px;padding:0 12px;background:#000;z-index:2000}.site-header .main-nav a,.site-header .main-nav a:visited{font-size:14px}}
@media (max-width:560px){.site-header .main-nav{gap:12px}.site-header .main-nav a,.site-header .main-nav a:visited{font-size:13px}.site-header .main-nav a.language-switch img{width:22px}}


/* Compact instruction beneath the interactive map */
.explore-instruction{max-width:1220px;margin:0 auto;text-align:center;padding:28px 24px 32px}
.explore-instruction h1{font-family:Cinzel,Georgia,serif;font-size:clamp(20px,2vw,26px);margin:0 0 12px}
.explore-instruction p{font-size:clamp(13px,1.1vw,15px);line-height:1.6;max-width:720px;margin:0 auto}


/* Unified header + menu sizing across all pages */
.site-header{position:relative;width:100%;max-width:1220px;margin:0 auto;background:#000;overflow:hidden}
.internal-header-image{display:block;width:100%;height:150px;object-fit:cover;object-position:center top}
.main-nav,
.site-header .main-nav{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:100%;max-width:1220px;display:flex;align-items:center;justify-content:flex-end;gap:22px;padding-right:44px;z-index:3000}
.main-nav a,
.main-nav a:visited,
.site-header .main-nav a,
.site-header .main-nav a:visited{display:inline-block;margin:0;padding:0;color:#fff;text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-size:15px;font-weight:500;line-height:1;white-space:nowrap;transition:opacity .2s ease,transform .2s ease}
.main-nav a:hover,
.site-header .main-nav a:hover{opacity:.7;transform:translateY(-1px)}
.main-nav a.active,
.site-header .main-nav a.active{opacity:.65}
.main-nav a.language-switch,
.site-header .main-nav a.language-switch{display:flex;align-items:center;justify-content:center;margin-left:6px;padding:0;text-decoration:none;opacity:1}
.main-nav a.language-switch img,
.site-header .main-nav a.language-switch img{display:block;width:21px;height:auto;opacity:.58;filter:saturate(70%) brightness(1.5);transition:opacity .2s ease,filter .2s ease,transform .2s ease}
.main-nav a.language-switch:hover,
.site-header .main-nav a.language-switch:hover{opacity:1;transform:none}
.main-nav a.language-switch:hover img,
.site-header .main-nav a.language-switch:hover img{opacity:.95;filter:saturate(85%) brightness(1);transform:scale(1.08)}
@media (max-width:1000px){
  .main-nav,.site-header .main-nav{gap:16px;padding-right:26px}
  .main-nav a,.main-nav a:visited,.site-header .main-nav a,.site-header .main-nav a:visited{font-size:14px}
}
@media (max-width:800px){
  .internal-header-image{height:118px}
  .main-nav,.site-header .main-nav{position:relative;top:auto;left:auto;transform:none;width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 10px;background:#000;z-index:2000}
  .main-nav a,.main-nav a:visited,.site-header .main-nav a,.site-header .main-nav a:visited{font-size:12px}
}
@media (max-width:560px){
  .main-nav,.site-header .main-nav{gap:10px}
  .main-nav a,.main-nav a:visited,.site-header .main-nav a,.site-header .main-nav a:visited{font-size:11px}
  .main-nav a.language-switch img,.site-header .main-nav a.language-switch img{width:18px}
}


/* ========================================
   BRAND OVERRIDES — MONOCHROME EDLL
======================================== */
body{
  background:#000000;
  color:#ffffff;
}
.explore-instruction,
.intro{
  background:#000000 !important;
  color:#ffffff;
}
.explore-instruction{
  padding:34px 24px 42px;
}
.explore-instruction h1,
.intro h1{
  color:#ffffff;
  font-family:Cinzel, Georgia, serif;
  letter-spacing:.06em;
}
.explore-instruction p,
.intro p{
  color:rgba(255,255,255,.88);
}
.explore-instruction::after{
  content:"";
  display:block;
  width:120px;
  height:1px;
  margin:22px auto 0;
  background:rgba(179,33,46,.82);
}
.story-panel{
  background:#000000 !important;
  padding:42px 28px 72px;
}
.story-card{
  max-width:960px;
  margin:0 auto;
  background:#ffffff !important;
  color:#111111;
  border:1px solid rgba(0,0,0,.18);
  box-shadow:none;
  padding:36px 40px 38px;
}
.story-card h2{
  font-family:Cinzel, Georgia, serif;
  color:#111111;
}
.story-subtitle{
  color:#8f1f2b;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.story-card p{
  color:#111111;
  font-size:14px;
}
.story-button.primary{
  background:#b3212e;
}
.story-button.secondary{
  background:#111111;
  color:#ffffff;
}
.story-button.static{
  border:1px solid rgba(255,255,255,.08);
}

/* EDLL WHITE PAGE SYSTEM — HEADER REMAINS BLACK */
html,body{background:#ffffff !important;}
body{color:#111111 !important;}
/* Header/menu backgrounds and white navigation deliberately unchanged. */

.explore-instruction,.intro,.story-panel{background:#ffffff !important;color:#111111 !important;}
.explore-instruction h1,.intro h1,.explore-instruction p,.intro p{color:#111111 !important;}
.story-card{background:#ffffff !important;color:#111111 !important;}
/* Keep the map image, flame, icons and red action buttons untouched. */

/* EXPLORE — BAJAR EL MAPA COMPLETO EN MOVIL */
@media (max-width: 800px) {
  .hero {
    margin-top: 0 !important;
    padding-top: 30px !important;
    background: #000 !important;
    box-sizing: border-box;
  }
}

/* PERGAMINOS — POSICIÓN MÓVIL */
@media (max-width: 800px) {
  .letters-marker {
    top: 2% !important;
  }
}