/* =========================================================
   DULCE DESPERTAR — HOME
   Dirección visual editorial / documental
   ========================================================= */

:root {

  /* -------------------------------------------------------
     DULCE DESPERTAR
     ------------------------------------------------------- */

  --cream: #ffffff;
  --cream-2: #f3f9fd;
  --cream-3: #eaf5fb;

  --ink: #303044;
  --muted: #687783;

  --coral: #f23843;
  --yellow: #f7d52d;
  --magenta: #c72d91;

  --blue: #5b8fc4;
  --blue-soft: #eaf5fb;
  --blue-sky: #dff2fc;
  --blue-deep: #477eae;

  --line: rgba(71, 126, 174, .14);

  /* -------------------------------------------------------
     SIN FILTROS
     ------------------------------------------------------- */

  --sf-cream: #fff4e5;
  --sf-turquoise: #50b9b1;
  --sf-turquoise-dark: #328d8b;
  --sf-coral: #f2676b;
  --sf-yellow: #f5d84c;
  --sf-magenta: #e52d9a;
  --sf-purple: #7148a8;
  --sf-ink: #263a42;

  /* -------------------------------------------------------
     TIPOGRAFÍA
     ------------------------------------------------------- */

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Nunito Sans", Arial, sans-serif;
  --fun: "Fredoka", Arial, sans-serif;

  /* -------------------------------------------------------
     ESTRUCTURA
     ------------------------------------------------------- */

  --max: 1240px;
  --radius: 26px;
  --header-h: 82px;

  --story-pink: #e99ab5;
  --story-pink-light: #f8dce6;
  --story-pink-soft: #fff1f5;
  --story-pink-dark: #d7799a;
  --story-gold: #e7bd58;

}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 15px);
}

body {
  margin: 0;

  background: var(--cream);
  color: var(--ink);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;

  height: var(--header-h);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 4vw;

  /*
   * Incluso sobre el Hero mantenemos una pequeña
   * presencia visual para separar navegación y fotografía.
   */
  background: rgba(255, 253, 251, .60);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  transition:
    background .35s ease,
    box-shadow .35s ease,
    height .35s ease,
    backdrop-filter .35s ease;
}

.site-header.scrolled {
  height: 68px;

  background: rgba(255, 253, 251, .94);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 8px 30px rgba(48, 48, 68, .07);
}

/* ---------------------------------------------------------
   Navegación escritorio
   --------------------------------------------------------- */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;

  font-size: .88rem;
  font-weight: 700;
}

.desktop-nav > a:not(.nav-cta) {
  position: relative;
}

.desktop-nav > a:not(.nav-cta)::after {
  content: "";

  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;

  height: 2px;

  background: var(--coral);

  transition: right .25s ease;
}

.desktop-nav > a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  padding: 10px 17px;

  border-radius: 999px;

  background: var(--coral);
  color: white;
}

/* ---------------------------------------------------------
   Menú móvil
   --------------------------------------------------------- */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  margin: 5px auto;

  background: var(--ink);
}

.mobile-menu {
  position: fixed;

  inset: var(--header-h) 0 auto 33.33%;

  z-index: 99;

  display: none;

  padding: 22px 7vw 30px;

  background: rgba(255, 253, 251, .98);

  box-shadow:
    0 18px 30px rgba(48, 48, 68, .1);
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a {
  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  font-weight: 700;
}

/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

.section {
  padding:
    30px
    max(5vw, calc((100vw - var(--max)) / 2));
}

.section-cream {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f3f9fd 100%
    );
}

.section-soft {
  background:
    linear-gradient(
      180deg,
      #f8fcff 0%,
      #eaf5fb 100%
    );
}

.section-quiet {
  background: #ffffff;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 55px;
}

/* =========================================================
   TIPOGRAFÍA
   ========================================================= */

.eyebrow {
  margin: 0 0 15px;

  color: #0F2F5F;

  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: .22em;
}

.eyebrow-light {
  color: rgba(255, 255, 255, .8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  color: #000000;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -.025em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin-bottom: 20px;

  color: white;

  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
}

h2 {
  margin-bottom: 16px;

  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}

h1 em,
h2 em {
  color: var(--coral);
  font-style: normal;
}

.section-intro > p:last-child {
  max-width: 600px;

  color: var(--muted);

  font-size: .95rem;
}

/* =========================================================
   BOTONES Y ENLACES
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;

  padding: 14px 21px;

  border-radius: 999px;

  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;

  transition:
    transform .25s ease,
    background .25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-outline {
  margin-top: 28px;

  border: 1px solid var(--ink);

  color: var(--ink);
}

.text-link {
  display: inline-flex;
  gap: 13px;

  color: var(--coral);

  font-weight: 800;
}

.text-link span {
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 80svh;

  display: grid;
  place-items: center;

  overflow: hidden;

  padding: 110px 6vw 40px;

  background: #e9e7e4;
}

/* ---------------------------------------------------------
   Fondo
   --------------------------------------------------------- */

.hero-photo {
  display: none;
}

.hero-overlay {
  display: none;
}

/* ---------------------------------------------------------
   Contenido principal
   --------------------------------------------------------- */

.hero-content {
  position:relative;
  z-index:2;
  width:min(100%,1400px);
  margin:0 auto;
  display:block;
  text-align:left;
}

/* ---------------------------------------------------------
   Versículos
   --------------------------------------------------------- */

.hero-verses {
  width:100%;
  max-width:none;
  text-align:left;
}

.hero-verse {
  max-width:none;
  margin-bottom:28px;
}

.hero-verse:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Referencias bíblicas
   --------------------------------------------------------- */

.hero-verse .eyebrow {
  margin-bottom: 8px;

  color: #0f2f5f;

  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
}

/* ---------------------------------------------------------
   Texto
   --------------------------------------------------------- */

.hero-verse > p:last-child {
  max-width:none;
  margin:0;
  color:#3A3A46;
  font-family:var(--serif);
  font-size:clamp(1rem,1.5vw,1.35rem);
  line-height:1.35;
}

/* ---------------------------------------------------------
   Animaciones del contenido — anuladas
   --------------------------------------------------------- */

.hero-animated {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hero-animated .eyebrow,
.hero-animated h1,
.hero-animated .hero-copy,
.hero-animated .button {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

 /* ---------------------------------------------------------
    Movimiento sutil de los versículos
    --------------------------------------------------------- */

.hero-verse {
  animation: heroVerseFloat 6s ease-in-out infinite;
  will-change: transform;
}

.hero-verse-1 {
  animation-delay: 0s;
}

.hero-verse-2 {
  animation-delay: -1.5s;
}

.hero-verse-3 {
  animation-delay: -3s;
}

.hero-verse-4 {
  animation-delay: -4.5s;
}


@keyframes heroVerseFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

}

/* ---------------------------------------------------------
   Indicador de desplazamiento
   --------------------------------------------------------- */

.scroll-note {
  position: absolute;

  z-index: 3;

  right: 5vw;
  bottom: 28px;

  color: #303044;

  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.scroll-note span {
  display: inline-block;

  margin-left: 10px;

  animation: none;
}

/* ---------------------------------------------------------
   Controles de fotografía
   --------------------------------------------------------- */

.hero-controls {
  display: none;
}

/* =========================================================
   PLACEHOLDERS
   ========================================================= */

.placeholder-photo {
  display: grid;
  place-items: center;

  background-image: url("assets/fondo-carga.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.placeholder-photo > span,
.media-placeholder > span {
  padding: 8px 13px;

  border: 1px dashed rgba(48, 48, 68, .28);
  border-radius: 999px;

  background: rgba(255, 255, 255, .56);

  font-size: .72rem;
  font-weight: 700;
}

/* =========================================================
   HISTORIA
   ========================================================= */

.story {
  display: flow-root;
}

.story-image {
  float: left;

  width: min(46%, 560px);

  margin: 55px 55px 25px 0;

  position: relative;

  min-height: 0;

  display: block;

  isolation: isolate;

  overflow: visible;

  background: transparent;
}

.story-copy {
  width: 100%;
}

/* El marco vuelve a su posición natural */

.story-frame {
  transform: rotate(-1.5deg);
}

/* ---------------------------------------------------------
   Marco fotográfico de Nuestra historia
   --------------------------------------------------------- */

.story-image {
  position: relative;

  min-height: 400px;

  display: grid;
  place-items: center;

  isolation: isolate;

  overflow: visible;

  background: transparent;
}

/* ==========================================================
   MARCO FOTOGRÁFICO — NUESTRA HISTORIA
   ========================================================== */

.story-frame {
  position: relative;
  width: 100%;
  min-height: 300px;
  padding: 16px;
  border: 2px solid var(--story-pink);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      var(--story-pink-soft),
      #fffdfb 45%,
      var(--story-pink-light)
    );
  box-shadow:
    0 14px 35px rgba(215, 121, 154, .12),
    0 4px 12px rgba(48, 48, 68, .06);
  transform: rotate(-1.5deg);
}

/* Borde interior */

.story-frame::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(215, 121, 154, .38);
    border-radius: 19px;
    pointer-events: none;
}

/* Pequeños detalles decorativos del marco */

.story-frame::after {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px dashed rgba(231, 189, 88, .38);
    border-radius: 16px;
    pointer-events: none;
}

/* Fotografía */

.story-frame-photo {
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    border-radius: 15px;
    background: var(--story-pink-light);
    box-shadow:
        0 6px 18px rgba(48, 48, 68, .1);
    z-index: 1;
}

/* ==========================================================
   DECORACIONES
   ========================================================== */

.story-decoration {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

/* ----------------------------------------------------------
   FLOR
   ---------------------------------------------------------- */

.story-flower {
    width: 38px;
    height: 38px;
    top: -13px;
    left: -13px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at center,
            var(--story-gold) 0 5px,
            transparent 6px
        );
    filter: drop-shadow(0 3px 4px rgba(48, 48, 68, .12));
}

.story-flower::before,
.story-flower::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--story-pink);
}

.story-flower::before {
    top: -5px;
    left: 9px;
    box-shadow:
        -9px 11px 0 var(--story-pink),
        9px 11px 0 var(--story-pink),
        0 20px 0 var(--story-pink);
}

.story-flower::after {
    width: 9px;
    height: 9px;
    top: 14px;
    left: 14px;
    background: var(--story-gold);
}

/* ----------------------------------------------------------
   SOL
   ---------------------------------------------------------- */

.story-sun {
    width: 34px;
    height: 34px;
    top: -12px;
    right: -12px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            var(--story-gold) 0 42%,
            transparent 44%
        ),
        repeating-conic-gradient(
            from 0deg,
            var(--story-gold) 0deg 7deg,
            transparent 7deg 20deg
        );
    filter: drop-shadow(0 3px 4px rgba(48, 48, 68, .12));
}

