:root {
    --ink: #3a1226;
    --ink-soft: #6b2a4a;
    --pink: #e91e63;
    --berry: #c2185b;
    --purple: #8e24aa;
    --blue: #1d6bff;
    --gradient: linear-gradient(135deg, #e91e63, #8e24aa);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background-color: #f9cddd;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(150, 40, 90, .16) 1px, transparent 1.4px),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(-45deg, rgba(180, 60, 110, .06) 0 1px, transparent 1px 7px),
        radial-gradient(1200px 600px at 15% -10%, #fff1f6 0%, transparent 60%),
        radial-gradient(900px 600px at 100% 30%, #f3a9c6 0%, transparent 65%);
    background-size: 14px 14px, auto, auto, auto, auto;
    background-attachment: fixed;
}

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

.layout-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 56px 24px 64px;
}

.sidebar {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

@media (max-width: 1300px) {
    .sidebar { display: none; }
}

.container {
    flex: 1;
    min-width: 0;
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

/* Encabezado */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    max-width: 760px;
}

.badge-18 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(150, 40, 90, .25);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a1f55;
}

.header h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -.02em;
}

.header h1 em { font-weight: 600; color: var(--berry); }

.header p {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 520px;
}

/* Botón principal */
.video-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.btn-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    padding: 22px 32px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(194, 24, 91, .45);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s;
}

.btn-gradient:hover { transform: translateY(-4px) scale(1.03); filter: brightness(1.08); }

.play-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--berry);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-icon svg { width: 18px; height: 18px; margin-left: 2px; }
.instruction { font-size: 14px; color: #8a3a62; }

/* Galería */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 18px 40px rgba(120, 20, 70, .22);
    opacity: 0;
    transform: translateY(28px) scale(.97);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .8s;
}

.card.visible { opacity: 1; transform: none; }
.card.visible:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 30px 60px rgba(120, 20, 70, .35); }

.card .ph {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.card:hover .ph { transform: scale(1.07); }

/* Fallback de color mientras no pongas tus fotos: fotos/1.jpg ... fotos/6.jpg */
.ph-1 { background-image: url('fotos/1.jpg'), linear-gradient(160deg, #ffc1d9, #e91e63); }
.ph-2 { background-image: url('fotos/2.jpg'), linear-gradient(160deg, #f8bbd0, #8e24aa); }
.ph-3 { background-image: url('fotos/3.jpg'), linear-gradient(160deg, #ffccbc, #d81b60); }
.ph-4 { background-image: url('fotos/4.jpg'), linear-gradient(160deg, #f3c4e8, #ad1457); }
.ph-5 { background-image: url('fotos/5.jpg'), linear-gradient(160deg, #ffd1e0, #c2185b); }
.ph-6 { background-image: url('fotos/6.jpg'), linear-gradient(160deg, #e1bee7, #ec407a); }
.ph-7 { background-image: url('fotos/7.jpg'), linear-gradient(160deg, #f48fb1, #ad1457 60%, #6a1b9a); }

.card::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
}

.card:hover::after { animation: sheen .9s ease; }
@keyframes sheen { to { transform: translateX(260%) skewX(-18deg); } }

/* Foto 7 difuminada */
.card-locked .ph { inset: -20px; filter: blur(18px) saturate(1.1); }
.card-locked:hover .ph { transform: none; }

.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
}

.lock-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floaty 4s ease-in-out infinite;
}

.lock-icon svg { width: 26px; height: 26px; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

.btn-blue {
    display: inline-block;
    padding: 16px 26px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    animation: pulse 2s ease-in-out infinite;
    transition: transform .3s;
}

.btn-blue:hover { transform: scale(1.06); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(29, 107, 255, .45); }
    50% { box-shadow: 0 14px 40px rgba(29, 107, 255, .7); }
}

/* Texto */
.content-text {
    width: 100%;
    max-width: 650px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(150, 40, 90, .18);
    border-radius: 24px;
    padding: 32px 36px;
}

.content-text h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.content-text p { font-size: 17px; line-height: 1.65; color: #5a2540; }

/* Publicidad */
.ad-rectangle, .ad-footer-stack, .ad-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

/* Modal */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(58, 18, 38, .55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade .35s ease both;
}

.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    overflow: hidden;
    background-color: #f9cddd;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(150, 40, 90, .16) 1px, transparent 1.4px),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 9px),
        radial-gradient(500px 300px at 20% 0%, #fff1f6 0%, transparent 70%);
    background-size: 14px 14px, auto, auto;
    box-shadow: 0 40px 90px rgba(58, 18, 38, .55);
    border: 1px solid rgba(255, 255, 255, .7);
    animation: pop .6s cubic-bezier(.2, .9, .25, 1.1) .1s both;
}

@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }

.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close svg { width: 18px; height: 18px; }

.modal-img {
    height: 260px;
    background-image: url('fotos/modal.jpg'), linear-gradient(160deg, #ffb3cf, #d81b60 60%, #7b1fa2);
    background-size: cover;
    background-position: center;
}

.modal-body {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.modal-body h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.05;
}

.modal-body h2 em { font-weight: 600; color: var(--berry); }
.modal-body p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.modal-body .btn-gradient { font-size: 16px; padding: 18px 24px; }

.modal-skip {
    min-height: 44px;
    padding: 0 16px;
    border: none;
    background: none;
    color: #8a3a62;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    *, *::after { animation: none !important; transition: none !important; }
    .card { opacity: 1; transform: none; }
}
