:root{
  --blue-950:#081b59;
  --blue-900:#0f2b86;
  --blue-800:#1d49d8;
  --blue-700:#3566ff;
  --paper:#f5f7fc;
  --paper-2:#eef3ff;
  --ink:#162442;
  --muted:#5c6b8c;
  --white:#fff;
  --shadow-soft:0 14px 36px rgba(10,24,78,.08);
  --shadow-card:0 24px 50px rgba(12,31,99,.10), 0 8px 18px rgba(12,31,99,.06);
  --shadow-card-hover:0 36px 72px rgba(12,31,99,.16), 0 14px 30px rgba(12,31,99,.10);
  --radius-xl:30px;
  --container:1200px;
  --topbar-h:46px;
  --header-h:72px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#f7f9fe 0%, #edf2fb 100%);
  line-height:1.62;
}

img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
.container{width:min(100% - 32px,var(--container));margin:0 auto}

.reading-progress{
  position:fixed;
  top:0;
  left:0;
  height:4px;
  width:0;
  background:linear-gradient(90deg,var(--blue-700),#82a4ff);
  z-index:300;
  box-shadow:0 6px 18px rgba(29,73,216,.35);
}

.topbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:200;
  background:rgba(10,28,93,.97);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar-inner{
  min-height:var(--topbar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:rgba(255,255,255,.92);
  font-weight:600;
  font-size:.95rem;
}

.topbar a{font-weight:700}

.site-header{
  position:fixed;
  top:var(--topbar-h);
  left:0;
  width:100%;
  z-index:190;
  background:rgba(10,26,84,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition:background .25s ease, box-shadow .25s ease;
}

.site-header.scrolled{
  background:rgba(10,26,84,.97);
  box-shadow:0 14px 34px rgba(5,15,49,.22);
}

.nav{
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.07);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.4rem;
}

.menu{
  display:flex;
  align-items:center;
  gap:20px;
  color:rgba(255,255,255,.94);
  font-weight:600;
}

.menu a{
  position:relative;
  padding:8px 0;
}

.menu a:after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:1px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .22s ease;
  opacity:.7;
}

.menu a:hover:after,
.menu a.active:after{
  transform:scaleX(1);
}

.menu-toggle{display:none}

.hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  min-height:100svh;
  padding-top:calc(var(--topbar-h) + var(--header-h) + 42px);
  background:
    radial-gradient(circle at 78% 20%, rgba(95,126,255,.24), transparent 22%),
    linear-gradient(180deg, rgba(10,28,93,.08), rgba(10,28,93,.9) 74%, rgba(10,28,93,1));
}

.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(95deg, rgba(8,22,77,.94), rgba(22,61,189,.70)),
    url('assets/img/contraportada.jpg') center/cover no-repeat;
  opacity:.96;
}

.hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.13) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.09) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.09) 0 1px, transparent 1px);
  background-size:280px 280px, 360px 360px, 420px 420px;
  opacity:.38;
}

.hero-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(8px);
  z-index:1;
  pointer-events:none;
  background:radial-gradient(circle, rgba(255,255,255,.26), rgba(255,255,255,0));
}

.hero-orb-a{
  width:220px;
  height:220px;
  top:22%;
  left:-40px;
  opacity:.26;
}

.hero-orb-b{
  width:300px;
  height:300px;
  bottom:8%;
  right:-80px;
  opacity:.24;
}

.hero-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:48px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  color:#dfe7ff;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.82rem;
  font-weight:700;
}

.eyebrow:before{
  content:"";
  width:42px;
  height:1px;
  background:currentColor;
  opacity:.5;
}

