* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

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

:root {
    --grad-start: #FFF5F5;
    --grad-end: #F2FBFF;
    --brand: #d6455d; /* rojo festivo */
    --brand-2: #2cbfae; /* verde azulado festivo */
    --text-1: #1f2430;
    --text-2: #4a5568;
    --card: #ffffff;
    --muted: #f6f8fb;
    --ring: #cfe1ff;
    --banner-bg: #fff0f2;
    --banner-text: #1f2430;
    --banner-accent: #d6455d;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Prevent FOUC - Hide body until translation is ready */
body.no-translate {
    visibility: hidden;
    opacity: 0;
}

body {
    padding-top: 150px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(1200px 600px at 20% 10%, #fff8f8, transparent),
    radial-gradient(1000px 500px at 90% 10%, #f5fffd, transparent),
    linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: var(--text-1);
    scroll-behavior: smooth;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    visibility: visible;
    opacity: 1;
}

.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* Sticky Banner */
.sticky-banner {
    position: relative;
    top: 0;
    width: 100%;
    background-color: var(--banner-bg);
    color: var(--banner-text);
    text-align: center;
    padding: 12px 20px;
    z-index: 100;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 2px solid var(--banner-accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.sticky-banner .price {
    color: var(--brand);
}

.sticky-banner.hidden {
    display: none;
}

/* Topbar + nav responsive */
.topbar {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    transition: top 0.3s ease;
}

.topbar__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.1rem
}

.logo-icon {
    font-size: 1.4rem
}

.logo-text {
    letter-spacing: .3px
}

.nav {
    display: flex;
    flex: 1;
    margin: 0 56px;
    gap: 16px;
    align-items: center
}

.nav a {
    color: var(--text-1);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: opacity .2s
}

.nav a:hover {
    opacity: .8
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer
}

.nav-drawer {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    background: #fff
}

.nav-drawer a {
    text-decoration: none;
    color: var(--text-1);
    font-weight: 800
}

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 0px 0
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 12px 16px;
    line-height: 1.2;
    color: var(--text-2);
    text-decoration: underline;
    font-size: .95rem;
    transition: opacity .2s;
    margin: 0 8px;
}

.footer-nav-link:focus-visible,
.nav a:focus-visible,
.btn:focus-visible {
    outline: 3px solid #1A73E8;
    outline-offset: 3px;
    border-radius: 6px;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.btn--small {
    font-size: .9rem;
    background: var(--muted)
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 30px rgba(214, 69, 93, .25)
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(214, 69, 93, .35)
}

.btn--ghost {
    background: #fff;
    color: var(--text-1);
    border: 1px solid #e8eaf3
}

.btn--ghost:hover {
    border-color: #d0d4e0
}

.btn--block {
    display: block;
    text-align: center;
    width: 100%
}

/* Hero */
.hero {
    max-width: 1100px;
    margin: 28px auto 16px;
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 26px;
    align-items: center;
    padding: 0 18px
}

.hero__content h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 10px;
    margin-top: 30px;
    background: linear-gradient(135deg, var(--text-1), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.lead {
    color: var(--text-2);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 10px
}

.trust {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-2);
    margin: 10px 0 16px;
    font-size: .95rem
}

.trust li {
    background: rgba(255, 255, 255, .7);
    padding: 4px 10px;
    border-radius: 999px
}

.hero__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.hero__art {
    position: relative;
    height: 280px
}

.bubble {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite
}

.bubble--1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, #ffd6df, #fff);
    left: 10%;
    top: 20%;
    animation-delay: 0s
}

.bubble--2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 70% 30%, #d6fff5, #fff);
    right: 5%;
    top: 0%;
    animation-delay: 2s
}

.bubble--3 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 50% 50%, #ffe6c9, #fff);
    right: 18%;
    bottom: 10%;
    animation-delay: 4s
}

@keyframes float {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-10px)
    }
}

.card-demo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 260px;
    height: 200px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
    display: grid;
    place-items: center;
    animation: cardFloat 4s ease-in-out infinite
}

