/* Ancient Future – Static Page
   Inspired by the provided flyer: warm off-white background + black hero panel + clean typography.
*/

:root{
  --bg: #f7f6f4;
  --ink: #111111;
  --paper: #ffffff;
  --muted: rgba(17,17,17,.64);
  --line: rgba(17,17,17,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow-soft: 0 6px 48px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
}

a{color:inherit}
.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto;
  background:var(--paper); padding:10px 12px; border-radius:10px; box-shadow:var(--shadow-soft);
  z-index:999;
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.hero{
  padding:54px 0 42px;
  background: #0b0b0b; /* full-bleed black */
  width: 100%;
  margin: 0;
  overflow: hidden;
}
.hero__frame{
  width:min(980px, calc(100% - 40px));
  margin-inline:auto;
  background: transparent; /* inner frame transparent so hero is full-width black */
  color:#ffffff;
  border-radius: 0;
  padding:56px 24px 36px;
  min-height: 580px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow: none;
  position:relative;
}

.hero__title{
  margin:0;
  font-weight:800;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: .02em;
  line-height:1.02;
  text-transform: capitalize;
}

.hero__subtitle{
  margin:12px 0 8px;
  font-weight:600;
  font-size: clamp(22px, 3.6vw, 36px);
  color: rgba(255,255,255,.96);
  letter-spacing: -0.01em;
  line-height:1.08;
  max-width: 900px;
}
.hero__title{
  margin:0;
  font-weight:500;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing:-.02em;
  line-height:1.06;
}

.hero__meta{
  margin:18px 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
  opacity:.95;
}

.hero__actions{
  margin-top:24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.hero__logo{
  margin-top:34px;
  width: 150px;
  height:auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
}

/* Hero-specific button adjustments for best contrast over black */
.hero .btn--primary{
  background: #ffffff;
  color: #0b0b0b;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.hero .btn--primary:hover{ box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.hero .btn--ghost{
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.22);
}
.hero .btn--ghost:hover{ background: rgba(255,255,255,.04); }

.main{padding: 10px 0 54px;}

.section{
  padding: 54px 0;
}

.section--paper{
  background: linear-gradient(0deg, rgba(255,255,255,.82), rgba(255,255,255,.82));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section--signature{
  background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,0));
}

.section__title{
  margin:0 0 14px;
  font-weight:700;
  letter-spacing:-.01em;
  font-size: clamp(22px, 2.7vw, 32px);
}

.lead{
  margin: 0 0 22px;
  font-size: 18px;
  color: var(--muted);
  max-width: 78ch;
}

/* Intro bottom and bullets placement */
.intro-bottom{ margin-top:18px; }
.intro-bottom .muted{ max-width:78ch; }
.bullets-bottom{ margin-top:18px; }
.bullets-bottom .bullets{ max-width:520px; margin:0; padding-left:20px; }

.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items:start;
}
.split--tight{grid-template-columns: 1fr 1fr;}
@media (max-width: 920px){
  .split, .split--tight{grid-template-columns:1fr;}
}

.bullets{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{margin: 10px 0;}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 1000px){ .cards{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .cards{grid-template-columns: 1fr;} }

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .01em;
}
.card p{margin:0; color: var(--muted); font-size: 14.5px;}

.timeline{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 920px){ .timeline{grid-template-columns:1fr;} }

.timeline__day{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
}
.timeline__day h3{margin:0 0 10px; font-size: 16px;}
.timeline__day ul{margin:0; padding-left: 18px; color: var(--muted);}
.timeline__day li{margin: 10px 0;}
.timeline__day strong{color: var(--ink);}

.subhead{
  margin: 0 0 8px;
  font-size: 16px;
}
.muted{color: var(--muted);}