.eyebrow.accent{color:#1d49d8}

h1,h2,h3{
  margin:0 0 14px;
  font-family:"Cormorant Garamond",Georgia,serif;
  line-height:.95;
  letter-spacing:-.02em;
}

h1{font-size:clamp(4.2rem,9vw,8rem)}
h2{font-size:clamp(2.5rem,5vw,4.2rem)}
h3{font-size:clamp(1.7rem,2.7vw,2.3rem)}

.hero-subtitle{
  font-size:clamp(1.25rem,2vw,1.6rem);
  margin:18px 0 14px;
  color:rgba(255,255,255,.9);
}

.lead{
  font-size:clamp(1.06rem,1.8vw,1.2rem);
  max-width:760px;
  color:rgba(255,255,255,.90);
}

.max{max-width:800px}
.muted{color:var(--muted)}
.muted-light{color:rgba(255,255,255,.82)}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.hero-badge{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  font-weight:600;
  color:rgba(255,255,255,.92);
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 24px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover{transform:translateY(-2px)}

.btn-primary{
  background:#fff;
  color:var(--blue-950);
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}

.btn-secondary{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  color:#fff;
  backdrop-filter:blur(10px);
}

.floating-note{
  margin-top:26px;
  max-width:420px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
}

.floating-note strong{
  display:block;
  margin-bottom:6px;
}

.hero-book-wrap{
  display:flex;
  justify-content:flex-end;
}

.hero-book-3d{
  position:relative;
  display:grid;
  place-items:center;
}

.hero-book-shadow{
  position:absolute;
  inset:auto auto -18px 40px;
  width:74%;
  height:48px;
  border-radius:50%;
  background:rgba(3,10,35,.48);
  filter:blur(18px);
}

.hero-book{
  position:relative;
  width:min(100%,420px);
  border-radius:30px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  box-shadow:
    0 34px 90px rgba(5,12,44,.36),
    0 12px 30px rgba(5,12,44,.18);
  transform:perspective(1400px) rotateY(-15deg) rotateZ(-5deg);
  transition:transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}

.hero-book:hover{
  transform:perspective(1400px) rotateY(-8deg) rotateZ(-2deg) translateY(-4px);
}

.hero-book img{
  width:100%;
  aspect-ratio:.675/1;
  object-fit:cover;
}

.hero-tag{
  position:absolute;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
  background:rgba(255,255,255,.95);
  color:var(--blue-950);
  box-shadow:0 12px 28px rgba(12,31,99,.14);
}

.hero-tag-top{
  top:28px;
  right:-8px;
}

.hero-tag-bottom{
  bottom:32px;
  left:-16px;
}

.scroll-indicator{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:2;
  color:rgba(255,255,255,.76);
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.82rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.scroll-indicator .mouse{
  width:28px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.34);
  position:relative;
}

.scroll-indicator .mouse:after{
  content:"";
  position:absolute;
  left:50%;
  top:8px;
  transform:translateX(-50%);
  width:4px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  animation:scroll 1.6s infinite;
}

@keyframes scroll{
  0%{opacity:0;transform:translate(-50%,0)}
  30%{opacity:1}
  100%{opacity:0;transform:translate(-50%,14px)}
}

.section{
  padding:96px 0;
  position:relative;
}

.section-soft{
  background:linear-gradient(180deg, rgba(232,238,252,.6), rgba(244,247,255,.35));
}

.card{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(17,32,61,.06);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(10px);
  border-radius:var(--radius-xl);
  padding:34px;
}

.intro-grid,
.territory-grid,
.author-grid,
.cta-grid,
.prologue-grid{
  display:grid;
  gap:32px;
  align-items:center;
}

.intro-grid{grid-template-columns:1.04fr .96fr}
.territory-grid{grid-template-columns:.92fr 1.08fr}
.author-grid{grid-template-columns:.86fr 1.14fr}
.prologue-grid{grid-template-columns:.82fr 1.18fr}

.cover-box{
  background:linear-gradient(180deg,#dce5ff,#f5f8ff);
  border-radius:var(--radius-xl);
  padding:18px;
  box-shadow:var(--shadow-soft);
}

.cover-box img{
  border-radius:22px;
  width:100%;
  aspect-ratio:.8/1;
  object-fit:cover;
}

.portrait-box img{
  aspect-ratio:.9/1;
  object-position:center top;
}

.feature-strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px;
}

.feature-chip{
  background:#edf2ff;
  border:1px solid rgba(29,73,216,.10);
  color:var(--blue-950);
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:.92rem;
}

.territory-media{
  min-height:560px;
  border-radius:32px;
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(10,28,93,.10), rgba(10,28,93,.74)),
    url('assets/img/cuarzo_viei.png') center/cover no-repeat;
}

.territory-media .caption{
  position:absolute;
  left:24px;
  right:24px;
  bottom:24px;
  padding:22px;
  border-radius:22px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}

.divider{
  height:1px;
  margin:26px 0;
  background:linear-gradient(90deg,transparent,rgba(16,42,122,.16),transparent);
}

.section-head{
  margin-bottom:26px;
}

.prologue-card{
  min-height:100%;
  padding:34px;
  border-radius:30px;
  background:linear-gradient(180deg,#0d2478,#214fdc);
  color:#fff;
  box-shadow:0 28px 70px rgba(13,31,92,.18);
}

.mini-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:700;
  opacity:.82;
}

.prologue-card blockquote{
  margin:26px 0 18px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:2.2rem;
  line-height:1.02;
}

.text-link{
  display:inline-block;
  margin-top:8px;
  font-weight:800;
  color:var(--blue-800);
}

.stories-wrap{
  position:relative;
  overflow:visible;
  padding:20px 0 42px;
}

.stories-wrap:before,
.stories-wrap:after{
  content:"";
  position:absolute;
  top:0;
  bottom:42px;
  width:110px;
  z-index:3;
  pointer-events:none;
}

.stories-wrap:before{
  left:0;
  background:linear-gradient(90deg,#eef2fb,rgba(238,242,251,0));
}

.stories-wrap:after{
  right:0;
  background:linear-gradient(270deg,#eef2fb,rgba(238,242,251,0));
}

.stories-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:26px 82px 60px;
  cursor:grab;
}

.stories-track::-webkit-scrollbar{display:none}

.stories-track.dragging{
  cursor:grabbing;
  scroll-behavior:auto;
}

.stories-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(16,42,122,.08);
  box-shadow:0 12px 32px rgba(10,24,78,.12);
  color:var(--blue-950);
  font-size:1.3rem;
  cursor:pointer;
}

.stories-nav.prev{left:12px}
.stories-nav.next{right:12px}

.story-card{
  min-width:min(340px,calc(100vw - 72px));
  max-width:340px;
  flex:0 0 340px;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-card);
  transition:transform .35s ease, box-shadow .35s ease;
}