.floating-example-img {
    width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    padding: 4px;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg)
    }
    50% {
        transform: translateY(-6px) rotate(1deg)
    }
}

.card-demo__parents {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 8px
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    transition: transform .2s
}

.avatar:hover {
    transform: scale(1.1)
}

.avatar.male {
    background: #e3f7ff
}

.avatar.female {
    background: #ffe6f0
}

.avatar.baby {
    background: #fff2f8;
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 68px;
    height: 68px;
    font-size: 30px;
    border: 2px dashed #ffd2e6;
    animation: babyPulse 2s ease-in-out infinite
}

@keyframes babyPulse {
    0%, 100% {
        transform: scale(1)
    }
    50% {
        transform: scale(1.05)
    }
}

.card-demo__plus {
    position: absolute;
    left: 14px;
    bottom: 16px;
    font-size: 18px;
    color: #ff5f9b;
    animation: heartBeat 1.5s ease-in-out infinite
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1)
    }
    25% {
        transform: scale(1.1)
    }
    50% {
        transform: scale(1)
    }
}

/* Sections */
.section-title {
    font-size: clamp(1.3rem, 2.1vw, 1.6rem);
    margin-bottom: 6px;
    text-align: center
}

.section-subtitle {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 16px
}

/* How */
.how {
    max-width: 1100px;
    margin: 20px auto 8px;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.how h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

.steps {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px
}

.step {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08)
}

.step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 8px
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 4px
}

.step p {
    color: var(--text-2);
    font-size: .95rem
}

.note {
    text-align: center;
    color: #3f4a5a;
    margin-top: 12px;
    background: rgba(255, 255, 255, .5);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-block
}

/* Backgrounds carousel */
.backgrounds {
    max-width: 1100px;
    margin: 20px auto 8px;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.backgrounds h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem);
}

.bg-carousel {
    position: relative;
    margin-top: 10px;
}

.bg-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 42px;
}

.bg-item {
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}

.bg-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.bg-item.selected {
    border-color: var(--brand);
    transform: scale(1.075);
}

.bg-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 800;
}

.bg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.bg-nav--prev {
    left: 2px;
}

.bg-nav--next {
    right: 2px;
}

/* Upload */
.upload-section {
    max-width: 1100px;
    margin: 14px auto;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.upload-grid {
    display: grid;
    gap: 16px;
    align-items: stretch;
    margin-top: 10px
}

.image-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.image-upload {
    border: 2.5px dashed #e5e7f2;
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    background: var(--muted);
    cursor: pointer;
    transition: all .25s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    outline: none;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.image-upload:hover, .image-upload:focus {
    border-color: var(--brand);
    background: #fff7f7;
    box-shadow: 0 0 0 4px var(--ring)
}

.image-upload.dragover {
    border-color: #53e0ca;
    background: #f2fffd;
    box-shadow: 0 0 0 4px #c9fff4
}

.image-upload.has-image {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    height: auto;
    max-width: 500px;
    align-self: center;
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    pointer-events: none;
}

.placeholder-svg {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    border-radius: 50%;
    transition: transform .2s
}

.image-upload:hover .placeholder-svg {
    transform: scale(1.05)
}

.upload-title {
    font-weight: 800;
    color: var(--text-1);
    font-size: 1.05rem
}

.upload-hint {
    font-size: .9rem;
    color: #4a5568;
}

.image-upload:hover .upload-hint,
.image-upload:focus .upload-hint,
.image-upload.dragover .upload-hint {
    color: #374151;
}

.controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 106px;
    margin: 32px 0;
}

.form-group {
    background: var(--card);
    border-radius: 12px;
    padding: 24px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.form-label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-hint {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--text-2);
}

.age-display {
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

/* Range styling */
#ageSlider {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #e9ebf5;
    outline: none;
}

#ageSlider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

#ageSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* Radio group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-pill-unknown .radio-pill-girl .radio-pill-boy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--muted);
    cursor: pointer;
    user-select: none;
    border: 1px solid #e8eaf3;
}

.radio-pill-unknown input {
    accent-color: var(--text-2);
}

.radio-pill-girl input {
    accent-color: var(--brand);
}