.media{
  margin: 26px 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.media img{
  width:100%;
  height:auto;
  max-height:480px;
  object-fit:cover;
  display:block;
}
.media figcaption{
  padding: 10px 14px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.note{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:stretch;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
@media (max-width: 920px){ .note{grid-template-columns:1fr;} }

.note__text{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  position:relative;
  overflow:hidden;
}
.note__text:before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 10px;
  background: rgba(18,18,18,.55);
}
.note__title{
  margin: 0 0 13px;
  font-family: inherit; /* use global sans-serif for harmony */
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 18px;
  line-height:1.35;
  padding-left: 15px;
}
.note__text p{
  margin: 12px 0;
  color: rgba(18,18,18,.78);
  padding-left: 16px;
}
.email{font-weight:800; text-decoration:none;}
.email:hover{text-decoration:underline;}

.signoff{
  font-family: inherit; /* match site typography */
  letter-spacing:.04em;
  text-transform: none;
  font-size: 14px;
}

.note__actions{
  padding-left: 16px;
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.note__image{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  display:flex;
  align-items:stretch;
}
.note__image img{
  width:100%;
  height:auto;
  object-fit:cover;
  display:block;
}

.footerbrand{
  display:flex;
  justify-content:center;
  margin-top: 20px;
}
.footerbrand img{
  width: 160px;
  height:auto;
  background:#fff;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: var(--shadow-soft);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  will-change: transform;
}
.btn:active{transform: translateY(1px);}
.btn--primary{
  background: #ffffff;
  color: #0b0b0b;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.btn--primary:hover{box-shadow: 0 10px 26px rgba(0,0,0,.09);} 
.btn--ghost{
  background: transparent;
  color:#fff;
  border-color: rgba(255,255,255,.24);
}
.section .btn--ghost{color: var(--ink); border-color: var(--line);}
.btn--ghost:hover{background: rgba(18,18,18,.06);}

.thumbs{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){ .thumbs{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .thumbs{grid-template-columns: 1fr;} }

.thumb{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  text-decoration:none;
  box-shadow: var(--shadow-soft);
  display:block;
}
.thumb img{width:100%; height:auto; display:block;}
.thumb span{
  display:block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.sitefooter{
  background: #0b0b0b;
  color: #fff;
  padding: 28px 0;
  border-top: none;
}
.sitefooter__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
}

.sitefooter__brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.sitefooter__brand img{
  width:72px;
  height:auto;
  background:#fff;
  border-radius:10px;
  padding:6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.sitefooter__brand-text strong{display:block; font-size:16px;}
.sitefooter__brand-text .muted{color: rgba(255,255,255,.74); font-size:13px;}

/* Asegurar que .muted dentro del footer sea legible sobre fondo oscuro */
.sitefooter .muted{ color: rgba(255,255,255,.84); }

.sitefooter__links{display:flex; flex-direction:column; gap:8px; align-items:center;}
.footer-nav{display:flex; gap:12px; align-items:center;}
.footer-nav a{color: rgba(255,255,255,.94); text-decoration:none; font-weight:600;}
.footer-nav a:hover{opacity:.85; text-decoration:underline}

.sitefooter__contact a{color: rgba(255,255,255,.9); text-decoration:none; font-weight:700}
.sitefooter__meta{font-size:13px; color: rgba(255,255,255,.64); text-align:center; width:100%; margin-top:8px}

@media (max-width: 760px){
  .sitefooter__inner{flex-direction:column; align-items:flex-start;}
  .sitefooter__links{align-items:flex-start}
}

/* Footer legal description (small, readable) */
.sitefooter__legal{
  margin-top:10px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.45;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sitefooter__legal p{ margin: 10px 0; }
.sitefooter__legal ul{ margin:0 0 0; padding:0; display:inline-block; text-align:left; }
.sitefooter__legal li{ margin:4px 0; }

/* =========================
   Animaciones sutiles
   - Entrada del hero (texto, logo, acciones)
   - Hover en tarjetas, thumbs, note
   - Hover/press en botones
   - Stagger para cards/thumbs
   - Respetar prefers-reduced-motion
   Activación: la clase `is-loaded` se añade a <body> vía JS tras carga
   ========================= */

@media (prefers-reduced-motion: no-preference){

  .hero__title,
  .hero__meta,
  .hero__logo,
  .hero__actions{
    opacity: 0;
    transform: translateY(14px);
    transition: transform 1.2s cubic-bezier(.2,.9,.25,1), opacity 1.2s cubic-bezier(.2,.9,.25,1);
  }
  .hero__meta{ transition-delay: .30s; }
  .hero__logo{ transition-delay: .42s; }
  .hero__actions{ transition-delay: .54s; }

  body.is-loaded .hero__title,
  body.is-loaded .hero__meta,
  body.is-loaded .hero__logo,
  body.is-loaded .hero__actions{
    opacity: 1;
    transform: none;
  }

  /* Cards and list items entrance + subtle stagger */
  .cards .card,
  .timeline__day,
  .thumb,
  .note{
    opacity: 0;
    transform: translateY(10px);
    transition: transform 1s cubic-bezier(.22,.9,.32,1), opacity 1s cubic-bezier(.22,.9,.32,1), box-shadow .5s ease;
  }

  .cards .card:nth-child(1){ transition-delay: .08s }
  .cards .card:nth-child(2){ transition-delay: .16s }
  .cards .card:nth-child(3){ transition-delay: .24s }
  .cards .card:nth-child(4){ transition-delay: .32s }
  .cards .card:nth-child(5){ transition-delay: .40s }
  .cards .card:nth-child(6){ transition-delay: .48s }

  .thumb:nth-child(1){ transition-delay: .12s }
  .thumb:nth-child(2){ transition-delay: .20s }
  .thumb:nth-child(3){ transition-delay: .28s }

  body.is-loaded .cards .card,
  body.is-loaded .timeline__day,
  body.is-loaded .thumb,
  body.is-loaded .note{
    opacity: 1;
    transform: none;
  }

  /* Hover uplift for interactive surfaces */
  .card, .timeline__day, .thumb, .note{
    will-change: transform, box-shadow;
    transition: transform .34s ease, box-shadow .34s ease;
  }
  .card:hover, .timeline__day:hover, .thumb:hover, .note:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.08);
  }

  /* Buttons subtle lift */
  .btn{ transition: transform .24s ease, box-shadow .24s ease, background .24s ease; }
  .btn:hover{ transform: translateY(-3px); }
  .btn:active{ transform: translateY(0); }
  .btn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }

}

@media (prefers-reduced-motion: reduce){
  .hero__title, .hero__meta, .hero__logo, .hero__actions, .cards .card, .timeline__day, .thumb, .note, .btn{ transition: none !important; transform: none !important; opacity: 1 !important; }
}
