/* ─────────────────────────────────────────────────────────────────────────
 * Portfolio personalizado — la página que abre la pareja.
 *
 * Editorial y con mucho aire: las imágenes mandan, el texto acompaña. Todo
 * cuelga de .wpf para no chocar con el tema, y con reset propio porque Oshine
 * mete de todo en h1/h2/p.
 * ───────────────────────────────────────────────────────────────────────── */

.wpf {
    --pf-tinta:   #14181d;
    --pf-suave:   #6a7480;
    --pf-fondo:   #fbfaf8;   /* blanco cálido, no clínico */
    --pf-linea:   #e7e3dd;
    --pf-marca:   var(--wws-primary, #557291);
    --pf-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --pf-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    background: var(--pf-fondo);
    color: var(--pf-tinta);
    font-family: var(--pf-sans);
    font-size: 17px;
    line-height: 1.7;
    /* Se sale del ancho del tema: esto va a sangre */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
}
.wpf * { box-sizing: border-box; }
.wpf h1, .wpf h2, .wpf h3, .wpf p, .wpf ol, .wpf li, .wpf blockquote, .wpf figure {
    margin: 0; padding: 0; border: 0; text-transform: none; letter-spacing: normal;
}
.wpf ol { list-style: none; }

/* ── Apertura ───────────────────────────────────────────────────────────── */
.wpf-hero {
    position: relative;
    min-height: 92vh;
    min-height: 92svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1b1f24 center/cover no-repeat;
    padding: 60px 24px;
}
.wpf-hero-vel {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,15,18,.45) 0%, rgba(12,15,18,.35) 45%, rgba(12,15,18,.72) 100%);
}
.wpf-hero-txt { position: relative; color: #fff; max-width: 900px; }
.wpf-hero-para {
    display: block;
    font-size: 13px;
    letter-spacing: .32em;
    text-transform: uppercase;
    opacity: .82;
    margin-bottom: 18px;
}
.wpf-hero h1 {
    font-family: var(--pf-serif);
    font-weight: 300;
    font-size: clamp(44px, 9vw, 104px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.wpf-hero-meta {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .9;
}
.wpf-scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    width: 1px; height: 52px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.85));
    animation: wpf-caer 2.4s ease-in-out infinite;
}
@keyframes wpf-caer {
    0%, 100% { opacity: 0; transform: translateY(-10px); }
    50%      { opacity: 1; transform: translateY(0); }
}

/* ── Bloques de texto ───────────────────────────────────────────────────── */
.wpf-carta {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(70px, 12vw, 130px) 26px;
    text-align: center;
}
.wpf-carta h2 {
    font-family: var(--pf-serif);
    font-weight: 300;
    font-size: clamp(28px, 4.4vw, 44px);
    line-height: 1.2;
    margin-bottom: 26px;
}
.wpf-carta p {
    font-size: clamp(17px, 2.1vw, 21px);
    line-height: 1.85;
    color: #2c333b;
}
.wpf-firma {
    display: block;
    margin-top: 30px;
    font-family: var(--pf-serif);
    font-size: 21px;
    font-style: italic;
    color: var(--pf-marca);
}

/* ── Lo que imagino para su día ─────────────────────────────────────────── */
.wpf-ideas {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 26px clamp(70px, 12vw, 120px);
}
.wpf-ideas h2 {
    font-family: var(--pf-serif);
    font-weight: 300;
    font-size: clamp(26px, 4vw, 40px);
    text-align: center;
    margin-bottom: 44px;
}
.wpf-ideas ol { display: grid; gap: 2px; }
.wpf-ideas li {
    display: flex;
    gap: clamp(18px, 3vw, 34px);
    align-items: baseline;
    padding: 26px 0;
    border-top: 1px solid var(--pf-linea);
}
.wpf-ideas li:last-child { border-bottom: 1px solid var(--pf-linea); }
.wpf-ideas li span {
    flex: 0 0 auto;
    font-family: var(--pf-serif);
    font-size: clamp(24px, 3.4vw, 34px);
    color: var(--pf-marca);
    opacity: .55;
}
.wpf-ideas li p { font-size: clamp(16px, 2vw, 19px); color: #2c333b; }

/* ── Piezas ─────────────────────────────────────────────────────────────── */
.wpf-pieza { padding: 0 0 clamp(60px, 10vw, 110px); }
.wpf-pieza-txt {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 26px 0;
    text-align: center;
}
.wpf-pieza-txt h3 {
    font-family: var(--pf-serif);
    font-weight: 400;
    font-size: clamp(22px, 3.2vw, 32px);
    line-height: 1.25;
}
.wpf-pieza-meta {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pf-suave);
}
.wpf-pieza-txt p {
    margin-top: 16px;
    font-size: clamp(16px, 2vw, 19px);
    color: #2c333b;
}

