@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Nunito:wght@300;400;600&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #ffe6f0, #fff8f2);
    --primary: #f29ab8;
    --primary-dark: #e1769a;
    --accent-gold: #d4a55d;
    --text-main: #3b2b3b;
    --text-soft: #7a627a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
    --radius-xl: 24px;
    --transition-fast: 0.25s ease;
    --transition-med: 0.4s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 192, 203, 0.35) 0, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(255, 215, 186, 0.4) 0, transparent 55%),
        radial-gradient(circle at 80% 90%, rgba(255, 182, 193, 0.3) 0, transparent 55%);
    opacity: 0.9;
    pointer-events: none;
    z-index: -2;
}

.heart-floating {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    width: 18px;
    height: 18px;
    background: rgba(242, 154, 184, 0.9);
    transform: rotate(45deg);
    border-radius: 50% 50% 0 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    animation: floatHeart 12s linear infinite;
    opacity: 0.18;
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: inherit;
    border-radius: 50%;
}

.heart::before {
    top: -9px;
    left: 0;
}

.heart::after {
    left: -9px;
    top: 0;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(45deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-130vh) rotate(45deg) scale(1.15);
        opacity: 0;
    }
}

.app-shell {
    width: 100%;
    max-width: 520px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 20px 18px 18px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .app-shell {
        padding: 28px 32px 26px;
    }
}

/* Versión escritorio: un poco más ancha y composición más centrada */
@media (min-width: 960px) {
    body {
        padding: 32px;
    }

    .app-shell {
        max-width: 760px;
    }

    #section-intro {
        text-align: center;
    }

    #section-intro .title {
        font-size: 2rem;
    }

    #section-intro .subtitle {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .intro-image {
        width: min(420px, 80%);
    }

    .intro-image-container::before {
        width: min(450px, 86%);
    }
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffeef5 0, #f29ab8 42%, #e1769a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-circle::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.logo-heart {
    width: 18px;
    height: 18px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 50% 50% 0 50%;
}

.logo-heart::before,
.logo-heart::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
}

.logo-heart::before {
    top: -9px;
    left: 0;
}

.logo-heart::after {
    left: -9px;
    top: 0;
}

.logo-title {
    display: flex;
    flex-direction: column;
}

.logo-title span:first-child {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1rem;
    color: var(--text-main);
}

.logo-title span:last-child {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
}

.step-indicator {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
    font-weight: 600;
}

/* (Audio) No mostramos controles: el sonido se habilita al primer toque/click del usuario */

.card {
    border-radius: 22px;
    padding: 20px 18px 18px;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.88) 48%, rgba(255, 249, 244, 0.95) 100%);
    box-shadow: 0 16px 40px rgba(234, 180, 190, 0.35);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .card {
        padding: 26px 24px 24px;
    }
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 192, 203, 0.18) 0, transparent 50%),
        radial-gradient(circle at 100% 0, rgba(255, 215, 186, 0.18) 0, transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity var(--transition-med),
        transform var(--transition-med);
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--text-main);
}

.subtitle {
    font-size: 0.98rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 18px;
}

.paragraph-block {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(242, 154, 184, 0.18);
    padding: 14px 14px 12px;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Estilos para el mensaje romántico inicial */
.mensaje-romantico-container {
    position: relative;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 250, 0.98));
    border-radius: 24px;
    border: 1px solid rgba(242, 154, 184, 0.2);
    box-shadow: 
        0 20px 50px rgba(242, 154, 184, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    animation: mensajeFadeIn 1s ease-out;
}

.mensaje-romantico-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 154, 184, 0.08) 0%, transparent 70%);
    animation: shimmerRotate 20s linear infinite;
    pointer-events: none;
}

.mensaje-hearts-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.heart-decoration {
    font-size: 1.4rem;
    animation: heartFloat 3s ease-in-out infinite;
}

.heart-decoration:nth-child(1) {
    animation-delay: 0s;
}

.heart-decoration:nth-child(2) {
    animation-delay: 1s;
    font-size: 1.2rem;
}

.heart-decoration:nth-child(3) {
    animation-delay: 2s;
}

.mensaje-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.mensaje-paragraph {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main);
    margin: 0 0 20px;
    font-weight: 400;
    opacity: 0;
    animation: paragraphFadeIn 0.8s ease-out forwards;
}

.mensaje-paragraph:nth-child(1) {
    animation-delay: 0.2s;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent-gold);
}