.radio-pill-boy input {
    accent-color: var(--brand-2);
}

/* Responsive */
@media (max-width: 920px) {
    .controls {
        margin: 16px 0;
        grid-template-columns: 1fr;
        gap: 32px
    }
}


.preview-image {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
}

.preview-image.show {
    display: block;
    animation: fadeIn .3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.heart-plus {
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: #ff5f9b;
    animation: heartBeat 1.5s ease-in-out infinite
}

.drop-hint {
    text-align: center;
    color: #4a5568;
    font-size: .9rem
}

.customize-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    padding: 16px;
}

.customize-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}

.customize-grid {
    /*display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;*/
}

.customize-field {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: var(--text-2);
}

.customize-field input, .customize-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7f2;
    font-weight: 700;
    outline: none;
}

.customize-field input:focus, .customize-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(214, 69, 93, .15);
}

.customize-toggles {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--text-2);
}

.customize-note {
    margin-top: 8px;
    color: #657085;
    font-size: .9rem;
}

.generate-btn {
    display: block;
    margin: 14px auto 0;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 10px 30px rgba(214, 69, 93, .25);
    position: relative;
    overflow: hidden
}

.generate-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, .2);
    transform: translateY(-50%) skewX(-20deg);
    transition: left .4s
}

.generate-btn:hover:not(:disabled):before {
    left: 100%
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(214, 69, 93, .35)
}

.generate-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.generate-btn.loading {
    cursor: default;
    pointer-events: none
}

.privacy-badge {
    text-align: center;
    color: #445066;
    margin-top: 10px;
    font-size: .9rem
}

/* Processing */
.processing-section {
    display: none;
    text-align: center;
    margin: 28px auto;
    max-width: 900px;
    padding: 0 18px
}

.processing-section.show {
    display: block;
    animation: fadeIn .3s ease
}

.fusion-animation {
    position: relative;
    height: 220px;
    margin-bottom: 16px
}

.image-container {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1)
}

.image-left {
    left: 50%;
    transform: translateX(-200px);
    animation: slideLeft 2.4s ease-in-out infinite
}

.image-right {
    right: 50%;
    transform: translateX(200px);
    animation: slideRight 2.4s ease-in-out infinite
}

@keyframes slideLeft {
    0%, 100% {
        transform: translateX(-200px)
    }
    50% {
        transform: translateX(-60px)
    }
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(200px)
    }
    50% {
        transform: translateX(60px)
    }
}

.fusion-effect {
    position: absolute;
    width: 220px;
    height: 220px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 69, 93, .35) 0%, rgba(44, 191, 174, .25) 40%, transparent 70%);
    animation: pulse 1.2s ease-in-out infinite;
    display: none
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(.85);
        opacity: .6
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1
    }
}

.floating-hearts {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 220px;
    pointer-events: none
}

.floating-hearts span {
    position: absolute;
    color: #d6455d;
    opacity: .8;
    animation: floatUp 2.4s ease-in-out infinite
}

.floating-hearts span:nth-child(1) {
    left: 30%;
    top: 60%;
    font-size: 18px;
    animation-delay: .1s
}

.floating-hearts span:nth-child(2) {
    left: 55%;
    top: 70%;
    font-size: 24px;
    animation-delay: .4s
}

.floating-hearts span:nth-child(3) {
    left: 70%;
    top: 50%;
    font-size: 16px;
    animation-delay: .7s
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: .2
    }
    50% {
        transform: translateY(-14px);
        opacity: .9
    }
    100% {
        transform: translateY(0);
        opacity: .2
    }
}

.processing-text p {
    font-size: 1.05rem;
    color: var(--text-2);
    margin-bottom: 12px;
    font-weight: 600
}

.loading-bar {
    width: min(420px, 92%);
    height: 8px;
    background: #e9ebf5;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto
}

.loading-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    width: 0%;
    animation: loadingAnimation 48s ease-out forwards
}

@keyframes loadingAnimation {
    0% {
        width: 0%
    }
    25% {
        width: 35%
    }
    60% {
        width: 72%
    }
    100% {
        width: 100%
    }
}

