/*
 * YOSEWYM CAPITAL
 * Presentación editorial bajo el video.
 * Diseño reversible e independiente.
 */

body.yp-home .yp-intro {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    max-width: 1440px !important;
    min-height: 590px;
    margin: 0 auto !important;
    padding: 75px 7% 75px 43% !important;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 75% 50%,
            #12211e 0%,
            #12211e 60%,
            #12211e 100%
        );
    color: #f3efe6;
}

body.yp-home .yp-intro .yp-photo {
    position: absolute !important;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 76%;
    height: 100%;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
}

body.yp-home .yp-intro .yp-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center 35%;
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.yp-home .yp-intro .yp-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(10, 18, 15, .08) 25%,
            rgba(10, 18, 15, .64) 57%,
            #12211e 94%
        ),
        linear-gradient(
            0deg,
            rgba(9, 16, 13, .62),
            transparent 38%,
            rgba(9, 16, 13, .12)
        );
}

body.yp-home .yp-intro .yp-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 730px;
    text-align: left !important;
    padding: 25px 0;
    animation: yoseEditorialIn .85s ease-out both;
}

body.yp-home .yp-intro .yp-copy .eyebrow {
    color: #bba477 !important;
    font-size: 11px !important;
    letter-spacing: .22em !important;
    text-transform: uppercase;
    margin-bottom: 22px !important;
}

body.yp-home .yp-intro .yp-copy h1 {
    position: relative;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(56px, 7.3vw, 112px) !important;
    font-weight: 400 !important;
    line-height: .96 !important;
    letter-spacing: -.065em !important;
    color: #f3efe6 !important;
    margin: 0 0 28px !important;
    text-wrap: balance;
    text-shadow: 0 8px 36px rgba(0,0,0,.24);
}

body.yp-home .yp-intro .yp-copy h2 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(27px, 3vw, 42px) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: -.025em !important;
    color: #bba477 !important;
    margin: 0 0 22px !important;
    white-space: pre-line;
}

body.yp-home .yp-intro .yp-copy > p:not(.eyebrow) {
    max-width: 490px;
    margin: 0 !important;
    color: #f3efe6 !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
}

@keyframes yoseEditorialIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    body.yp-home .yp-intro {
        min-height: 620px;
        align-items: flex-end !important;
        padding: 330px 7% 48px !important;
        justify-content: flex-start !important;
    }

    body.yp-home .yp-intro .yp-photo {
        width: 100%;
        height: 100%;
    }

    body.yp-home .yp-intro .yp-photo img {
        object-position: center 18%;
    }

    body.yp-home .yp-intro .yp-photo::after {
        background:
            linear-gradient(
                180deg,
                rgba(9,16,13,.04) 0%,
                rgba(9,16,13,.12) 28%,
                rgba(9,16,13,.76) 54%,
                #12211e 85%
            );
    }

    body.yp-home .yp-intro .yp-copy {
        max-width: 100%;
        padding: 0;
    }

    body.yp-home .yp-intro .yp-copy h1 {
        font-size: clamp(46px, 11vw, 72px) !important;
        line-height: 1 !important;
    }

    body.yp-home .yp-intro .yp-copy h2 {
        font-size: clamp(24px, 6vw, 34px) !important;
    }

    body.yp-home .yp-intro .yp-copy > p:not(.eyebrow) {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.yp-home .yp-intro .yp-copy {
        animation: none !important;
    }
}


/* YOSEWYM EDITORIAL REFINAMIENTO V2 */