/* ----------------------------------------------------------
   MARIPOSA
   ---------------------------------------------------------- */

.story-butterfly {
    width: 48px;
    height: 42px;
    bottom: -11px;
    left: -14px;
    transform: rotate(-8deg);
    filter: drop-shadow(0 3px 4px rgba(48, 48, 68, .12));
}

.butterfly-wing {
    position: absolute;
    width: 22px;
    height: 30px;
    top: 4px;
    background: var(--story-pink);
}

.butterfly-wing-left {
    left: 1px;
    border-radius: 70% 35% 65% 40%;
    transform: rotate(-20deg);
}

.butterfly-wing-right {
    right: 1px;
    border-radius: 35% 70% 40% 65%;
    transform: rotate(20deg);
}

.butterfly-body {
    position: absolute;
    width: 6px;
    height: 27px;
    top: 8px;
    left: 21px;
    border-radius: 50%;
    background: var(--story-gold);
}

.story-butterfly::before,
.story-butterfly::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 7px;
    top: 2px;
    border-top: 1px solid var(--story-gold);
}

.story-butterfly::before {
    left: 10px;
    transform: rotate(-25deg);
}

.story-butterfly::after {
    right: 10px;
    transform: rotate(25deg);
}

/* ----------------------------------------------------------
   CORAZÓN
   ---------------------------------------------------------- */

.story-heart {
    width: 27px;
    height: 27px;
    right: -9px;
    bottom: -8px;
    transform: rotate(-45deg);
    background: var(--story-pink-dark);
    border-radius: 5px 0 5px 0;
    filter: drop-shadow(0 3px 4px rgba(48, 48, 68, .12));
}

.story-heart::before,
.story-heart::after {
    content: "";
    position: absolute;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--story-pink-dark);
}

.story-heart::before {
    top: -13px;
    left: 0;
}

.story-heart::after {
    top: 0;
    left: 13px;
}

/* ==========================================================
   CONTROLES DE FOTOGRAFÍA
   ========================================================== */

.story-control {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 253, 251, .88);
    color: var(--story-pink-dark);
    font-family: var(--sans);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(48, 48, 68, .12);
    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease;
}