.mensaje-paragraph:nth-child(2) {
    animation-delay: 0.4s;
}

.mensaje-paragraph:nth-child(3) {
    animation-delay: 0.6s;
}

.mensaje-paragraph:nth-child(4) {
    animation-delay: 0.8s;
}

.mensaje-paragraph:nth-child(5) {
    animation-delay: 1s;
}

.mensaje-paragraph:nth-child(6) {
    animation-delay: 1.2s;
}

.mensaje-paragraph:nth-child(7) {
    animation-delay: 1.4s;
}

.mensaje-paragraph:nth-child(8) {
    animation-delay: 1.6s;
}

.mensaje-paragraph:nth-child(9) {
    animation-delay: 1.8s;
}

.mensaje-destacado {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin: 24px 0 !important;
    text-shadow: 0 2px 8px rgba(242, 154, 184, 0.2);
}

.mensaje-final {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin: 32px 0 0;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    animation: mensajeFinalFadeIn 1s ease-out forwards;
    animation-delay: 2s;
    text-shadow: 0 2px 12px rgba(242, 154, 184, 0.3);
}

@keyframes mensajeFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes paragraphFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mensajeFinalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    .mensaje-romantico-container {
        padding: 40px 36px;
    }
    
    .mensaje-paragraph {
        font-size: 1.1rem;
    }
    
    .mensaje-destacado {
        font-size: 1.35rem !important;
    }
    
    .mensaje-final {
        font-size: 1.6rem;
    }
}

.paragraph-block::-webkit-scrollbar {
    width: 6px;
}

.paragraph-block::-webkit-scrollbar-track {
    background: transparent;
}

.paragraph-block::-webkit-scrollbar-thumb {
    background: rgba(242, 154, 184, 0.4);
    border-radius: 999px;
}

.paragraph-block p {
    margin: 0 0 10px;
}

.paragraph-block p:last-child {
    margin-bottom: 0;
}

.primary-btn {
    appearance: none;
    border: none;
    outline: none;
    cursor: pointer;
    width: 100%;
    border-radius: 999px;
    padding: 11px 16px;
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-image: linear-gradient(135deg, #f29ab8, #f8cbd8);
    box-shadow: 0 16px 30px rgba(242, 154, 184, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
}

.primary-btn span.heart {
    width: 16px;
    height: 16px;
    position: static;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    animation: none;
}

.primary-btn span.heart::before,
.primary-btn span.heart::after {
    background: #fff;
}

.primary-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 50%, rgba(255, 255, 255, 0.4));
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(242, 154, 184, 0.65);
    filter: brightness(1.02);
}

.primary-btn:hover::after {
    opacity: 1;
    transform: translateX(40%);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(242, 154, 184, 0.45);
}

.question-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: var(--text-main);
}

