:root{
  --bg-page: #fdf9f2;
  --panel-a: #fffdf8;
  --panel-b: #efe4cc;

  --gold: #c9a14a;
  --gold-dark: #8a5a11;

  --text-main: #2f2519;
  --text-soft: #5c4b32;
  --blue-deep: #0d254f;

  --shadow: rgba(0,0,0,.10);
}

body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
}

main{
  max-width: 980px;
  margin: 0 auto 120px;
  padding: 20px;
}

/* HERO */
.article-hero{
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
  margin: 18px 0 18px;
  background: #000;
  position: relative;
}

.hero-bg{
  background:
    linear-gradient(to bottom, rgba(13,37,79,.92), rgba(13,37,79,.55)),
    var(--hero-image, url("imagenes/automatizacion.jpg")) center/cover no-repeat;
  min-height: 320px;
  display:flex;
  align-items:flex-end;
}

.hero-overlay{
  padding: 26px 24px 22px;
  width: min(760px, 92%);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.kicker{
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
}

.dot{
  width: 7px; height: 7px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-dark));
  box-shadow: 0 0 10px rgba(201,161,74,.55);
  display:inline-block;
}

.hero-overlay h1{
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin: 10px 0 10px;
}

.subtitle{
  margin:0;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  font-size: .95rem;
  opacity: 1;
  font-style: italic;
}

.hero-subtitle{
  margin: 0 0 10px;
  font-size: .95rem;
  opacity: .92;
  font-style: italic;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.meta{
  font-size: .82rem;
  opacity: .88;
}

/* Panel pergamino */
.panel{
  background: radial-gradient(circle at 18% 18%, var(--panel-a) 0%, var(--panel-b) 72%);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow:
    0 24px 48px var(--shadow),
    0 2px 4px rgba(0,0,0,.06);
}

/* Tipografía y elementos */
h2{
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 34px 0 10px;
  font-size: 1.7rem;
  line-height: 1.15;
}

h2::after{
  content:"";
  display:block;
  width: 86px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold), #f2ddb0, var(--gold));
  box-shadow: 0 0 8px rgba(201,161,74,.55);
}

h3{
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: #1b2a44;
  margin: 22px 0 8px;
  font-size: 1.35rem;
}

p{
  margin: 14px 0;
  color: var(--text-soft);
  font-size: 1rem;
}

ul{
  margin: 14px 0 10px;
  padding-left: 18px;
  color: var(--text-soft);
}

li{ margin: 9px 0; }

a{
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 600;
}
a:hover{ text-decoration: underline; }

/* Cita */
.quote{
  margin: 22px 0;
  padding: 18px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.60);
  border-radius: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Bloque “viajes” final */
.travel-box{
  margin-top: 34px;
  background: linear-gradient(135deg, rgba(13,37,79,.96), rgba(13,37,79,.78));
  border: 1px solid rgba(201,161,74,.55);
  border-radius: 16px;
  padding: 18px 18px;
  color: #fff;
  box-shadow: 0 24px 48px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
}

.travel-box::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,161,74,.30) 0%, rgba(201,161,74,0) 55%),
    radial-gradient(circle at 70% 60%, rgba(242,221,176,.22) 0%, rgba(242,221,176,0) 55%);
  transform: rotate(8deg);
  pointer-events:none;
}

.travel-box *{ position: relative; }

.travel-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .95;
  margin-bottom: 8px;
}

.travel-title{
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.travel-box p{
  margin: 0;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.travel-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration:none;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .18s ease, background .18s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.chip:hover{
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
  text-decoration:none;
}
.chip:visited{ color:#fff; }

.gold-dot{
  width: 9px; height: 9px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-dark));
  box-shadow: 0 0 10px rgba(201,161,74,.55);
  display:inline-block;
}

/* Reveal desde abajo */
.reveal-base{
  opacity: 0;
  transform: translateY(56px);
  filter: blur(6px);
  transition: all .9s ease;
  will-change: transform, opacity, filter;
}
.reveal-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Botón subir arriba */
.btn-scroll-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--gold-dark);
  background: radial-gradient(circle at 30% 30%, var(--gold) 0%, var(--gold-dark) 70%);
  color: #2a1c0c;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.40);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.btn-scroll-top.visible{
  opacity: 1;
  pointer-events: auto;
}
.btn-scroll-top:hover{ transform: translateY(-2px); }

@media (max-width: 640px){
  .hero-bg{ min-height: 360px; }
  .panel{ padding: 22px 18px; }
  h2{ font-size: 1.55rem; }
  .travel-title{ font-size: 1.45rem; }
}