.story-control:hover {
    background: var(--story-pink-dark);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.story-control-prev {
    left: 9px;
}

.story-control-next {
    right: 9px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 640px) {

    .story-frame {
        min-height: 310px;
        padding: 12px;
        border-radius: 20px;
    }

    .story-frame::before {
        inset: 6px;
        border-radius: 16px;
    }

    .story-frame::after {
        inset: 10px;
        border-radius: 14px;
    }

    .story-frame-photo {
        min-height: 280px;
        border-radius: 12px;
    }

    .story-flower {
        transform: scale(.82);
        transform-origin: top left;
    }

    .story-sun {
        transform: scale(.82);
        transform-origin: top right;
    }

    .story-butterfly {
        transform: scale(.82) rotate(-8deg);
        transform-origin: bottom left;
    }

    .story-heart {
        transform: scale(.82) rotate(-45deg);
        transform-origin: bottom right;
    }

    .story-control {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .story-control-prev {
        left: 5px;
    }

    .story-control-next {
        right: 5px;
    }
}

.story-copy p:not(.eyebrow) {
  color: #526269;
}

.story-copy blockquote {
  margin: 20px 0;
  padding-left: 18px;

  border-left: 3px solid var(--coral);

  color: var(--ink);

  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

@media (max-width: 760px) {

  .hero {
    padding: 105px 7vw 75px;
  }

  .hero-content {
    grid-template-columns: 1fr;

    gap: 42px;

    text-align: center;
  }

  .hero-verses {
    text-align:left;
  }

  .hero-verse {
    max-width: 100%;
  }

  .hero-verse > p:last-child {
    max-width: 100%;

    font-size: clamp(0.9rem, 3.8vw, 1.15rem);
    line-height: 1.3;
  }

  .hero-verse .eyebrow {
    font-size: .7rem;
  }

}

/* =========================================================
   IDENTIDAD
   Misión / Visión / Propósito / Valores
   ========================================================= */

/* =========================================================
   ESTRUCTURA IDENTIDAD
   ========================================================= */

.identity-layout {
  display: grid;

  grid-template-columns:
    minmax(250px, .72fr)
    minmax(0, 1.28fr);

  gap: clamp(40px, 6vw, 80px);

  align-items: start;
}

.identity-intro {
  position: sticky;
  top: 115px;
}

.identity-intro h2 {
  max-width: 450px;

  font-size: clamp(2.7rem, 3.8vw, 4.1rem);
}

.identity-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  margin-top: 0;
}

/* =========================================================
   ESTRUCTURA GENERAL DE IDENTIDAD
   ========================================================= */

.identity-card {
  position: relative;

  min-height: 205px;

  padding: 24px 25px;

  border: 1px solid rgba(215, 121, 154, .34);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      #fffdfb 0%,
      var(--story-pink-soft) 100%
    );

  box-shadow:
    0 8px 22px rgba(215, 121, 154, .07);

  overflow: hidden;

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

/* Borde interior */

.identity-card::before {
  content: "";

  position: absolute;
  inset: 7px;

  border: 1px solid rgba(215, 121, 154, .22);
  border-radius: 15px;

  pointer-events: none;
}

/* Pequeño detalle decorativo */

.identity-card::after {
  content: "✦";

  position: absolute;
  right: 15px;
  bottom: 10px;

  color: var(--story-gold);

  font-size: 15px;

  opacity: .55;
}

.identity-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 14px 30px rgba(215, 121, 154, .11);
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.identity-label {
  position: relative;
  z-index: 1;

  display: block;

  margin-bottom: 12px;

  color: var(--story-pink-dark);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .16em;
}

.identity-card h3 {
  position: relative;
  z-index: 1;

  margin: 0 0 10px;

  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;

  line-height: 1.05;

  color: var(--ink);
}

.identity-card p {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
}

.identity-card small {
  position: relative;
  z-index: 1;

  display: block;

  margin-top: 13px;

  color: var(--story-pink-dark);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .04em;
}

/* =========================================================
   VALORES
   Texto corrido, sin mini tarjetas
   ========================================================= */

.identity-values {
  position: relative;
  z-index: 1;

  margin-top: 12px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.75;
}

.identity-values span {
  display: inline;

  padding: 0;

  border: 0;
  border-radius: 0;

  background: none;

  color: inherit;

  font-size: inherit;
  font-weight: 400;
}

.identity-values span:not(:last-child)::after {
  content: " · ";

  color: var(--story-pink);
  font-weight: 700;
}

/* =========================================================
   LO QUE HACEMOS
   ========================================================= */

.pillars {
  padding-top: 70px;
  padding-bottom: 75px;
}

.pillars-layout {
  display: grid;

  grid-template-columns:
    minmax(250px, .72fr)
    minmax(0, 1.28fr);

  gap: clamp(40px, 6vw, 80px);

  align-items: start;
}

.pillars-intro {
  position: sticky;
  top: 115px;
}

.identity-intro,
.pillars-intro {
  margin-bottom: 0;
}

.pillars-intro h2 {
  max-width: 450px;

  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
}

.pillars-intro > p:last-child {
  max-width: 380px;

  margin-top: 18px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   MATRIZ 2 × 2
   ========================================================= */

.pillar-list {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;
}

.pillar {
  position: relative;

  min-height: 170px;

  display: grid;

  grid-template-columns: auto 1fr;

  gap: 14px;

  padding: 21px 19px;

  border: 1px solid rgba(215, 121, 154, .30);
  border-radius: 19px;

  background: #fffdfb;

  box-shadow:
    0 8px 20px rgba(48, 48, 68, .05);

  overflow: hidden;

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

/* Borde interior */

.pillar::before {
  content: "";

  position: absolute;
  inset: 6px;

  border: 1px solid rgba(231, 189, 88, .18);
  border-radius: 15px;

  pointer-events: none;
}

.pillar:hover {
  transform: translateY(-3px);

  box-shadow:
    0 14px 30px rgba(48, 48, 68, .08);
}

/* =========================================================
   CONTENIDO DE CADA PILAR
   ========================================================= */

.pillar-number {
  position: relative;
  z-index: 1;

  color: var(--story-pink);

  font-family: var(--serif);

  font-size: 21px;
  line-height: 1;
}

.pillar h3 {
  position: relative;
  z-index: 1;

  margin: 0 0 8px;

  font-family: var(--serif);

  font-size: 21px;
  font-weight: 400;

  line-height: 1.08;

  color: var(--ink);
}

.pillar p {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--muted);

  font-size: 12.5px;
  line-height: 1.55;
}

.pillar-time {
  position: absolute;
  z-index: 1;

  right: 17px;
  bottom: 14px;

  padding: 4px 8px;

  border-radius: 999px;

  background: var(--story-pink-soft);

  color: var(--story-pink-dark);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .04em;

  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

  .identity-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .identity-intro {
    position: static;
  }

  .identity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .pillars-intro {
    position: static;
  }

  .pillars-intro > p:last-child {
    max-width: 600px;
  }
}

@media (max-width: 640px) {

  .identity-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .identity-intro h2,
  .pillars-intro h2 {
    font-size: 1.3rem;
  }

  .identity-intro .eyebrow,
  .pillars-intro .eyebrow {
    font-size: 1.6rem;
    letter-spacing: .12em;
  }

  .identity-card h3 {
    font-size: 24px;
  }

  .identity-card p,
  .identity-values {
    font-size: 13px;
  }

  .pillars {
    padding-top: 60px;
    padding-bottom: 65px;
  }

  .pillar h3 {
    font-size: 21px;
  }
}

/* =========================================================
   EXPERIENCIAS
   ========================================================= */

#experiencias {
  background: var(--cream);
}

#experiencias .section-intro {
  max-width: 850px;
}

#experiencias .section-intro h2 {
  max-width: 720px;
}

.gallery-status {
  margin: -22px 0 30px;

  color: var(--muted);

  font-size: .86rem;
}

.experience-gallery {
  display: grid;
  gap: 32px;
}

/* ---------------------------------------------------------
   GALERÍA EXCLUSIVA — SIN FILTROS
   --------------------------------------------------------- */

#sinFiltrosGallery {
  width: 100%;
}

#sinFiltrosGallery > .sin-filtros-group {
  width: 100%;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
}

/* Las cinco experiencias van en una sola fila */

#sinFiltrosGallery > .sin-filtros-group .gallery-group-items {
  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 18px;

  width: 100%;
}

/* ---------------------------------------------------------
   Grupos
   --------------------------------------------------------- */

.gallery-group {
  padding: 30px;

  border: 1px solid var(--line);
  border-radius: 28px;

  background: var(--cream-2);
}

.gallery-group-heading {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 24px;
}

.gallery-group-heading h3 {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;

  line-height: 1.05;
}

.gallery-group-heading p:last-child {
  max-width: 500px;
  margin: 0;

  color: var(--muted);

  font-size: .9rem;
}

/* ---------------------------------------------------------
   Matriz de experiencias
   --------------------------------------------------------- */

.gallery-group-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ---------------------------------------------------------
   Tarjetas de experiencias
   --------------------------------------------------------- */

.experience-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgba(48, 48, 68, .10);
  border-radius: 18px;

  background: white;

  box-shadow:
    0 8px 24px rgba(48, 48, 68, .06);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 35px rgba(48, 48, 68, .11);
}

/* ---------------------------------------------------------
   Portada
   --------------------------------------------------------- */

.experience-card-cover {
  position: relative;

  width: 100%;
  height: 205px;

  flex-shrink: 0;

  overflow: hidden;

  background: var(--cream-3);
}

.experience-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: .88;

  transition:
    transform .6s ease,
    opacity .4s ease;
}

.experience-card:hover .experience-card-image {
  transform: scale(1.035);

  opacity: 1;
}

/* ---------------------------------------------------------
   Capa sobre la fotografía
   --------------------------------------------------------- */

.experience-card-overlay {
  position: absolute;

  inset: 0;

  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 18px;

  color: white;

  background:
    linear-gradient(
      180deg,
      rgba(20, 20, 30, 0) 35%,
      rgba(20, 20, 30, .72) 100%
    );
}