/* Vídeo: portada + play. El reproductor no se carga hasta que lo piden */
.wpf-video {
    position: relative;
    width: min(1240px, 94vw);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #10141a;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}
.wpf-video-img {
    position: absolute; inset: 0;
    background: #10141a center/cover no-repeat;
    transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .5s;
}
.wpf-video:hover .wpf-video-img { transform: scale(1.03); filter: brightness(.85); }
.wpf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wpf-play {
    position: absolute; inset: 0; margin: auto;
    width: 88px; height: 88px;
    display: flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #14181d;
    cursor: pointer;
    transition: transform .25s, background .25s;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.wpf-video:hover .wpf-play { transform: scale(1.08); background: #fff; }
.wpf-play svg { width: 30px; height: 30px; fill: currentColor; }

/* Fotos */
.wpf-fotos {
    width: min(1240px, 94vw);
    margin: 0 auto;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}
.wpf-fotos-1 { grid-template-columns: 1fr; }
.wpf-fotos-2 { grid-template-columns: repeat(2, 1fr); }
.wpf-fotos img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}
.wpf-fotos-1 img { aspect-ratio: 3 / 2; }

/* ── Frase de otra pareja ───────────────────────────────────────────────── */
.wpf-quote {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(50px, 9vw, 100px) 26px;
    text-align: center;
    border-top: 1px solid var(--pf-linea);
    border-bottom: 1px solid var(--pf-linea);
}
.wpf-quote blockquote {
    font-family: var(--pf-serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.35;
}
.wpf-quote cite {
    display: block;
    margin-top: 22px;
    font-style: normal;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pf-suave);
}

/* ── Cierre ─────────────────────────────────────────────────────────────── */
.wpf-cierre {
    text-align: center;
    padding: clamp(70px, 12vw, 130px) 26px clamp(50px, 8vw, 90px);
}
.wpf-cierre h2 {
    font-family: var(--pf-serif);
    font-weight: 300;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.2;
    margin-bottom: 34px;
}
.wpf-wa {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 34px;
    background: #25d366;
    color: #0b2e18;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 10px 30px rgba(37,211,102,.28);
}
.wpf-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(37,211,102,.36); color: #0b2e18; }
.wpf-wa svg { width: 22px; height: 22px; fill: currentColor; }
.wpf-cierre-nota { margin-top: 16px; font-size: 14px; color: var(--pf-suave); }
.wpf-marca {
    display: block;
    margin-top: clamp(50px, 8vw, 80px);
    font-family: var(--pf-serif);
    font-size: 15px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--pf-suave);
}

/* ── Enlace caducado ────────────────────────────────────────────────────── */
.wpf-404 { padding: 120px 26px; text-align: center; }
.wpf-404 h1 { font-family: var(--pf-serif); font-weight: 300; font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; }
.wpf-404 p  { color: var(--pf-suave); }

/* ── Aparición al hacer scroll ──────────────────────────────────────────── */
.wpf-aparece { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.wpf-aparece.esta-dentro { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .wpf-aparece { opacity: 1; transform: none; transition: none; }
    .wpf-scroll  { animation: none; }
}

/* ── Móvil ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .wpf { font-size: 16px; }
    .wpf-hero { min-height: 88vh; min-height: 88svh; }
    .wpf-video, .wpf-fotos { width: 100vw; border-radius: 0; }
    .wpf-fotos { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .wpf-fotos-1 { grid-template-columns: 1fr; }
    .wpf-fotos img { aspect-ratio: 1; }
    .wpf-fotos-1 img { aspect-ratio: 3 / 2; }
    .wpf-play { width: 66px; height: 66px; }
    .wpf-play svg { width: 24px; height: 24px; }
    .wpf-ideas li { flex-direction: row; gap: 16px; padding: 20px 0; }
    .wpf-wa { width: 100%; justify-content: center; }
}

/* Sin ninguna foto aprovechable, la apertura no puede quedar en negro plano */
.wpf-hero.sin-foto {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(160,170,202,.35), transparent 60%),
        radial-gradient(ellipse at 75% 75%, rgba(85,114,145,.45), transparent 55%),
        linear-gradient(160deg, #232a33 0%, #171b21 100%);
}
.wpf-hero.sin-foto .wpf-hero-vel { background: linear-gradient(180deg, rgba(12,15,18,.15), rgba(12,15,18,.45)); }

/* ── Red de seguridad responsive · 2026-08-22 ──────────────────────────── */
.wpf{ overflow-wrap:break-word; }
.wpf img, .wpf video, .wpf iframe{ max-width:100%; height:auto; }