.story-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-card-hover);
}

.story-image{
  aspect-ratio:1/.9;
  overflow:hidden;
  background:linear-gradient(180deg,#dce3fb 0%, #5a7dff 100%);
}

.story-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.story-body{padding:24px 22px 26px}

.story-tag{
  display:inline-block;
  margin-bottom:12px;
  color:var(--blue-800);
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.82rem;
}

.project-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:28px;
}

.project-card{
  border-radius:24px;
  padding:26px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(16,42,122,.06);
}

.icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  background:linear-gradient(135deg,var(--blue-950),var(--blue-700));
  color:#fff;
  font-size:1.2rem;
}

.timeline-card{
  margin-top:28px;
  padding:32px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(238,243,255,.96));
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(16,42,122,.06);
}

.timeline-list{
  display:grid;
  gap:16px;
  margin-top:22px;
}

.timeline-item{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:16px;
  align-items:start;
  padding:16px 0;
  border-top:1px solid rgba(16,42,122,.08);
}

.timeline-item:first-child{
  border-top:none;
  padding-top:0;
}

.timeline-item span{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:800;
  color:var(--blue-950);
  background:#edf2ff;
  border:1px solid rgba(16,42,122,.08);
}

.timeline-item p{
  margin:4px 0 0;
  color:var(--muted);
}