.experience-card-overlay h3 {

  max-width: 95%;

  margin: 0;

  color: #ffffff;

  font-family: var(--serif);

  font-size: clamp(
    1.25rem,
    1.5vw,
    1.65rem
  );

  font-weight: 400;

  line-height: 1.05;

  text-shadow:
    0 2px 12px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------
   Cantidad de fotografías
   --------------------------------------------------------- */

.experience-card-meta {
  position: absolute;

  top: 15px;
  left: 15px;

  z-index: 3;
}

.experience-card-meta span {
  display: inline-block;

  padding: 6px 9px;

  border-radius: 999px;

  background: rgba(20, 20, 30, .52);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  color: white;

  font-size: .58rem;
  font-weight: 800;

  letter-spacing: .14em;
}

/* ---------------------------------------------------------
   Descripción
   --------------------------------------------------------- */

.experience-card-content {
  display: none;
}

.experience-card-content p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.experience-card {
  cursor: pointer;
}

.experience-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.experience-card-content p {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;

  color: var(--muted);

  font-size: .82rem;
  line-height: 1.45;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.experience-card-empty {
  opacity: .65;
}

/* ---------------------------------------------------------
   Botón
   --------------------------------------------------------- */

.gallery-open {
  cursor: pointer;

  background: transparent;
}

/* ---------------------------------------------------------
   Experiencias independientes
   --------------------------------------------------------- */

.gallery-experience {
  background: white;
}

/* =========================================================
   VERSÍCULO
   ========================================================= */

.verse {
  min-height: 48vh;

  display: grid;
  place-items: center;

  align-content: center;

  padding-top: 60px;
  padding-bottom: 60px;

  text-align: center;
}

.verse-mark {
  color: var(--coral);

  font-family: var(--serif);
  font-size: 4.5rem;

  line-height: .6;
}

.verse blockquote {
  max-width: 780px;

  margin: 10px auto 20px;

  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 400;

  line-height: 1.22;
}

.verse-note {
  color: var(--muted);
}

/* =========================================================
   SIN FILTROS
   ========================================================= */

.sin-filtros {
  overflow: clip;

  background: var(--sf-cream);

  color: var(--sf-ink);
}

.sin-filtros,
.sin-filtros * {
  font-family: var(--fun);
}

/* ---------------------------------------------------------
   Introducción Sin Filtros
   --------------------------------------------------------- */

.sf-intro {
  display: flow-root;
}

/* Logo flotando en la esquina superior izquierda */

.sf-logo {
  float: left;

  width: min(34%, 320px);

  margin: 10px 55px 25px 0;

  position: relative;
}

.sf-logo img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
}

/* Texto */

.sf-copy {
  width: 100%;
}

.sf-copy h2 {
  margin-top: 0;
}

.sf-eyebrow {
  margin: 0 0 22px;

  color: var(--sf-magenta);

  font-family: var(--fun);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.sf-program-description p {
  color: #526269;
}

.sf-copy h2,
.sf-services h2 {
  font-family: var(--fun);
  font-weight: 500;

  letter-spacing: -.035em;
}

.sf-copy h2 em,
.sf-services h2 em {
  color: var(--sf-magenta);

  font-style: normal;
}

.sf-copy > p:last-child {
  max-width: 620px;

  color: #526269;
}

/* ---------------------------------------------------------
   Statement
   --------------------------------------------------------- */

.sf-statement {
  padding: 65px 6vw;

  background:
    radial-gradient(
      circle at 18% 35%,
      rgba(80, 185, 177, .35) 0 11%,
      transparent 11.4%
    ),
    radial-gradient(
      circle at 82% 64%,
      rgba(242, 103, 107, .3) 0 10%,
      transparent 10.4%
    ),
    var(--sf-turquoise);

  color: white;

  text-align: center;
}

.sf-statement p {
  margin: 0 auto 8px;

  font-family: var(--fun);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.sf-statement strong {
  display: block;

  margin-top: 26px;

  font-family: var(--fun);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;

  line-height: 1.05;
}

.sf-statement strong em {
  color: var(--sf-yellow);

  font-style: normal;
}

/* ---------------------------------------------------------
   Bloques editoriales Sin Filtros
   --------------------------------------------------------- */

.sf-block {
  display: grid;

  grid-template-columns: .72fr 1.28fr;

  gap: clamp(40px, 7vw, 80px);

  align-items: start;

  padding-top: 60px;
  padding-bottom: 60px;
}

.sf-block + .sf-block {
  border-top: 1px solid rgba(38, 58, 66, .12);
}

.sf-block-intro {
  position: sticky;
  top: 110px;
}

.sf-block-intro h2 {
  margin-bottom: 16px;

  font-family: var(--fun);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 500;

  letter-spacing: -.03em;
}

.sf-block-intro h2 em {
  color: var(--sf-magenta);

  font-style: normal;
}

.sf-block-intro p {
  max-width: 400px;

  margin: 0;

  color: #526269;
}

/* ---------------------------------------------------------
   Transición: Crea y vive → Bienestar + marketing
   --------------------------------------------------------- */

.sf-program-transition {
  position: relative;
  height: 245vh;
}

.sf-program-transition-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 590px;
  overflow: hidden;
}

.sf-program-transition-stage {
  position: relative;
  width: 100%;
  height: 100%;
}


/* ---------------------------------------------------------
   BLOQUES PRINCIPALES
   --------------------------------------------------------- */

.sf-program-transition .sf-block {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  align-content: center;
  will-change: opacity, transform;
}


/* ---------------------------------------------------------
   CREA Y VIVE
   --------------------------------------------------------- */

.sf-create {
  opacity: var(--sf-create-opacity, 1);

  transform:
    translateY(
      calc(
        var(--sf-create-progress, 0) * -24px
      )
    )
    scale(
      calc(
        1 -
        var(--sf-create-progress, 0) * .025
      )
    );
}

.sf-create .sf-block-intro {
  width: min(1250px, 80%);
  margin-left: 7vw;
}

/* ---------------------------------------------------------
   BIENESTAR + MARKETING
   --------------------------------------------------------- */

.sf-marketing {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sf-marketing .sf-block-intro {
  width: min(1250px, 80%);
  margin-left: 7vw;

  opacity: var(--sf-marketing-opacity, 0);

  transform:
    translateY(
      calc(
        (1 - var(--sf-marketing-opacity, 0)) * 24px
      )
    )
    scale(
      calc(
        .975 +
        var(--sf-marketing-opacity, 0) * .025
      )
    );

  will-change: opacity, transform;
}

/* ---------------------------------------------------------
   TARJETAS DE MARKETING
   Permanecen fijas a la derecha
   --------------------------------------------------------- */

.sf-marketing .workshop-grid {
  position: absolute;

  top: 50%;
  right: 11vw;

  width: min(560px, 46%);

  transform: translateY(-50%);

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  
  column-gap: 70px;
  row-gap: 18px;

  z-index: 3;
}

/* ---------------------------------------------------------
   TARJETAS DE BIENESTAR + MARKETING
   --------------------------------------------------------- */

.sf-marketing .workshop-grid {
  border: 0;
  background: transparent;
}

.sf-marketing .workshop {
  min-height: 175px;

  padding: 20px;

  border: 1px solid rgba(38, 58, 66, .10);
  border-radius: 18px;

  background: rgba(255, 255, 255, .62);

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

.sf-marketing .workshop h3 {
  font-family: var(--fun);
  font-weight: 500;
}

.sf-marketing .workshop:nth-child(2) {
  background: #ffe1d4;
}

.sf-marketing .workshop:nth-child(3) {
  background: #e5dbf7;
}

.sf-marketing .workshop:nth-child(4) {
  background: #fff1b8;
}

.sf-marketing .workshop:hover {
  transform: translateY(-3px);

  box-shadow:
    0 14px 28px rgba(38, 58, 66, .08);
}

/* ---------------------------------------------------------
   MODO ESTÁTICO
   --------------------------------------------------------- */

.sf-transition-static {
  height: auto;
}

.sf-transition-static .sf-program-transition-sticky {
  position: relative;
  height: auto;
  min-height: auto;
  overflow: visible;
}

.sf-transition-static .sf-program-transition-stage {
  display: flex;
  flex-direction: column;
}

.sf-transition-static .sf-block {
  position: relative;
  min-height: 0;
  transform: none;
  opacity: 1;
}

.sf-transition-static .sf-create .sf-block-intro,
.sf-transition-static .sf-marketing .sf-block-intro {
  opacity: 1;
  transform: none;
}

.sf-transition-static .sf-marketing .workshop-grid {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  transform: none;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media (max-width: 980px) {

  .sf-create .sf-block-intro,
  .sf-marketing .sf-block-intro {
    width: min(420px, 42%);
    margin-left: 5vw;
  }

  .sf-marketing .workshop-grid {
    right: 5vw;
    width: min(480px, 46%);
  }

}


@media (max-width: 640px) {

  .sf-program-transition {
    height: auto;
  }

  .sf-program-transition-sticky {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .sf-program-transition-stage {
    display: flex;
    flex-direction: column;
  }

  .sf-program-transition .sf-block {
    position: relative;
    min-height: 0;
    transform: none;
    opacity: 1;
  }

  .sf-create {
    order: 1;
  }

  .sf-marketing {
    order: 2;
  }

  .sf-create .sf-block-intro,
  .sf-marketing .sf-block-intro {
    width: 100%;
    margin-left: 0;
    opacity: 1;
    transform: none;
  }

  .sf-marketing .workshop-grid {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    transform: none;

    grid-template-columns: 1fr;
  }

}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .sf-program-transition {
    height: auto;
  }

  .sf-program-transition-sticky {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .sf-program-transition-stage {
    display: flex;
    flex-direction: column;
  }

  .sf-program-transition .sf-block {
    position: relative;
    min-height: 0;
    transform: none;
    opacity: 1;
  }

  .sf-create {
    order: 1;
  }

  .sf-marketing {
    order: 2;
  }

  .sf-create .sf-block-intro,
  .sf-marketing .sf-block-intro {
    width: 100%;
    margin-left: 0;
    opacity: 1;
    transform: none;
  }

  .sf-marketing .workshop-grid {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    transform: none;

    grid-template-columns: 1fr;
  }

}

/* =========================================================
   FORMACIÓN / TALLERES
   ========================================================= */

.workshop-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  border: 1px solid var(--line);

  background: var(--line);
}

.workshop {
  min-height: 170px;

  display: flex;
  flex-direction: column;

  padding: 20px;

  background: var(--cream);

  transition:
    background .25s ease,
    transform .25s ease;
}

.workshop:hover {
  background: white;
}

.workshop small {
  color: var(--magenta);

  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.workshop h3 {
  margin: auto 0 8px;

  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.workshop p {
  margin: 0;

  color: var(--muted);
  font-size: .9rem;
}

/* Esta composición se limita a Formación para no alterar las
   tarjetas que Sin Filtros comparte con la clase workshop. */
.formation .section-intro,
.audience .section-intro {
  margin-bottom: 38px;
}

.formation .workshop-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;

  border: 0;
  background: transparent;
  counter-reset: workshop;
}

.formation .workshop {
  position: relative;

  min-height: 158px;
  padding: 21px 22px 19px;

  overflow: hidden;
  border: 1px solid rgba(48, 48, 68, .10);
  border-radius: 18px;

  background: rgba(255, 253, 251, .78);
  box-shadow: 0 8px 20px rgba(48, 48, 68, .035);
  counter-increment: workshop;
}

.formation .workshop::before {
  content: "0" counter(workshop);

  position: absolute;
  top: 12px;
  right: 15px;

  color: rgba(199, 45, 145, .18);

  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1;
}

.formation .workshop:hover {
  background: white;
  transform: translateY(-3px);
}

.formation .workshop small {
  position: relative;
  z-index: 1;

  margin-bottom: auto;
}

.formation .workshop h3 {
  max-width: calc(100% - 22px);
  margin: 18px 0 7px;

  font-size: 1.28rem;
  line-height: 1.08;
}

.formation .workshop p {
  font-size: .84rem;
  line-height: 1.5;
}

/* =========================================================
   CONTACTO
   ========================================================= */

.audience-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;
}

.audience-card {
  min-height: 172px;

  display: flex;
  flex-direction: column;

  padding: 20px 21px 18px;

  border: 1px solid rgba(48, 48, 68, .10);
  border-radius: 17px;

  background: rgba(255, 253, 251, .82);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 13px 28px rgba(48, 48, 68, .07);
}

.audience-card span {
  color: var(--magenta);

  font-size: .72rem;
  font-weight: 800;
}

.audience-card h3 {
  margin: auto 0 6px;

  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.audience-card p {
  margin-bottom: 0;

  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.audience-card b {
  margin-top: 12px;

  color: var(--magenta);

  font-size: .78rem;
}

.contact-details {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:start;
  gap:18px 28px;
  max-width:980px;
  margin-top:26px;
  padding:16px 0 0;
  border-top:1px solid var(--line);
}

.contact-details-label {
  margin: 4px 0 0;

  color: var(--magenta);

  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact-person {
  position: relative;

  padding-left: 15px;
}

.contact-person::before {
  content: "";

  position: absolute;
  top: .58em;
  left: 0;

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: var(--magenta);
}

.contact-person strong,
.contact-person a {
  display: block;
}

.contact-person strong {
  margin-bottom: 2px;

  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.25;
}

.contact-person a {
  width: max-content;

  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.contact-person a:hover {
  color: var(--coral);
}

/* =========================================================
   CIERRE
   ========================================================= */

.closing {
  position: relative;

  min-height: 70vh;

  display: block;

  overflow: hidden;

  padding: 60px 6vw;
}


.closing-photo,
.closing-overlay {
  position: absolute;
  inset: 0;
}

.closing-photo {
  min-height: 0;

  border-radius: 0;

  background-image:
    url("assets/cierre.jpg");

  background-size: cover;
  background-position: center center;

  transform: scale(1.01);
}

.closing-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(25, 25, 38, .50),
      rgba(25, 25, 38, .15)
    ),
    linear-gradient(
      0deg,
      rgba(25, 25, 38, .20),
      transparent 55%
    );
}

.closing-content {
  position: relative;
  z-index: 2;

  width: min(580px, 100%);
  margin: -40px 0 0 -3vw;

  color: white;
}

.closing-quote span {
  white-space: normal;
}

.closing-quote {
  max-width: 540px;
  margin: 0 0 17px;

  color: white;

  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
}

.closing-quote em {
  color: var(--yellow);
  font-style: normal;
}

.closing-reference {
  margin: 0;
  color: white;
}

.closing-reference span {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  display: grid;

  grid-template-columns: 1.2fr 1fr 1fr;

  gap: 50px;

  padding: 65px 5vw 35px;

  background: #252535;

  color: rgba(255, 255, 255, .75);
}

.footer img {
  width: 130px;

  border-radius: 8px;

  background: white;
}

.footer strong {
  display: block;

  color: white;
}

.footer p {
  margin: 9px 0 0;
}

.footer-links {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 8px 20px;
}

.footer-links a:hover {
  color: white;
}

.footer > small {
  grid-column: 1 / -1;

  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* =========================================================
   ANIMACIONES — REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(26px);

  transition:
    opacity .8s ease,
    transform .8s ease;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.photo-lightbox {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: grid;
  place-items: center;

  padding: 40px 90px;

  background: rgba(15, 15, 24, .96);
}

.photo-lightbox-overlay {
  position: absolute;

  inset: 0;
}

.photo-lightbox-content {
  position: relative;

  z-index: 2;

  width: min(1200px, 92vw);
  max-height: 92vh;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
}

.photo-lightbox-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 90vw;
  max-height: 80vh;

  object-fit: contain;

  border-radius: 4px;

  box-shadow:
    0 20px 70px rgba(0, 0, 0, .35);
}

.photo-lightbox-info {
  width: 100%;

  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-top: 15px;

  color: white;
}

.photo-lightbox-info strong {
  font-family: var(--sans);

  font-size: .9rem;
}

.photo-lightbox-counter {
  color: rgba(255, 255, 255, .65);

  font-size: .75rem;
  font-weight: 700;
}

/* ---------------------------------------------------------
   Controles
   --------------------------------------------------------- */

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
  position: absolute;

  z-index: 3;

  border: 0;

  background: transparent;

  color: white;

  cursor: pointer;

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.photo-lightbox-close {
  top: -20px;
  right: -20px;

  width: 50px;
  height: 50px;

  font-size: 3rem;
  line-height: 1;
}

.photo-lightbox-prev,
.photo-lightbox-next {
  top: 50%;

  font-family: var(--serif);
  font-size: 5rem;

  line-height: 1;

  opacity: .75;
}

.photo-lightbox-prev {
  left: -75px;
}

.photo-lightbox-next {
  right: -75px;
}

.photo-lightbox-close:hover,
.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
  opacity: 1;
}

.photo-lightbox-prev:hover {
  transform: translate(-4px, -50%);
}

.photo-lightbox-next:hover {
  transform: translate(4px, -50%);
}

/* =========================================================
   REVEAL — ELEMENTOS DINÁMICOS
   ========================================================= */

.experience-gallery .reveal,
#sinFiltrosGallery .reveal {
  opacity: 0;

  transform: translateY(25px);
}

.experience-gallery .reveal.visible,
#sinFiltrosGallery .reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   HERO — CAPAS Y TRANSICIONES
   ========================================================= */

.hero-photo {
  transform: translate3d(0, 0, 0);
}

/* =========================================================
   HERO — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .hero-photo {
    transform: none !important;
  }

  .scroll-note span {
    animation: none;
  }

  .hero-control {
    transition: none;
  }

}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 980px) {

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    padding-top: 30px;
    padding-bottom: 85px;
  }

  /* Historia */

  .story,
  .sf-intro,
  .sf-block {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 480px;
  }

  .sf-block-intro {
    position: static;
  }

  /* Galería */

  .gallery-group-items,
  .sf-gallery .gallery-group-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-group-heading {
    align-items: start;
    flex-direction: column;
  }

  /* Sin Filtros */

  .sf-service-grid,
  .sf-marketing .workshop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Formación */

  .workshop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formation .workshop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contacto */

  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .formation .workshop {
    min-height: 150px;
  }

  /* Footer */

  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
  }

  /* Lightbox */

  .photo-lightbox {
    padding: 30px 60px;
  }

  .photo-lightbox-prev {
    left: -50px;
  }

  .photo-lightbox-next {
    right: -50px;
  }
}

/* =========================================================
   RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 640px) {

  :root {
    --header-h: 70px;
  }

  .site-header {
    padding: 0 5vw;
  }

  .brand img {
    width: auto;
    height: 58px;
  }

  /* General */

  .section {
    padding-left: 7vw;
    padding-right: 7vw;
    padding-top: 50px;
    padding-bottom: 70px;
  }

  /* Tipografía móvil */

  h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  h2 {
    font-size: clamp(1.65rem, 6.8vw, 2.35rem);
  }

  .section-intro p {
    font-size: .9rem;
  }

  .story-copy p {
    font-size: .9rem;
  }

  .identity-card p,
  .pillar p,
  .audience-card p,
  .workshop p {
    font-size: .82rem;
  }

  /* Hero */

  .hero {
    min-height: 92svh;

    padding: 100px 7vw 70px;
  }

  /* Historia */

  .story-image {
    min-height: 0;
  }

  .story-frame {
    width: min(100%, 460px);
    min-height: 0;
    padding: 12px;
  }

  .story-frame-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .story-control {
    width: 38px;
    height: 38px;
  }

  .story-control-prev {
    left: -19px;
  }

  .story-control-next {
    right: -19px;
  }

  /* Identidad */

  .identity {
    padding-top: 60px;
    padding-bottom: 65px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-card {
    min-height: 190px;

    padding: 24px;
  }

  /* Hacemos */

  .pillar-list {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: 180px;
    padding: 20px;
  }

  /* Versículo */

  .verse {
    min-height: 60vh;

    padding-top: 75px;
    padding-bottom: 75px;
  }

  .verse-mark {
    font-size: 6rem;
  }

  /* Sin Filtros */

  .sf-intro {
    gap: 40px;
  }

  .sf-logo img {
    width: 230px;
  }

  .sf-statement {
    padding: 80px 7vw;
  }

  .sf-block {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .sf-service-grid,
  .sf-marketing .workshop-grid {
    grid-template-columns: 1fr;
  }

  .sf-service:nth-child(2) {
    transform: none;
  }

  .sf-service:nth-child(2):hover {
    transform: translateY(-4px);
  }

  .sf-service {
    min-height: 205px;
  }

  .sf-gallery {
    padding-bottom: 70px;
  }

  /* Formación */

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .workshop {
    min-height: 200px;
  }

  .formation .section-intro,
  .audience .section-intro {
    margin-bottom: 31px;
  }

  .formation .workshop-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .formation .workshop {
    min-height: 154px;
    padding: 20px;
  }

  .sf-marketing .workshop {
    min-height: 155px;
    padding: 18px;
  }

  .sf-marketing .workshop h3 {
    font-size: 1.15rem;
  }

  /* Contacto */

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 168px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 15px;

    margin-top: 28px;
    padding-top: 20px;
  }

  /* Cierre */

  .closing {
    min-height: 80vh;

    padding: 48px 7vw;
  }

  .closing-photo {
    background-position: center center;
  }

  .closing-quote {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 1.12;
  }

    .scroll-note {
      right: 7vw;
      bottom: 25px;

      font-size: .58rem;
    }

    .hero-controls {
      right: 7vw;
      bottom: 64px;

      gap: 6px;
    }

    .hero-control {
      width: 40px;
      height: 40px;

      font-size: 1rem;
    }

  /* Galería */

  .gallery-group {
    padding: 20px;

    border-radius: 22px;
  }

  .gallery-group-items,
  .sf-gallery .gallery-group-items {
    grid-template-columns: 1fr;
  }

  .gallery-group-heading h3 {
    font-size: 2rem;
  }

  .experience-card-cover {
    height: 220px;
  }

  .experience-card-content {
    min-height: 215px;
    padding: 20px;
  }

  .experience-card-overlay h3 {
    font-size: 1.6rem;
  }

  /* Footer */

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-column: auto;
  }

  /* Lightbox */

  .photo-lightbox {
    padding: 20px;
  }

  .photo-lightbox-content {
    width: 100%;
    max-height: 90vh;
  }

  .photo-lightbox-image {
    max-width: 92vw;
    max-height: 78vh;
  }

  .photo-lightbox-info {
    padding: 0 10px;
  }

  .photo-lightbox-prev,
  .photo-lightbox-next {
    font-size: 3.5rem;
  }

  .photo-lightbox-prev {
    left: -5px;
  }

  .photo-lightbox-next {
    right: -5px;
  }

  .photo-lightbox-close {
    top: -10px;
    right: 0;
  }
}

/* =========================================================
   ACCESIBILIDAD — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.site-header,
.site-header .brand,
.site-header .desktop-nav a {
  color: #000000;
}

.site-header .brand img {
  height: 80px !important;
  width: auto !important;
  max-height: 80px;
}

/* ==========================================================
   LO QUE NOS MUEVE → LO QUE HACEMOS
   TRANSICIÓN POR SCROLL CON ESCENARIO CENTRADO Y SIMÉTRICO
========================================================== */

.mission-transition {
  position: relative;
  height: 320vh;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(248,220,230,.52) 0,
      rgba(255,253,251,0) 42%
    ),
    var(--cream);
}

.mission-transition-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 3.5vw, 48px);
}