@media (min-width: 761px) {

  body.yp-home .yp-intro {
    min-height: 570px !important;
    padding: 105px 6% 75px 44% !important;
    align-items: center !important;
  }

  body.yp-home .yp-intro .yp-photo {
    width: 82% !important;
  }

  body.yp-home .yp-intro .yp-photo img {
    object-position: 42% 34% !important;
  }

  body.yp-home .yp-intro .yp-photo::after {
    background:
      linear-gradient(
        90deg,
        rgba(10,18,15,0) 0%,
        rgba(10,18,15,.05) 25%,
        rgba(10,18,15,.35) 43%,
        rgba(10,18,15,.78) 65%,
        #12211e 94%
      ),
      linear-gradient(
        0deg,
        rgba(9,16,13,.38),
        transparent 38%,
        rgba(9,16,13,.12)
      ) !important;
  }

  body.yp-home .yp-intro .yp-copy {
    max-width: 680px !important;
    padding-top: 35px !important;
  }

  body.yp-home .yp-intro .yp-copy h1 {
    font-size: clamp(54px, 6vw, 88px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.055em !important;
    margin-bottom: 24px !important;
  }

  body.yp-home .yp-intro .yp-copy h2 {
    font-size: clamp(25px, 2.6vw, 36px) !important;
    line-height: 1.22 !important;
  }

  body.yp-home .yp-intro .yp-copy > p:not(.eyebrow) {
    font-size: 14px !important;
    max-width: 440px !important;
  }
}

@media (max-width: 760px) {

  body.yp-home .yp-intro {
    min-height: 610px !important;
    padding: 320px 7% 44px !important;
  }

  body.yp-home .yp-intro .yp-photo img {
    object-position: center 22% !important;
  }

  body.yp-home .yp-intro .yp-photo::after {
    background:
      linear-gradient(
        180deg,
        transparent 0%,
        rgba(10,18,15,.10) 25%,
        rgba(10,18,15,.50) 46%,
        rgba(10,18,15,.88) 67%,
        #12211e 90%
      ) !important;
  }

  body.yp-home .yp-intro .yp-copy h1 {
    font-size: clamp(42px, 10vw, 62px) !important;
    line-height: 1.05 !important;
  }

  body.yp-home .yp-intro .yp-copy h2 {
    font-size: clamp(23px, 5.5vw, 31px) !important;
  }
}

/* FIN YOSEWYM EDITORIAL REFINAMIENTO V2 */


/* YOSEWYM PORTADA COMPACTA V1 */

/* Fotografía integrada sin rectángulo lateral */
body.yp-home .yp-intro {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #12211e !important;
}

body.yp-home .yp-intro .yp-photo {
    width: 100% !important;
    right: 0 !important;
}

body.yp-home .yp-intro .yp-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.yp-home .yp-intro .yp-photo::after {
    background:
      linear-gradient(
        90deg,
        transparent 0%,
        rgba(16,27,24,.08) 27%,
        rgba(16,27,24,.48) 49%,
        rgba(16,27,24,.88) 72%,
        #12211e 100%
      ),
      linear-gradient(
        0deg,
        rgba(16,27,24,.28),
        transparent 45%
      ) !important;
}

/* Ocultar paneles únicamente en Inicio */
body.yp-home #yr-descubrir {
    display: none !important;
}

/* Adaptación móvil */
@media(max-width:760px) {
    body.yp-home .yp-intro .yp-photo::after {
        background:
          linear-gradient(
            180deg,
            transparent 0%,
            rgba(16,27,24,.12) 25%,
            rgba(16,27,24,.65) 52%,
            #12211e 88%
          ) !important;
    }
}


/* YOSEWYM EDITORIAL ENVOLVENTE V4 */

/* Composición editorial de ancho completo */
body.yp-home .yp-intro {
    position: relative !important;
    isolation: isolate;
    width: 100% !important;
    max-width: none !important;
    min-height: 620px !important;
    margin: 0 !important;
    padding: 125px 7% 100px 46% !important;
    overflow: hidden;
    background: #12211e !important;
    display: flex !important;
    align-items: center !important;
}

/* Fotografía original de Yose */
body.yp-home .yp-intro .yp-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    z-index: -1 !important;
    overflow: hidden;
}

body.yp-home .yp-intro .yp-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 42% 38% !important;
    filter: saturate(.83) contrast(1.05);
}

/* Fundido horizontal, vertical y atmosférico */
body.yp-home .yp-intro .yp-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        rgba(16,27,24,.02) 0%,
        rgba(16,27,24,.08) 24%,
        rgba(16,27,24,.42) 43%,
        rgba(16,27,24,.84) 66%,
        #12211e 100%
      ),
      linear-gradient(
        0deg,
        #12211e 0%,
        rgba(16,27,24,.55) 13%,
        transparent 40%,
        rgba(16,27,24,.15) 100%
      ) !important;
}

/* Tipografía integrada */
body.yp-home .yp-intro .yp-copy {
    position: relative !important;
    z-index: 2 !important;
    max-width: 680px !important;
    width: 100% !important;
    padding: 35px 0 0 !important;
    transform: none !important;
    animation: none !important;
}

body.yp-home .yp-intro .yp-copy h1 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(52px, 5.6vw, 84px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.055em !important;
    margin-bottom: 25px !important;
    text-shadow: 0 6px 30px rgba(0,0,0,.25);
}

body.yp-home .yp-intro .yp-copy h2 {
    font-size: clamp(25px, 2.7vw, 37px) !important;
    line-height: 1.22 !important;
}