.author-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(244,247,255,.95));
  border-radius:30px;
  padding:34px;
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(16,42,122,.06);
}

.author-list{
  display:grid;
  gap:18px;
  margin-top:18px;
}

.author-item{
  padding-bottom:18px;
  border-bottom:1px solid rgba(16,42,122,.08);
}

.author-item:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.cta{
  position:relative;
  overflow:hidden;
  padding:42px;
  border-radius:34px;
  color:#fff;
  background:linear-gradient(135deg,var(--blue-950),var(--blue-700));
  box-shadow:0 32px 80px rgba(13,31,92,.24);
}

.cta-grid{grid-template-columns:1fr auto}

.site-footer{
  padding:30px 0 44px;
  color:var(--muted);
  font-size:.95rem;
}

.footer-wrap{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding-top:24px;
  border-top:1px solid rgba(16,42,122,.1);
}

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

@media (max-width:1100px){
  .hero-grid,
  .intro-grid,
  .territory-grid,
  .author-grid,
  .cta-grid,
  .prologue-grid,
  .project-grid{
    grid-template-columns:1fr;
  }

  .hero-book-wrap{
    justify-content:flex-start;
  }

  .hero-book{
    max-width:360px;
  }
}

@media (max-width:860px){
  :root{
    --topbar-h:42px;
    --header-h:68px;
  }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:50%;
    color:#fff;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
  }

  .menu{
    position:absolute;
    top:calc(100% + 10px);
    left:16px;
    right:16px;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:10px;
    border-radius:20px;
    background:rgba(10,26,84,.95);
    border:1px solid rgba(255,255,255,.12);
    opacity:0;
    pointer-events:none;
    transform:translateY(-8px);
    transition:.2s ease;
  }

  .menu.open{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }

  .menu a{
    padding:12px 10px;
  }

  .hero{
    min-height:auto;
    padding-top:calc(var(--topbar-h) + var(--header-h) + 30px);
    padding-bottom:84px;
  }

  .hero-book{
    transform:none;
    max-width:320px;
  }

  .scroll-indicator{display:none}

  .section{padding:78px 0}

  .card,
  .cta,
  .author-panel,
  .prologue-card,
  .timeline-card{
    padding:28px;
  }

  .stories-wrap:before,
  .stories-wrap:after{
    width:40px;
  }

  .stories-track{
    padding:18px 36px 48px;
  }

  .stories-nav{display:none}

  .territory-media{
    min-height:420px;
  }
}
.site-footer{
  padding:40px 0;
}

.footer-wrap{
  display:grid;
  grid-template-columns: 1fr auto auto;
  align-items:center;
  gap:40px;
}

.footer-brand{
  display:flex;
  flex-direction:column;
}

.footer-brand strong{
  font-size:1.2rem;
  color:#1e293b;
}

.footer-brand span{
  font-size:0.95rem;
  color:#64748b;
}

.footer-meta{
  text-align:center;
  max-width:420px;
  font-size:0.9rem;
  color:#64748b;
}

.footer-credits{
  text-align:right;
}

.footer-label{
  display:block;
  font-size:0.75rem;
  letter-spacing:.15em;
  text-transform:uppercase;
  margin-bottom:10px;
  color:#94a3b8;
}

.logos{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:40px;
}

.logos img{
  height:80px;
  width:auto;
  opacity:.9;
  filter:grayscale(100%);
  transition:all .25s ease;
}

.logos img:hover{
  opacity:1;
}
@media (max-width: 768px){

  .topbar-inner span{
    display:none;
  }

  .topbar-inner{
    justify-content:center;
  }

  .topbar-inner a{
    font-size:0.85rem;
    padding:6px 12px;
  }

}