/* ----------------------------------------------------------
   ESCENARIO PRINCIPAL DE 3 COLUMNAS (CENTRADO GLOBAL)
   Columna Izq (01 y 03) | Título Central | Columna Der (02 y 04)
---------------------------------------------------------- */

.mission-transition-stage {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.2vw, 44px);
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.transition-col {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 22px);
  flex: 1;
  max-width: 330px;
}

/* ==========================================================
   TÍTULO CENTRAL (HUELLA Y DIMENSIÓN EXACTA EN AMBOS ESTADOS)
========================================================== */

.mission-transition-title {
  position: relative;
  z-index: 5;
  flex: 1.15;
  max-width: 380px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  margin: 0;
}

.transition-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.transition-title-identity {
  opacity: var(--identity-opacity, 1);
  transform: translateY(calc((1 - var(--identity-opacity, 1)) * -14px));
}

.transition-title-pillars {
  opacity: var(--pillar-opacity, 0);
  transform: translateY(calc((1 - var(--pillar-opacity, 0)) * 14px));
}

.transition-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  line-height: 1.08;
}

.transition-title .eyebrow {
  margin-bottom: 8px;
}

.transition-title > p:last-child {
  max-width: 320px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ==========================================================
   TARJETAS (LIGERAMENTE AGRANDADAS Y CON ALTURA EXACTA)
========================================================== */

.transition-card {
  position: relative;
  width: 100%;
  height: 154px;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  z-index: 3;
}

.transition-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateY(calc(var(--card-flip, 0) * 180deg));
}