.tips {
    margin-top: 10px;
    color: #8893a6;
    font-size: .95rem;
    font-style: italic
}

/* Result */
.result-section {
    display: none;
    text-align: center;
    margin: 24px auto;
    max-width: 900px;
    padding: 0 18px
}

.result-section.show {
    display: block;
    animation: fadeIn .3s ease
}

.result-image-container {
    position: relative;
    display: inline-block;
    max-width: 560px;
    width: 100%;
    margin: 16px auto
}

.result-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
    transition: filter .3s;
    pointer-events: none;
}

.result-image.blurred {
    filter: blur(4px)
}

.close-result-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

.share-result-btn, .download-result-btn {
    position: absolute;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    display: none;
}

.download-result-btn {
    right: -40px;
}

.share-result-btn {
    left: 80px;
}

.result-image-container:hover .close-result-btn,
.result-image-container:hover .share-result-btn,
.result-image-container:hover .download-result-btn {
    display: block;
}

.view-result-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, .82);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s, background .2s;
    backdrop-filter: blur(10px);
    letter-spacing: 0.0125em;
}

.view-result-btn:hover {
    background: rgba(0, 0, 0, .92);
    transform: translate(-50%, -50%) scale(1.03)
}

/* Spinner for Reveal button while checking payment */
@keyframes btnSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.view-result-btn.loading {
    pointer-events: none;
    opacity: .9;
}

.view-result-btn.loading::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    transform: translateY(-50%);
    animation: btnSpin .8s linear infinite;
}

.disclaimer {
    margin-top: 12px;
    color: #7a7a7a;
    font-size: .95rem;
    font-style: italic
}

/* Library */
.past-results {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 18px;
    text-align: center;
}

.past-results h2 {
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.past-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    justify-items: center;
}

.past-results__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.past-results__item {
    position: relative;
    display: inline-block;
}

.trash-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s;
}

.trash-icon:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Examples */
.examples {
    max-width: 1100px;
    margin: 8px auto 16px;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.examples h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

.examples__grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px
}

.example-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .1)
}

.example-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover
}

.example-meta {
    display: none;
    padding: 10px 12px;
    color: #6a7387;
    font-weight: 700;
    text-align: center
}

.mini-note {
    text-align: center;
    color: #4b5563;
    margin-top: 10px;
    font-size: .9rem
}

/* Image Compare Component */
.ic-compare {
    --ic-pos: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    background: #eaeaea;
}

.ic-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Top (edited) image container */
.ic-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--ic-pos, 50%)) 0 0);
}

.ic-handle {
    display: grid;
    grid-auto-flow: column;
    position: absolute;
    top: 0;
    left: var(--ic-pos, 50%);
    transform: translateX(-50%);
    height: 100%;
    width: 40px;
    cursor: ew-resize;
    z-index: 2;
    outline: none;
}

.ic-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 0 12px rgba(0, 0, 0, .25);
}

.ic-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.125);
    backdrop-filter: blur(7px);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 4px;
    border: 2px solid #fff;
}

.ic-handle:focus-visible {
    outline: 3px solid #1A73E8;
    outline-offset: 3px;
    border-radius: 8px;
}

.ic-handle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    z-index: 3;
    width: 0px;
    height: 0px;
    border-top: 8px solid transparent;
    border-right: 10px solid;
    border-bottom: 8px solid transparent;
    color: white;
}

.ic-labels {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3;
    pointer-events: none;
}

.ic-label {
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .3px;
}

.ic-label--edited {
    margin-left: 4px;
}

.ic-label--original {
    margin-right: 4px;
}

/* Features */
.features {
    max-width: 1100px;
    margin: 8px auto 18px;
    padding: 0 18px
}

.features h2 {
    text-align: center;
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.feat {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    text-align: center;
    transition: transform .2s, box-shadow .2s
}

.feat:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08)
}

.feat__icon {
    font-size: 24px;
    margin-bottom: 6px
}

.feat h3 {
    font-size: 1.05rem;
    margin-bottom: 6px
}