.question-subtext {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.option-card {
    border-radius: 16px;
    border: 1px solid rgba(242, 154, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 11px;
    font-size: 0.9rem;
    color: var(--text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast),
        color var(--transition-fast);
}

.option-radio {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(242, 154, 184, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.option-card span.label {
    flex: 1;
}

.option-card.selected {
    border-color: rgba(242, 154, 184, 0.9);
    background: linear-gradient(135deg, rgba(242, 154, 184, 0.16), rgba(255, 255, 255, 0.95));
    box-shadow: 0 10px 28px rgba(242, 154, 184, 0.4);
    transform: translateY(-1px);
    color: var(--text-main);
}

.option-card.selected .option-radio-dot {
    background: var(--primary);
    transform: scale(1.05);
}

.helper-message {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.helper-message strong {
    font-weight: 600;
}

.message-after-answer {
    margin-top: 20px;
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 242, 0.98));
    border-radius: 18px;
    border: 1px solid rgba(242, 154, 184, 0.25);
    box-shadow: 0 8px 24px rgba(242, 154, 184, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: none;
}

.message-after-answer.show {
    animation: messageAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.message-after-answer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.message-after-answer.show::before {
    animation: shimmer 2s ease-in-out infinite 0.8s;
}

.message-heart {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: heartPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.3s;
}

.message-after-answer.show .message-heart {
    animation: heartPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.3s;
}

.message-text {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.7;
    text-align: center;
    font-style: italic;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeIn 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.message-after-answer.show .message-text {
    animation: textFadeIn 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heartPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.field-group {
    margin-top: 12px;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(242, 154, 184, 0.25);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    border-color: rgba(242, 154, 184, 0.85);
    box-shadow: 0 0 0 1px rgba(242, 154, 184, 0.35);
    background: #fff;
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 500px) {
    .field-row {
        grid-template-columns: 1.3fr 0.9fr;
    }
}

.note-text {
    font-size: 0.83rem;
    color: var(--text-soft);
    margin-top: 8px;
}

.error-text {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #d64561;
}

.success-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.final-message {
    margin-top: 16px;
    font-size: 0.98rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.hearts-burst {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hearts-burst.active {
    opacity: 1;
}

.hearts-burst span {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(242, 154, 184, 0.95);
    transform: rotate(45deg);
    border-radius: 50% 50% 0 50%;
    opacity: 0;
    animation: burst 3s ease-out infinite;
}

.hearts-burst span::before,
.hearts-burst span::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: inherit;
    border-radius: 50%;
}

.hearts-burst span::before {
    top: -10px;
    left: 0;
}

.hearts-burst span::after {
    left: -10px;
    top: 0;
}

.hearts-burst span:nth-child(1) {
    top: 60%;
    left: 10%;
    animation-delay: 0s;
}
.hearts-burst span:nth-child(2) {
    top: 30%;
    left: 30%;
    animation-delay: 0.4s;
}
.hearts-burst span:nth-child(3) {
    top: 70%;
    left: 50%;
    animation-delay: 0.8s;
}
.hearts-burst span:nth-child(4) {
    top: 40%;
    left: 70%;
    animation-delay: 1.2s;
}
.hearts-burst span:nth-child(5) {
    top: 55%;
    left: 85%;
    animation-delay: 1.6s;
}

@keyframes burst {
    0% {
        transform: translate3d(0, 0, 0) rotate(45deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    45% {
        opacity: 0.4;
    }
    100% {
        transform: translate3d(0, -120px, 0) rotate(45deg) scale(1.1);
        opacity: 0;
    }
}

.footer-note {
    margin-top: 10px;
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-soft);
}

.footer-note span {
    color: var(--accent-gold);
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.intro-image-container {
    margin: 18px 0 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.intro-image {
    max-width: 100%;
    width: min(360px, 92%);
    aspect-ratio: 3 / 4;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.10),
        0 18px 55px rgba(242, 154, 184, 0.28);
    border: 1px solid rgba(212, 165, 93, 0.35);
    animation: imageFadeIn 0.9s ease-out;
}

.intro-image-container::before {
    content: "";
    position: absolute;
    width: min(390px, 96%);
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.65) 0, transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(242, 154, 184, 0.35) 0, transparent 60%),
        linear-gradient(135deg, rgba(212, 165, 93, 0.18), rgba(242, 154, 184, 0.16));
    filter: blur(10px);
    z-index: 0;
    transform: translateY(8px);
}

.intro-image-container .intro-image {
    position: relative;
    z-index: 1;
}

#section-intro {
    text-align: center;
}

#section-intro .subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes imageFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#youtube-audio {
    position: fixed;
    width: 0;
    height: 0;
    border: none;
}

.error-message {
    margin-top: 16px;
    padding: 16px 14px;
    background: linear-gradient(135deg, rgba(255, 245, 250, 0.98), rgba(255, 240, 245, 0.98));
    border-radius: 18px;
    border: 1px solid rgba(242, 154, 184, 0.4);
    box-shadow: 0 6px 20px rgba(242, 154, 184, 0.25);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    animation: errorAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.error-message.show {
    animation: errorAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.error-heart {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 8px;
    animation: heartBounce 0.6s ease-out;
}

.error-text-msg {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    margin: 0;
}

@keyframes errorAppear {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heartBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}


/* ========================================
   NUEVO JUEGO ROMÁNTICO - ESTILOS
   ======================================== */

/* Quiz Header */
.quiz-header {
    margin-bottom: 32px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.quiz-progress-bar {
    width: 100% !important;
    height: 10px !important;
    background: rgba(242, 154, 184, 0.2) !important;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block !important;
    visibility: visible !important;
    min-height: 8px;
    position: relative;
    z-index: 10;
}

.quiz-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #f29ab8, #d4a55d, #f29ab8) !important;
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(242, 154, 184, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: progressShine 2s linear infinite;
    position: relative;
    display: block !important;
    visibility: visible !important;
    min-height: 8px;
}

.quiz-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressGlide 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes progressGlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-soft);
}

.quiz-step {
    font-weight: 600;
    color: var(--text-main);
}

.quiz-points {
    font-weight: 400;
}

.quiz-points strong {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animación cuando los puntos cambian */
@keyframes pointsIncrease {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5) rotate(5deg);
        color: #d4a55d;
        text-shadow: 0 0 20px rgba(212, 165, 93, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

.quiz-points strong.animate {
    animation: pointsIncrease 0.6s ease-out;
}

/* Romantic Message */
.romantic-message {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 230, 240, 0.9), rgba(255, 248, 242, 0.9));
    border-radius: 20px;
    border: 2px solid rgba(242, 154, 184, 0.4);
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 20px rgba(242, 154, 184, 0.2);
}

.romantic-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.romantic-icon {
    font-size: 40px;
    margin-bottom: 12px;
    animation: iconPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.romantic-text {
    font-size: 17px;
    color: var(--primary-dark);
    font-weight: 600;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Premio Animation */
.premio-animation {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premio-gift {
    font-size: 100px;
    animation: giftBounce 1.2s ease-in-out infinite, giftGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(233, 30, 99, 0.4));
    z-index: 2;
}

@keyframes giftBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes giftGlow {
    0%, 100% {
        filter: drop-shadow(0 15px 30px rgba(233, 30, 99, 0.4));
    }
    50% {
        filter: drop-shadow(0 15px 40px rgba(233, 30, 99, 0.8)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

.premio-sparkles {
    position: absolute;
    font-size: 50px;
    animation: sparkleRotate 3s linear infinite;
    z-index: 1;
}

@keyframes sparkleRotate {
    0% {
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.8) rotate(360deg);
    }
}

.premio-confetti {
    position: absolute;
    inset: -50px;
    pointer-events: none;
    overflow: visible;
}

.premio-confetti::before,
.premio-confetti::after {
    content: "🎊";
    position: absolute;
    font-size: 40px;
    animation: confettiFall 4s ease-in infinite;
}

.premio-confetti::before {
    left: 10%;
    animation-delay: 0s;
}

.premio-confetti::after {
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes confettiFall {
    0% {
        top: -50px;
        opacity: 0;
        transform: rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 120%;
        opacity: 0;
        transform: rotate(720deg) scale(1.2);
    }
}

/* Agregar más confeti con pseudo-elementos adicionales */
#section-premio .card-inner::before,
#section-premio .card-inner::after {
    content: "✨";
    position: absolute;
    font-size: 30px;
    animation: floatSparkle 3s ease-in-out infinite;
    pointer-events: none;
}

#section-premio .card-inner::before {
    left: 5%;
    top: 20%;
    animation-delay: 0.5s;
}

#section-premio .card-inner::after {
    right: 5%;
    top: 30%;
    animation-delay: 1.5s;
}

@keyframes floatSparkle {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(1.5);
        opacity: 1;
    }
}

#final-points {
    color: var(--primary);
    font-size: 48px;
    font-weight: 700;
    display: inline-block;
    animation: pointsPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

@keyframes pointsPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(233, 30, 99, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Mejorar el título de la sección premio */
#section-premio .title {
    animation: titleSlideIn 0.8s ease-out;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#section-premio .subtitle {
    animation: subtitleFadeIn 1s ease-out 0.3s both;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#section-premio .primary-btn {
    animation: buttonBounceIn 0.6s ease-out 0.8s both;
}

@keyframes buttonBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .quiz-header {
        margin-bottom: 20px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .quiz-progress-bar {
        width: 100% !important;
        height: 12px !important;
        display: block !important;
        margin-bottom: 14px !important;
        visibility: visible !important;
        background: rgba(242, 154, 184, 0.3) !important;
        border: 1px solid rgba(242, 154, 184, 0.4);
    }
    
    .quiz-progress-fill {
        height: 100% !important;
        display: block !important;
        visibility: visible !important;
        min-height: 12px !important;
    }
    
    .quiz-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        display: flex !important;
    }
    
    .romantic-message {
        padding: 16px;
    }
    
    .romantic-icon {
        font-size: 28px;
    }
    
    .romantic-text {
        font-size: 14px;
    }
    
    .premio-animation {
        width: 150px;
        height: 150px;
    }
    
    .premio-gift {
        font-size: 60px;
    }
}

/* Enhanced Premio Animations */
@keyframes giftRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes sparkleOrbit1 {
    0%, 100% {
        transform: translate(0, 0) scale(0.8) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-10px, -10px) scale(1.3) rotate(180deg);
        opacity: 1;
    }
}

@keyframes sparkleOrbit2 {
    0%, 100% {
        transform: translate(0, 0) scale(0.8) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(10px, 10px) scale(1.3) rotate(-180deg);
        opacity: 1;
    }
}

/* Enhanced gift with orbiting sparkles */
.premio-gift {
    position: relative;
}

.premio-gift::before {
    content: "✨";
    position: absolute;
    top: -20px;
    left: -30px;
    font-size: 30px;
    animation: sparkleOrbit1 3s ease-in-out infinite;
}

.premio-gift::after {
    content: "✨";
    position: absolute;
    bottom: -20px;
    right: -30px;
    font-size: 30px;
    animation: sparkleOrbit2 3s ease-in-out infinite 1.5s;
}

/* Add more confetti particles */
.premio-animation::before {
    content: "🎉";
    position: absolute;
    top: -30px;
    left: 50%;
    font-size: 35px;
    animation: confettiSpin 3s ease-in-out infinite;
    z-index: 3;
}

.premio-animation::after {
    content: "💫";
    position: absolute;
    bottom: -30px;
    right: 50%;
    font-size: 35px;
    animation: confettiSpin 3s ease-in-out infinite 1.5s;
    z-index: 3;
}

@keyframes confettiSpin {
    0%, 100% {
        transform: translate(-50%, 0) rotate(0deg) scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -15px) rotate(360deg) scale(1.2);
        opacity: 1;
    }
}

/* Enhanced sparkle rotation with pulse */
@keyframes sparkleRotatePulse {
    0% {
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.2) rotate(270deg);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.8) rotate(360deg);
    }
}

.premio-sparkles {
    animation: sparkleRotatePulse 3s linear infinite !important;
}

/* Faster, more dynamic confetti */
@keyframes confettiFallEnhanced {
    0% {
        top: -60px;
        opacity: 0;
        transform: rotate(0deg) scale(0.4);
    }
    5% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 130%;
        opacity: 0;
        transform: rotate(900deg) scale(1.4);
    }
}

.premio-confetti::before {
    animation: confettiFallEnhanced 3s ease-in infinite !important;
}

.premio-confetti::after {
    animation: confettiFallEnhanced 3s ease-in infinite 1s !important;
}

/* Enhanced gift bounce with more energy */
@keyframes giftBounceEnhanced {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-35px) scale(1.18) rotate(-3deg);
    }
    50% {
        transform: translateY(-40px) scale(1.2) rotate(0deg);
    }
    75% {
        transform: translateY(-35px) scale(1.18) rotate(3deg);
    }
}