/* ==========================================================
   CARAS DE LAS TARJETAS
========================================================== */

.transition-card-face {
  position: absolute;
  inset: 0;
  padding: 15px 19px;
  border: 1px solid rgba(215,121,154,.34);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      #fffdfb 0%,
      var(--story-pink-soft) 100%
    );
  box-shadow:
    0 12px 28px rgba(215,121,154,.09);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.transition-card-face::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(215,121,154,.20);
  border-radius: 15px;
  pointer-events: none;
}

/* ==========================================================
   FRENTE — LO QUE NOS MUEVE
========================================================== */

.transition-card-identity {
  transform: rotateY(0deg);
}

.transition-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 5px;
  color: var(--story-pink-dark);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .15em;
}

.transition-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.transition-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.46;
}

.transition-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: var(--story-pink-dark);
  font-size: 9.5px;
  font-weight: 700;
}

.transition-values {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* ==========================================================
   PARTE POSTERIOR — LO QUE HACEMOS
========================================================== */

.transition-card-pillar {
  transform: rotateY(180deg);
}

.transition-number {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 5px;
  color: var(--story-pink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}

.transition-time {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--story-pink-soft);
  color: var(--story-pink-dark);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ==========================================================
   DECORACIÓN CENTRAL
========================================================== */

.mission-transition::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(231,189,88,.15);
  pointer-events: none;
}

.mission-transition::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--story-gold);
  font-size: 16px;
  opacity: .45;
  pointer-events: none;
}