.feat p {
    color: var(--text-2);
    font-size: .95rem
}

.cta-center {
    display: flex;
    justify-content: center;
    margin-top: 14px
}

/* FAQ */
.faq {
    max-width: 900px;
    margin: 10px auto 28px;
    padding: 0 18px
}

.faq h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

.faq details {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
    transition: box-shadow .2s
}

.faq details:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .07)
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    padding: 4px 0
}

.faq summary::-webkit-details-marker {
    color: var(--brand)
}

.faq p {
    color: #6b7489;
    margin-top: 8px;
    line-height: 1.5
}

/* Countdown Timer */
.countdown-timer {
    background: #FEF3C7;
    color: #92400E;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
}

.countdown-timer-pre {
    white-space: pre-line;
}

/* Old Price */
.old-price {
    color: #4a4a4a;
    text-decoration: line-through;
    margin-right: 8px;
}

/* Modal */
.modal {
    overflow: scroll;
    z-index: 1001;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    animation: fadeIn .25s ease
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 48px 32px;
    border-radius: 18px;
    max-width: 520px;
    width: 92%;
    position: relative;
    animation: slideUp .25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

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

.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 28px;
    font-weight: 900;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .2s
}

.close:hover {
    color: #000
}

.modal h2 {
    text-align: center;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 1.5rem
}

.modal-desc {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 14px
}

.pricing-info {
    text-align: center;
    margin-bottom: 10px
}

.price-tag {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    margin: 32px 0
}

.price-tag .old-price {
    color: #0f172a;
    background: rgba(255, 255, 255, .95);
    padding: 2px 6px;
    border-radius: 6px;
    text-decoration-thickness: 2px;
}

.price {
    font-size: 2.2rem;
    font-weight: 900;
    display: block
}

.description {
    font-size: 1.02rem;
    opacity: .95
}

.features-list {
    list-style: none;
    text-align: left;
    max-width: 320px;
    margin: 16px auto;
    color: var(--text-2)
}

.features-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px
}

/* Stripe Buy Button wrapper */
.payment-embed-container {
    display: flex;
    justify-content: center;
    margin-top: 32px
}

.payment-embed {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Stripe-inspired primary button */
.payment-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #635bff;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    border: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 8px 20px rgba(99, 91, 255, .35);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.payment-link-button:hover {
    background: #584fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 10px 28px rgba(99, 91, 255, .45)
}

.payment-link-button:active {
    transform: translateY(0);
    background: #4f46e5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .16), 0 6px 18px rgba(99, 91, 255, .35)
}

.payment-link-button:focus-visible {
    outline: 3px solid rgba(99, 91, 255, .55);
    outline-offset: 3px
}

.payment-link-button .lock-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex-shrink: 0;
    opacity: .95;
}