/* Enhanced glow with rainbow effect */
@keyframes giftGlowEnhanced {
    0%, 100% {
        filter: drop-shadow(0 15px 30px rgba(233, 30, 99, 0.5));
    }
    25% {
        filter: drop-shadow(0 15px 45px rgba(233, 30, 99, 0.8)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.7));
    }
    50% {
        filter: drop-shadow(0 15px 55px rgba(233, 30, 99, 1)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 20px rgba(138, 43, 226, 0.6));
    }
    75% {
        filter: drop-shadow(0 15px 45px rgba(233, 30, 99, 0.8)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.7));
    }
}

.premio-gift {
    animation: giftBounceEnhanced 1.2s ease-in-out infinite, giftGlowEnhanced 2s ease-in-out infinite, giftRotate 4s ease-in-out infinite !important;
}

/* Add shimmer effect to the premio section */
#section-premio .card-inner {
    position: relative;
    overflow: visible;
}

#section-premio .card::before {
    animation: shimmerRotate 15s linear infinite;
}

/* Pulse effect for final points */
@keyframes pointsPulseEnhanced {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    }
    25% {
        transform: scale(1.08);
        text-shadow: 0 0 25px rgba(233, 30, 99, 0.7), 0 0 35px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 35px rgba(233, 30, 99, 0.9), 0 0 45px rgba(255, 215, 0, 0.7), 0 0 25px rgba(138, 43, 226, 0.5);
    }
    75% {
        transform: scale(1.08);
        text-shadow: 0 0 25px rgba(233, 30, 99, 0.7), 0 0 35px rgba(255, 215, 0, 0.5);
    }
}

#final-points {
    animation: pointsPulseEnhanced 2s ease-in-out infinite !important;
}