/* ==========================================================
   TABLET (721px a 980px)
========================================================== */

@media (max-width: 980px) {

  .mission-transition-stage {
    gap: clamp(16px, 2.2vw, 24px);
    max-width: 920px;
  }

  .mission-transition-title {
    max-width: 320px;
    min-height: 165px;
  }

  .transition-col {
    max-width: 280px;
    gap: 16px;
  }

  .transition-card {
    height: 145px;
  }

  .transition-card-face {
    padding: 13px 15px;
  }

  .transition-card h3 {
    font-size: 16px;
  }

  .transition-card p {
    font-size: 11px;
  }

}

/* ==========================================================
   MÓVIL (< 720px)
========================================================== */

@media (max-width: 720px) {

  .mission-transition {
    height: 250vh;
  }

  .mission-transition-sticky {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 14px 20px;
    box-sizing: border-box;
  }

  .mission-transition-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .transition-col {
    display: contents;
  }

  .mission-transition-title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 6px;
    min-height: 95px;
  }

  .transition-card-1 { grid-column: 1; grid-row: 2; }
  .transition-card-2 { grid-column: 2; grid-row: 2; }
  .transition-card-3 { grid-column: 1; grid-row: 3; }
  .transition-card-4 { grid-column: 2; grid-row: 3; }

  .transition-title h2 {
    font-size: clamp(1.4rem, 5.2vw, 1.8rem);
  }

  .transition-title > p:last-child {
    font-size: 10px;
    margin-top: 5px;
    line-height: 1.35;
  }

  .transition-card {
    position: relative;
    width: 100%;
    height: 125px;
    margin: 0;
  }

  .transition-card-inner {
    height: 100%;
  }

  .transition-card-face {
    min-height: 125px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .transition-card h3 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .transition-card p,
  .transition-values {
    font-size: 9px;
    line-height: 1.3;
  }

  .transition-label,
  .transition-number {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .transition-card small {
    font-size: 8px;
    margin-top: 2px;
  }

  .mission-transition::before {
    width: 250px;
    height: 250px;
  }

}

/* ==========================================================
   REDUCIR MOVIMIENTO
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .mission-transition {
    height: auto;
  }

  .mission-transition-sticky {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 60px 20px;
    display: block;
  }

  .mission-transition-stage {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .transition-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
  }

  .transition-title {
    position: static;
    transform: none !important;
  }

  .transition-title-pillars {
    display: none;
  }

  .transition-card {
    position: relative;
    transform: none !important;
    width: 100%;
    margin-bottom: 16px;
  }

}

/* ==========================================================
   PANTALLA DE CARGA
   ========================================================== */

.loading-screen {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    url("assets/fondo-carga.png")
    center center / cover
    no-repeat;

  opacity: 1;
  visibility: visible;

  transition:
    opacity .8s ease,
    visibility .8s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 18px;

  transform: translateY(-2vh);
}

.loading-heart-wrap {
  position: relative;
  width: clamp(250px, 40vw, 600px);
  overflow: hidden;
}

.loading-heart {
  display: block;

  width: 100%;
  height: auto;

  clip-path: inset(
    100% 0 0 0
  );

  animation:
    loading-heart-fill
    3.4s
    cubic-bezier(.65, 0, .35, 1)
    forwards;
}

@keyframes loading-heart-fill {

  0% {
    clip-path: inset(
      100% 0 0 0
    );
  }

  100% {
    clip-path: inset(
      0 0 0 0
    );
  }

}

.loading-text {
  margin: 0;

  color: #3A2A33;

  font-family: var(--serif);

  font-size: .82rem;

  font-weight: 600;

  letter-spacing: .08em;
}

/* =========================================================
   AJUSTES NUEVOS — ESTRUCTURA ACTUAL DEL HOME
   ========================================================= */

/* ---------------------------------------------------------
   NUESTRA IDENTIDAD
   --------------------------------------------------------- */

.identity-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.identity-intro h2 {
  margin-bottom: 18px;
}

.identity-intro > p {
  max-width: 430px;
}

.identity-block p {
  color: #526269;
}

/* ---------------------------------------------------------
   NUESTRO IMPACTO
   --------------------------------------------------------- */

#impacto .section-intro {
  max-width: 850px;
}

#impacto .section-intro h2 {
  max-width: 720px;
}

#impacto .impact-categories {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 10px 18px;

  margin: 35px 0 45px;
}

#impacto .impact-group {
  display: contents;
}

#impacto .impact-categories p {
  margin: 0;

  color: #526269;

  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 760px) {

  #impacto .impact-categories {
    grid-template-columns: 1fr;

    gap: 0;

    margin: 30px 0 40px;
  }

  #impacto .impact-group {
    display: block;
  }

  #impacto .impact-group + .impact-group {
    margin-top: 28px;
  }

  #impacto .impact-categories p {
    margin: 0 0 7px;

    font-size: .88rem;
    line-height: 1.45;
  }

}

/* ---------------------------------------------------------
   GALERÍA PRINCIPAL DE IMPACTO
   --------------------------------------------------------- */

#experienceGallery {
  width: 100%;
}


/* ---------------------------------------------------------
   TÍTULOS DE GALERÍA
   --------------------------------------------------------- */

.gallery-group-heading h3 {
  text-wrap: balance;
}


/* ---------------------------------------------------------
   FOTOGRAFÍAS DE HISTORIA
   --------------------------------------------------------- */

.story-frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------------------------------------------------------
   RESPONSIVE — IMPACTO
   --------------------------------------------------------- */

@media (max-width: 980px) {

  #impacto .impact-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 640px) {

  #impacto .impact-categories {
    grid-template-columns: 1fr;

    gap: 8px;

    margin-top: 28px;
    margin-bottom: 35px;
  }

  #impacto .impact-categories p {
    font-size: .84rem;
  }

}

