/**
Theme Name: MielIvars
Author: Magrana Creativitat Digital SL
Author URI: https://www.magrana.net
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mielivars
Template: astra
*/
:root{
  --mfi-honey:#F8D50F;
  --mfi-blue:#27316B;
  --mfi-cream:#FFF7E6;
  --mfi-text:#111827;
  --mfi-border:rgba(39,49,107,.12);
}

/* HERO */
.mfi-hero{
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--mfi-border);
}
.mfi-hero::before{
  content:"";
  position:absolute; inset:0;
  /* Overlay: crema -> transparente (legibilidad a la izquierda) */
  background: linear-gradient(90deg,
    rgba(255,247,230,.96) 0%,
    rgba(255,247,230,.88) 35%,
    rgba(255,247,230,.0) 70%);
  pointer-events:none;
}
.mfi-hero > *{ position: relative; z-index: 1; }

/* Badges estilo */
.mfi-badges{
  display:flex; flex-wrap:wrap; gap:10px;
}
.mfi-badge{
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--mfi-border);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
}

/* SCROLLYTELLING */
.mfi-story{
  background: var(--mfi-cream);
  border-top: 1px solid var(--mfi-border);
  border-bottom: 1px solid var(--mfi-border);
}
.mfi-story .mfi-story-visual{
  position: sticky;
  top: 96px;             /* ajusta según tu header sticky */
  min-height: 70vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mfi-border);
  box-shadow: 0 12px 40px rgba(17,24,39,.10);
}

/* Cards del relato (glass) */
.mfi-story-card{
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--mfi-border);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(17,24,39,.08);
  margin-bottom: 16px;
}
.mfi-story-card .mfi-step{
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(39,49,107,.65);
  font-size: 12px;
}
.mfi-story-card h3{
  margin: 8px 0 8px;
}
.mfi-story-card p{
  margin: 0 0 10px;
  color: rgba(17,24,39,.86);
}

/* Responsive: en móvil quitamos sticky (mejor UX) */
@media (max-width: 920px){
  .mfi-hero{ min-height: 70vh; }
  .mfi-story .mfi-story-visual{ position: relative; top: 0; min-height: 42vh; }
  .mfi-hero::before{
    background: linear-gradient(180deg,
      rgba(255,247,230,.94) 0%,
      rgba(255,247,230,.80) 55%,
      rgba(255,247,230,.10) 100%);
  }
}
