/* =========================================================
   DMF BLOG THEME
   Pegar al final de dmfsi4.css o cargar después
   ========================================================= */

/* ---------- Tokens visuales alineados al landing ---------- */
:root{
  --bg: #0b1118;
  --surface: #101a25;
  --surface-2: #132232;
  --surface-3: #1a2b3b;
  --primary: #253240;
  --primary-2: #31485f;
  --accent: #ffd343;
  --accent-2: #f5d9a2;
  --text: #f4f7fb;
  --muted: #aab7c5;
  --line: rgba(255,255,255,0.10);
  --white: #ffffff;
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --container: 1180px;
}

/* ---------- Base ---------- */
body{
  font-family:"Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,211,67,0.07), transparent 22%),
    radial-gradient(circle at bottom right, rgba(49,72,95,0.18), transparent 30%),
    linear-gradient(180deg, #081018 0%, #0d1620 100%);
  color: var(--text);
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.bottom{
  background: transparent;
}

/* ---------- Header / nav igualado al landing ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 16, 24, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.nav{
  min-height: 84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand img{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:14px;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-copy strong{
  font-size:1.05rem;
  letter-spacing:.02em;
  color: var(--white);
}

.brand-copy span{
  font-size:.88rem;
  color: var(--muted);
}

.nav-menu{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav-menu a{
  position: relative;
  color: var(--muted);
  font-weight:600;
  transition: color .25s ease;
}

.nav-menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:2px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width .25s ease;
}

.nav-menu a:hover{
  color: var(--white);
}

.nav-menu a:hover::after{
  width:100%;
}

.nav-menu a[href="/blog"]{
  color: var(--white);
}

.nav-menu a[href="/blog"]::after{
  width:100%;
}

.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  border:none;
  background:rgba(255,255,255,0.06);
  border-radius:12px;
  cursor:pointer;
  padding:10px;
}

.nav-toggle span{
  display:block;
  width:100%;
  height:3px;
  border-radius:999px;
  background:var(--white);
  margin:5px 0;
}

/* ---------- Banner ---------- */
.banner-dmf{
  padding: 28px 16px 10px;
  background: transparent;
}

.banner-anim{
  position: relative;
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  border-radius: 28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.banner-img{
  width:100%;
  max-height:420px;
  object-fit:cover;
}

.banner-shine{
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.08) 18%,
    transparent 36%
  );
  transform: translateX(-120%);
  animation: dmfBannerShine 7s ease-in-out infinite;
}

.banner-noise{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(rgba(255,255,255,.03) 0.8px, transparent 0.8px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
  pointer-events:none;
}

@keyframes dmfBannerShine{
  0%, 100%{ transform: translateX(-120%); }
  45%{ transform: translateX(120%); }
}

/* ---------- Secciones del blog ---------- */
.section{
  width:min(var(--container), calc(100% - 32px));
  margin: 26px auto;
  padding: 34px 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section:hover{
  border-color: rgba(255,211,67,0.18);
  box-shadow: var(--shadow-md);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.overlap-2{
  padding:0;
}

/* ---------- Tipografía ---------- */
.section h1{
  margin:0 0 10px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height:1.08;
  text-align:center;
  color: var(--white);
  letter-spacing:-0.03em;
}

.section h2{
  margin:0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height:1.12;
  text-align:center;
  color: var(--white);
}

.section h3,
.titulo3{
  color: var(--white);
}

.titulo3{
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height:1.25;
  text-align:left;
  font-weight:800;
  margin-bottom: 10px;
}

.section p{
  color: var(--muted);
  font-size: 1.02rem;
  line-height:1.75;
}

.section strong{
  color: var(--white);
}

.section em{
  color: var(--accent-2);
}

/* ---------- Barra separadora ---------- */
.barra-separadora{
  width:72px;
  height:4px;
  margin:14px auto 0;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(255,211,67,.18);
}

/* ---------- Fecha ---------- */
.post-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:8px 0 2px;
}

.date-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#1d2730;
  font-weight:800;
  font-size:.9rem;
  box-shadow: var(--shadow-sm);
}

.date-pill::before{
  content:"🗓️";
}

/* ---------- Layout de cada post ---------- */
.content-wrapper{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap:28px;
  align-items:center;
}

.image-content{
  display:flex;
  align-items:center;
  justify-content:center;
}

.image-content a{
  display:block;
  width:100%;
}

.image-content img{
  width:100%;
  max-height:430px;
  object-fit:cover;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.image-content img:hover{
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,211,67,0.22);
}

.text-content{
  padding: 6px 4px;
}

/* ---------- Listas ---------- */
.section ul{
  list-style:none;
  padding:0;
  margin: 18px 0;
  display:grid;
  gap:10px;
}

.section ul li{
  position:relative;
  padding:14px 16px 14px 18px;
  border-radius:16px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  line-height:1.6;
}

.section ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* ---------- Botones ---------- */
.button-container{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin-top:22px;
}

.button-container a{
  text-decoration:none;
}

.button-container button{
  appearance:none;
  border:none;
  min-height:54px;
  padding:0 22px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  color:#1d2730;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.button-container button:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.02);
}

/* ---------- Portada del blog (primera sección) ---------- */
#inicio-section{
  text-align:center;
}

#inicio-section p{
  max-width: 860px;
  margin: 18px auto 0;
}

/* ---------- Footer alineado al landing ---------- */
footer{
  width:100%;
  margin-top: 40px;
  padding: 42px 20px 28px;
  background:#081018;
  border-top:1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.footer-content{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  text-align:center;
}

.footer-links{
  margin:0 0 12px;
}

.footer-links a{
  color: var(--muted);
  transition: color .25s ease;
}

.footer-links a:hover{
  color: var(--white);
}

.footer-separator{
  border:none;
  height:1px;
  margin: 16px 0;
  background: rgba(255,255,255,0.08);
}

.footer-reserved{
  color: var(--white);
  font-weight:700;
  margin-bottom:8px;
}

.footer-details{
  color: var(--muted);
  line-height:1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .nav-toggle{
    display:block;
  }

  .nav-menu{
    position:absolute;
    top:84px;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:rgba(8,16,24,0.98);
    border-bottom:1px solid var(--line);
    padding:12px 16px 18px;
  }

  .nav-menu.open{
    display:flex;
  }

  .nav-menu a{
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }

  .nav-menu a:last-child{
    border-bottom:none;
  }

  .nav-menu a::after{
    display:none;
  }

  .content-wrapper{
    grid-template-columns:1fr;
  }

  .section{
    padding:26px 18px;
    margin:18px auto;
  }

  .text-content{
    padding:0;
  }

  .titulo3{
    text-align:center;
  }

  .button-container{
    justify-content:center;
  }

  .image-content img{
    max-height:none;
  }
}

@media (max-width: 640px){
  .container,
  .footer-content,
  .banner-anim,
  .section{
    width:min(var(--container), calc(100% - 22px));
  }

  .brand-copy span{
    font-size:.8rem;
  }

  .section h1{
    font-size:2rem;
  }

  .section p{
    font-size:.98rem;
  }

  .button-container button{
    width:100%;
    padding:14px 18px;
    height:auto;
  }

  .date-pill{
    font-size:.84rem;
    text-align:center;
  }
}