/* ==========================================================
   HISTORIA — MARCO ESPECÍFICO PARA MÓVIL
========================================================== */

.story-image-mobile {
  display: none;
}


/* ==========================================================
   MÓVIL
========================================================== */

@media (max-width: 640px) {

  .story-image-desktop {
    display: none;
  }

  .story-image-mobile {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 28px 0 30px;
    position: relative;
  }

  .story-image-mobile .story-frame {
    width: 100%;
    min-height: 0;
    padding: 12px;
  }

  .story-image-mobile .story-frame-photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

}

/* ==========================================================
   SIN FILTROS — LOGO ESPECÍFICO PARA MÓVIL
========================================================== */

.sf-logo-mobile {
  display: none;
}


@media (max-width: 640px) {

  .sf-logo-desktop {
    display: none;
  }

  .sf-logo-mobile {
    display: block;
    float: none;
    width: 230px;
    margin: 28px auto 32px;
  }

  .sf-logo-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }

}

@media(max-width:640px){

  .experience-card-cover{
    height:110px;
  }

  .experience-card-overlay h3{
    font-size:1.05rem;
  }

}

@media(max-width:640px){

  .gallery-group-items{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

}

@media(max-width:640px){

  #sinFiltrosGallery > .sin-filtros-group .gallery-group-items{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  #sinFiltrosGallery .experience-card-cover{
    height:110px;
  }

  #sinFiltrosGallery .experience-card-overlay h3{
    font-size:1.05rem;
  }

}

@media (max-width: 640px) {

  .section-intro .eyebrow {
    font-size: 1.6rem;
    letter-spacing: .12em;
  }

  .section-intro h2 {
    font-size: 1.3rem;
  }

}

@media (max-width: 640px) {

  .story-copy .eyebrow {
    font-size: 1.6rem;
    letter-spacing: .12em;
  }

  .story-copy h2 {
    font-size: 1.3rem;
  }

}

@media (max-width: 640px) {

  .gallery-group h3 {
    font-size: 1.15rem;
  }

}

@media (max-width: 640px) {

  /* CREA Y VIVE */
  .sf-create .sf-service-grid .sf-service {
    min-height: 0;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* BIENESTAR + MARKETING */
  .sf-marketing .workshop-grid .workshop {
    min-height: 0;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

}

@media (max-width: 640px) {

  .story-history blockquote {
    font-size: clamp(0.9rem, 3.8vw, 1.15rem);
    line-height: 1.3;
    font-weight: 400;
  }

}

@media (max-width: 640px) {

  .identity-block p {
    font-size: .9rem;
    line-height: 1.55;
  }

}

/* =========================================================
   NUEVA ATMÓSFERA — BLANCO + AZUL CIELO
   ========================================================= */

body {
  background: #ffffff;
}

/* Secciones principales */
section {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f3f9fd 100%
  );
}

/* Alternancia suave para generar sensación de cielo */
section:nth-of-type(even) {
  background: linear-gradient(
    180deg,
    #f8fcff 0%,
    #eaf5fb 100%
  );
}

/* Secciones que queremos mantener predominantemente blancas */
.hero,
.closing {
  background: initial;
}

.footer {
  background: #252535;
}

/* Bloques internos */
.identity,
.story,
.formation,
.audience {
  background: transparent;
}

.hero {
  background: linear-gradient(
    180deg,
    #acd9ef 0%,
    #cde9f6 45%,
    #eef8fc 72%,
    #ffffff 100%
  );
}

/* =========================================================
   NUESTRA IDENTIDAD — TARJETAS INTERACTIVAS
   ========================================================= */

.identity-grid {
  width: min(1050px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* Distribución:
   Misión       → 2 columnas
   Visión       → 2 columnas
   Propósito   → 2 columnas
   Estrategias → 3 columnas
   Valores      → 3 columnas
*/

.identity-block {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  overflow: hidden;

  border: 1px solid rgba(71, 126, 174, .14);
  border-radius: 20px;

  background: rgba(255, 255, 255, .82);

  box-shadow:
    0 8px 24px rgba(71, 126, 174, .06);

  transition:
    transform .35s cubic-bezier(.22, .61, .36, 1),
    box-shadow .35s ease,
    background .35s ease,
    border-color .35s ease;
}

/* Las primeras tres ocupan 2 columnas */
.identity-block:nth-child(1),
.identity-block:nth-child(2),
.identity-block:nth-child(3) {
  grid-column: span 2;
}

/* Las dos últimas ocupan 3 columnas */
.identity-block:nth-child(4),
.identity-block:nth-child(5) {
  grid-column: span 3;
}

/* Pequeño detalle decorativo */
.identity-block::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;

  background: rgba(191, 228, 246, .35);

  transition:
    transform .45s ease,
    background .35s ease;
}

/* Título */
.identity-block h3 {
  position: relative;
  z-index: 1;

  margin: 0 0 18px;

  color: var(--magenta);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
}

/* Texto — mismo estilo para las cinco tarjetas */
.identity-block p {
  position: relative;
  z-index: 1;

  margin: 0 0 12px;

  color: #526269 !important;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.6;
}

/* =========================================================
   ANIMACIÓN AL PASAR EL CURSOR
   ========================================================= */

.identity-block:hover {
  transform: translateY(-7px) rotate(-0.5deg);

  background: #ffffff;

  border-color: rgba(71, 126, 174, .25);

  box-shadow:
    0 18px 35px rgba(71, 126, 174, .13);
}

.identity-block:hover::before {
  transform: scale(1.35);
  background: rgba(199, 45, 145, .08);
}

/* Cada tarjeta reacciona ligeramente diferente */
.identity-block:nth-child(2):hover {
  transform: translateY(-7px) rotate(0.5deg);
}

.identity-block:nth-child(3):hover {
  transform: translateY(-7px) rotate(-0.35deg);
}

.identity-block:nth-child(4):hover {
  transform: translateY(-7px) rotate(0.4deg);
}

.identity-block:nth-child(5):hover {
  transform: translateY(-7px) rotate(-0.4deg);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .identity-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .identity-block:nth-child(1),
  .identity-block:nth-child(2),
  .identity-block:nth-child(3),
  .identity-block:nth-child(4),
  .identity-block:nth-child(5) {
    grid-column: span 1;
  }

}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 640px) {

  .identity-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .identity-block,
  .identity-block:nth-child(1),
  .identity-block:nth-child(2),
  .identity-block:nth-child(3),
  .identity-block:nth-child(4),
  .identity-block:nth-child(5) {
    grid-column: span 1;
    min-height: 0;
    padding: 19px 20px;
    border-radius: 16px;
  }

  /* Títulos más compactos */
  .identity-block h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
  }

  /* Texto más pequeño y cómodo */
  .identity-block p {
    margin-bottom: 9px;
    font-size: .82rem;
    line-height: 1.5;
  }

  /* Detalle decorativo más pequeño */
  .identity-block::before {
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
  }

  /* En móvil no necesitamos el efecto de inclinación */
  .identity-block:hover,
  .identity-block:nth-child(2):hover,
  .identity-block:nth-child(3):hover,
  .identity-block:nth-child(4):hover,
  .identity-block:nth-child(5):hover {
    transform: translateY(-2px);
  }

}

/* =========================================================
   TEXTOS PLANOS — JUSTIFICADOS
   ========================================================= */

.section-intro > p:last-child,
.story-copy > p:last-child,
.story-copy > p:nth-of-type(3),
.story-history p,
.identity-intro > p,
.identity-block p,
.pillar p,
.impact-categories p,
.gallery-group-heading > p:last-child,
.experience-card-content p,
.sf-intro > p:last-child,
.sf-statement p,
.sf-program-description p,
.sf-block-intro > p:last-child,
.sf-service p,
.workshop p,
.audience-card p,
.transition-card p,
.transition-values {
  text-align: justify;
  text-justify: inter-word;
}