body.yp-home .yp-intro .yp-copy > p:not(.eyebrow) {
    max-width: 470px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

/* Transición hacia la sección siguiente */
body.yp-home .yp-intro::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    right: 0;
    height: 115px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        #12211e
    );
}

/* Evitar separación visual con el bloque siguiente */
body.yp-home .yp-intro + section {
    border-top: 0 !important;
}

/* Adaptación para móviles */
@media (max-width: 760px) {
    body.yp-home .yp-intro {
        min-height: 660px !important;
        padding: 355px 7% 65px !important;
        align-items: flex-end !important;
    }

    body.yp-home .yp-intro .yp-photo img {
        object-position: center 22% !important;
    }

    body.yp-home .yp-intro .yp-photo::after {
        background:
          linear-gradient(
            180deg,
            rgba(16,27,24,.04) 0%,
            rgba(16,27,24,.12) 24%,
            rgba(16,27,24,.55) 44%,
            rgba(16,27,24,.88) 64%,
            #12211e 91%
          ) !important;
    }

    body.yp-home .yp-intro .yp-copy {
        padding: 0 !important;
    }

    body.yp-home .yp-intro .yp-copy h1 {
        font-size: clamp(43px, 10vw, 65px) !important;
        line-height: 1.06 !important;
    }

    body.yp-home .yp-intro .yp-copy h2 {
        font-size: clamp(23px, 5.5vw, 32px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.yp-home .yp-intro *,
    body.yp-home .yp-intro *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* YOSEWYM ENCUADRE EDITORIAL V5 */

/* Composición más amplia y equilibrada */
@media (min-width: 761px) {

  body.yp-home .yp-intro {
    min-height: 640px !important;
    padding: 105px 7% 90px 54% !important;
    align-items: center !important;
  }

  body.yp-home .yp-intro .yp-photo {
    inset: 0 auto 0 0 !important;
    width: 64% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #12211e !important;
  }

  body.yp-home .yp-intro .yp-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 22% center !important;
    transform: scale(.94) translateX(-3%) !important;
    transform-origin: left center !important;
  }

  body.yp-home .yp-intro .yp-photo::after {
    background:
      linear-gradient(
        90deg,
        transparent 0%,
        rgba(16,27,24,.05) 48%,
        rgba(16,27,24,.65) 76%,
        #12211e 100%
      ),
      linear-gradient(
        0deg,
        #12211e 0%,
        transparent 35%
      ) !important;
  }

  body.yp-home .yp-intro .yp-copy {
    max-width: 690px !important;
    padding: 0 !important;
  }

  body.yp-home .yp-intro .yp-copy h1 {
    font-size: clamp(48px, 4.8vw, 76px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
  }
}

/* En móvil, conservar más espacio alrededor del rostro */
@media (max-width: 760px) {

  body.yp-home .yp-intro {
    min-height: 690px !important;
    padding: 390px 7% 65px !important;
  }

  body.yp-home .yp-intro .yp-photo {
    width: 100% !important;
    height: 100% !important;
  }

  body.yp-home .yp-intro .yp-photo img {
    object-fit: contain !important;
    object-position: center top !important;
    transform: scale(.90) !important;
    transform-origin: center top !important;
  }

  body.yp-home .yp-intro .yp-copy h1 {
    font-size: clamp(40px, 9vw, 58px) !important;
  }
}


/* YOSEWYM REFINAMIENTO EDITORIAL V6 */

@media (min-width: 761px) {

  /* Mantener la escala y mejorar la distribución */
  body.yp-home .yp-intro {
    min-height: 640px !important;
    padding: 105px 6% 90px 49% !important;
    background: #12211e !important;
  }

  /* Extender el lienzo fotográfico */
  body.yp-home .yp-intro .yp-photo {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 72% !important;
    height: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    background: #12211e !important;
  }

  /* Conservar el tamaño original de Yose */
  body.yp-home .yp-intro .yp-photo img {
    width: 88.8889% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 22% center !important;
    transform: scale(.94) translateX(-3%) !important;
    transform-origin: left center !important;
  }

  /* Fundido gradual hacia el fondo */
  body.yp-home .yp-intro .yp-photo::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
      linear-gradient(
        90deg,
        rgba(16,27,24,0) 0%,
        rgba(16,27,24,.02) 35%,
        rgba(16,27,24,.25) 55%,
        rgba(16,27,24,.72) 78%,
        #12211e 100%
      ),
      linear-gradient(
        0deg,
        #12211e 0%,
        rgba(16,27,24,.55) 12%,
        transparent 38%
      ) !important;
  }

  /* Acercar el texto sin invadir el rostro */
  body.yp-home .yp-intro .yp-copy {
    max-width: 720px !important;
    width: 100% !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.yp-home .yp-intro .yp-copy h1 {
    font-size: clamp(48px, 4.7vw, 76px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
  }
}

/* En móvil conservar el encuadre V5 */
@media (max-width: 760px) {
  body.yp-home .yp-intro .yp-photo img {
    object-fit: contain !important;
    object-position: center top !important;
    transform: scale(.90) !important;
    transform-origin: center top !important;
  }
}


/* YOSEWYM EDITORIAL V7 */

@media (min-width: 761px) {

  body.yp-home .yp-intro {
    padding-left: 46% !important;
    padding-right: 6% !important;
    background: #12211e !important;
  }

  body.yp-home .yp-intro .yp-photo {
    width: 76% !important;
    background: transparent !important;
    overflow: visible !important;
  }

  body.yp-home .yp-intro .yp-photo img {
    width: 84.21% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 22% center !important;
    transform: scale(.94) translateX(-3%) !important;
    transform-origin: left center !important;

    -webkit-mask-image:
      linear-gradient(
        90deg,
        #111715 0%,
        #111715 49%,
        rgba(0,0,0,.8) 62%,
        rgba(0,0,0,.3) 79%,
        transparent 100%
      ),
      linear-gradient(
        180deg,
        #111715 0%,
        #111715 72%,
        transparent 100%
      );

    mask-image:
      linear-gradient(
        90deg,
        #111715 0%,
        #111715 49%,
        rgba(0,0,0,.8) 62%,
        rgba(0,0,0,.3) 79%,
        transparent 100%
      ),
      linear-gradient(
        180deg,
        #111715 0%,
        #111715 72%,
        transparent 100%
      );

    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  body.yp-home .yp-intro .yp-photo::after {
    display: none !important;
  }

  body.yp-home .yp-intro .yp-copy {
    max-width: 740px !important;
    position: relative !important;
    z-index: 3 !important;
  }
}


/* YOSEWYM PORTADA LIMPIA V8 */

/* Mayor integración fotográfica, sin cambiar el tamaño de Yose */
@media (min-width: 761px) {

  body.yp-home .yp-intro .yp-photo {
    width: 76% !important;
    overflow: visible !important;
    background: transparent !important;
  }

  body.yp-home .yp-intro .yp-photo img {
    -webkit-mask-image:
      linear-gradient(
        90deg,
        #111715 0%,
        #111715 22%,
        rgba(0,0,0,.94) 38%,
        rgba(0,0,0,.65) 55%,
        rgba(0,0,0,.22) 75%,
        transparent 100%
      ),
      linear-gradient(
        180deg,
        #111715 0%,
        #111715 58%,
        rgba(0,0,0,.75) 73%,
        transparent 100%
      ) !important;

    mask-image:
      linear-gradient(
        90deg,
        #111715 0%,
        #111715 22%,
        rgba(0,0,0,.94) 38%,
        rgba(0,0,0,.65) 55%,
        rgba(0,0,0,.22) 75%,
        transparent 100%
      ),
      linear-gradient(
        180deg,
        #111715 0%,
        #111715 58%,
        rgba(0,0,0,.75) 73%,
        transparent 100%
      ) !important;

    -webkit-mask-composite: source-in !important;
    mask-composite: intersect !important;
  }
}

/* Mantener la fotografía completa en móvil */
@media (max-width: 760px) {
  body.yp-home .yp-intro .yp-photo img {
    -webkit-mask-image: linear-gradient(
      180deg,
      #111715 0%,
      #111715 38%,
      rgba(0,0,0,.85) 55%,
      transparent 82%
    ) !important;

    mask-image: linear-gradient(
      180deg,
      #111715 0%,
      #111715 38%,
      rgba(0,0,0,.85) 55%,
      transparent 82%
    ) !important;
  }
}

/* Retirar los paneles desplegables de Inicio */
body.yp-home #yr-descubrir {
  display: none !important;
}

/* Retirar exclusivamente de Inicio la sección de compartir */
body.yp-home .yc-share-section,
body.yp-home .share-section,
body.yp-home #compartir,
body.yp-home #yc-share,
body.yp-home #ydc-share {
  display: none !important;
}

/* Retirar el pie de página exclusivamente de Inicio */
body.yp-home footer,
body.yp-home .footer,
body.yp-home #footer {
  display: none !important;
}