.payment-secure-note {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* Footer */
.footer {
    max-width: 1100px;
    margin: 0 auto 0px;
    text-align: center;
    color: #5f6a80;
    font-size: .9rem;
    padding: 8px 18px
}

.footer-links {
    margin-top: 2px;
    margin-bottom: 8px;
    gap: 8px
}

/* Responsive */
@media (max-width: 920px) {
    .nav {
        display: none
    }

    .nav-toggle {
        display: block
    }

    .hero {
        grid-template-columns:1fr;
        gap: 18px;
        text-align: center
    }

    .hero__art {
        order: -1;
        height: 220px
    }

    .steps {
        grid-template-columns:1fr
    }

    .upload-grid {
        grid-template-columns:1fr;
        gap: 12px
    }

    .heart-plus {
        display: none
    }

    .examples__grid {
        grid-template-columns:1fr 1fr
    }

    .features__grid {
        grid-template-columns:1fr
    }

    .generate-btn {
        width: 100%;
        max-width: 520px
    }

    .upload-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 620px) {
    .fusion-animation {
        height: 180px
    }

    .image-container {
        width: 130px;
        height: 130px;
        top: 20px
    }

    .image-left {
        animation: slideLeftSm 2.4s ease-in-out infinite
    }

    .image-right {
        animation: slideRightSm 2.4s ease-in-out infinite
    }

    @keyframes slideLeftSm {
        0%, 100% {
            transform: translateX(-150px)
        }
        50% {
            transform: translateX(-40px)
        }
    }
    @keyframes slideRightSm {
        0%, 100% {
            transform: translateX(150px)
        }
        50% {
            transform: translateX(40px)
        }
    }
    .fusion-effect {
        width: 180px;
        height: 180px
    }

    .floating-hearts {
        display: none
    }

    .hero__cta .btn {
        flex: 1 1 100%
    }

    .examples__grid {
        grid-template-columns:1fr
    }

    .sticky-banner {
        font-size: .9rem;
        padding: 14px 15px;
    }

    .sticky-banner .price {
        font-size: 1rem;
        color: var(--brand);
    }

    .sticky-banner .old-price {
        color: #4a4a4a;
    }
}

@media (max-width: 480px) {
    .topbar__inner {
        padding: 10px 14px
    }

    .section-subtitle {
        margin-bottom: 12px
    }

    .upload-grid {
        gap: 10px
    }

    .image-upload {
        padding: 18px 12px;
        min-height: 200px
    }

    .drop-hint {
        display: none
    }

    .result-image-container {
        max-width: 96%
    }

    .view-result-btn {
        padding: 12px 18px;
        font-size: .95rem
    }

    .examples__grid {
        grid-template-columns:1fr
    }

    .modal-content {
        padding: 32px 20px
    }

    .note {
        font-size: .85rem
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .payment-secure-note {
        color: #9ca3af;
    }

    .payment-link-button {
        box-shadow: 0 1px 1px rgba(0, 0, 0, .5), 0 8px 20px rgba(99, 91, 255, .45);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .payment-link-button,
    .btn,
    .step,
    .feat,
    .example-card,
    .bubble,
    .card-demo {
        transition: none;
        animation: none;
    }
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card);
    color: var(--text-1);
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: .9rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.cookie-banner.show {
    visibility: visible;
    opacity: 1
}

.cookie-buttons {
    display: flex;
    gap: 10px
}

.cookie-btn {
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    text-decoration: none;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 30px rgba(214, 69, 93, .25)
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(214, 69, 93, .35)
}

.btn--ghost {
    background: #fff;
    color: var(--text-1);
    border: 1px solid #e8eaf3
}

.btn--ghost:hover {
    border-color: #d0d4e0
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start
    }

    .cookie-buttons {
        margin-top: 10px
    }
}

.a2hs-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #111;
    color: #fff;
    padding: 23px env(safe-area-inset-right) calc(23px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
    transform: translateY(110%);
    transition: transform .25s ease;
    font-size: 15px;
}

.a2hs-banner.show {
    transform: translateY(0)
}

.a2hs-content {
    display: grid;
    padding: 2px 12px;
    grid-template-columns:48px 1fr auto;
    gap: 12px;
    align-items: center;
}

.a2hs-icon {
    border-radius: 8px
}

.a2hs-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px
}

.a2hs-text p {
    margin: 0;
    opacity: .9
}

.a2hs-ios {
    margin: 0;
    padding-left: 18px
}

.a2hs-install {
    white-space: nowrap
}

.a2hs-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .a2hs-banner {
        left: auto;
        right: 20px;
        bottom: 90px;
        width: 420px;
        border-radius: 12px;
    }
}

/* Packs UI in modal */
.pack-selector {
    display: grid;
    grid-template-columns:1fr;
    gap: 10px;
    margin-top: 8px;
}

.pack-card {
    position: relative;
    border: 2px solid #e5e7f2;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pack-card[aria-checked="true"] {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08)
}

.pack-card:hover {
    transform: translateY(-1px)
}

.pack-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px
}

.pack-name {
    font-weight: 900;
    font-size: 1.05rem
}

.pack-credits {
    color: var(--text-2);
    font-weight: 700
}

.pack-price {
    font-size: 1.4rem;
    font-weight: 900
}

.pack-note {
    color: var(--text-2);
    font-size: .9rem
}

.pack-card--popular .ribbon {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #ffd166;
    color: #111;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
}

