:root{
  --negro:#171717;
  --gris:#252525;
  --blanco:#ffffff;
  --rojo:#E8272A;
  --crema:#F9DFC1;
}
/* ── TOPBAR DE DETALLE ── */
.detail-topbar{
  width:100%;
  height:100px;
  pointer-events:none;
  position:relative;
}
.volver-link{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:38px;
  font-family:'Unbounded',sans-serif;
  font-weight:700;
  font-size:24px;
  line-height:1;
  color:#555;
  text-decoration:none;
  white-space:nowrap;
  pointer-events:all;
  display:flex;
  align-items:center;
  gap:10px;
  transition:color .25s;
}
.volver-link svg path{ stroke:#555; transition:stroke .25s; }
.volver-link:hover{ color:var(--blanco); }
.volver-link:hover svg path{ stroke:var(--blanco); }

/* ── HERO DEL CASO ── */
.caso-hero{
  position:relative;
  width:100%;
  height:45vh;
  min-height:320px;
  overflow:hidden;
  margin-top:40px;
}
.caso-hero img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.caso-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(23,23,23,0) 40%, rgba(23,23,23,0.85) 100%);
}

/* ── CONTENIDO ARTÍCULO ── */
.caso-content{
  max-width:720px;
  margin:0 auto;
  padding:80px 56px 160px;
}
.caso-tag{
  font-family:'DM Sans',sans-serif;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.08em;
  color:var(--rojo);
  text-transform:uppercase;
  margin-bottom:20px;
}
.caso-h1{
  font-family:'Unbounded',sans-serif;
  font-weight:700;
  font-size:48px;
  line-height:1.05;
  color:var(--blanco);
  margin-bottom:16px;
}
.caso-subtitle{
  font-family:'Unbounded',sans-serif;
  font-weight:200;
  font-variation-settings:'wght' 200;
  font-size:22px;
  line-height:1.5;
  color:#b2b2b2;
  margin-bottom:64px;
  padding-bottom:64px;
  border-bottom:1px solid #2a2a2a;
}
.caso-body{
  font-family:'DM Sans',sans-serif;
  font-size:18px;
  line-height:1.85;
  color:#c8c8c8;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.caso-body p{ margin:0; }
.caso-body p.destacado{
  font-family:'Unbounded',sans-serif;
  font-weight:700;
  font-size:22px;
  line-height:1.4;
  color:var(--blanco);
}
.volver-bottom{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:80px;
  font-family:'DM Sans',sans-serif;
  font-weight:500;
  font-size:15px;
  letter-spacing:0.02em;
  color:var(--blanco);
  text-decoration:none;
  opacity:0.5;
  transition:opacity .2s;
}
.volver-bottom:hover{ opacity:1; }

/* ══════════ MOBILE (≤768px) ══════════ */
@media (max-width:768px){
  .hamburger svg{ width:32px; height:28px; }

  .detail-topbar{ height:96px; }
  .volver-link{ left:20px; transform:none; top:78px; font-size:15px; gap:6px; }
  .volver-link svg{ width:16px; height:11px; }

  .caso-hero{ height:32vh; min-height:220px; }

  .caso-content{ padding:28px 20px 72px; }
  .caso-tag{ font-size:11px; margin-bottom:14px; }
  .caso-h1{ font-size:30px; line-height:1.15; margin-bottom:12px; }
  .caso-subtitle{ font-size:17px; margin-bottom:36px; padding-bottom:36px; }
  .caso-body{ font-size:16px; line-height:1.7; gap:20px; }
  .caso-body p.destacado{ font-size:18px; }
  .volver-bottom{ margin-top:48px; font-size:14px; }
}

@media (max-width:400px){
  .caso-h1{ font-size:26px; }
  .caso-hero{ height:28vh; min-height:180px; }
}

/* ── Header/menú móvil — tamaños propios de esta página ── */
@media (max-width:768px){
  #logo-sticky{ top:18px; left:20px; width:56px; }
  .hamburger{ top:22px; right:20px; width:32px; gap:6px; }
  #back-to-top{ bottom:18px; right:18px; width:40px; height:40px; }
}
@media (max-width:480px){
  #logo-sticky{ width:48px; }
}