/* Order bump */
.order-bump {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffaf0;
    border: 1px dashed #f59e0b;
    color: #7a5a00;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 10px;
    user-select: none;
}

.order-bump input {
    transform: scale(1.2);
}

.order-bump__text {
    font-weight: 800;
}

.order-bump__price {
    margin-left: auto;
    font-weight: 900;
}

/* Credits area in header */
.credits-area {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer
}

.credits-badge {
    background: #eef2ff;
    color: #1f2430;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
}

.buy-credits {
    white-space: nowrap;
}

@media (max-width: 920px) {
    .credits-area {
        display: none;
    }
}

@media (max-width: 920px) {
    .credits-area {
        display: none;
    }

    /* hide header badge on mobile */
    .credits-area--drawer {
        display: flex; /* show it in the drawer */
        gap: 8px;
        align-items: center;
        padding: 10px 0;
        border-top: 1px solid rgba(0, 0, 0, .06);
        flex-wrap: wrap;
    }

    .nav-drawer .btn {
        width: 100%;
    }

    /* buttons fit drawer width */
}

/* Upsell modal tweaks */
.modal-content .price .small {
    font-size: 1rem;
    font-weight: 700;
    opacity: .9;
}

.pack-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff, #fff) padding-box, linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 6px 18px rgba(255, 126, 179, .18);
}

.pack-old {
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-weight: 800;
    letter-spacing: .01em
}

.pack-save {
    background: #10b981;
    color: #062e25;
    font-weight: 900;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, .25);
}

.pack-card--popular .pack-save {
    background: #22c55e;
}

/* Modal - Optimizado para móvil */
.modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: #fff;
    margin: 2% auto;
    padding: 32px 24px 24px;
    border-radius: 18px;
    max-width: 520px;
    width: 92%;
    position: relative;
    animation: slideUp .25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    max-height: 95vh;
    overflow-y: auto;
}

.modal h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.modal-desc {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Pack selector más compacto */
.pack-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

.pack-card {
    position: relative;
    border: 2px solid #e5e7f2;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pack-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.pack-name {
    font-weight: 900;
    font-size: 1rem;
}

.pack-credits {
    color: var(--text-2);
    font-weight: 700;
    font-size: 0.9rem;
}

.pack-price {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.pack-note {
    color: var(--text-2);
    font-size: 0.85rem;
}

.pack-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 4px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 12px rgba(255, 126, 179, .15);
}

.pack-old {
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-weight: 800;
    font-size: 0.85rem;
}

.pack-save {
    background: #10b981;
    color: #062e25;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Countdown más compacto */
.countdown-timer {
    background: #FDECEC;
    color: #B91C1C;
    font-weight: bold;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Payment embed más compacto */
.payment-embed-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.payment-secure-note {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

/* Ribbon más pequeño */
.pack-card--popular .ribbon {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ffd166;
    color: #111;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
}

/* Responsive mobile específico */
@media (max-width: 480px) {
    .modal-content {
        margin: 1% auto;
        padding: 24px 16px 20px;
        width: 96%;
        max-height: 98vh;
    }

    .modal h2 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .modal-desc {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .pack-selector {
        gap: 6px;
    }

    .pack-card {
        padding: 8px;
    }

    .pack-name {
        font-size: 0.95rem;
    }

    .pack-price {
        font-size: 1.2rem;
    }

    .countdown-timer {
        padding: 5px 6px;
        font-size: 0.85rem;
    }

    .payment-link-button {
        padding: 11px 16px;
        font-size: 0.95rem;
    }

    .close {
        right: 12px;
        top: 8px;
        font-size: 24px;
    }
}

@media (max-width: 380px) {
    .modal h2 {
        font-size: 1.15rem;
    }

    .pack-price {
        font-size: 1.15rem;
    }
}


/* Solo animar el pack seleccionado */
.pack-card[aria-checked="true"] .pack-credits {
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(
            90deg,
            #6b7280 0%,
            #6b7280 40%,
            #ff7eb3 50%,
            #7af0da 60%,
            #6b7280 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
