/* 
 * proposal.css - Estilos modernizados para la propuesta
 * Diseño glassmorphism con colores vibrantes y efectos suaves
 */

/* Sección de propuesta modernizada */
.proposal-container {
    width: min(90%, 600px);
    margin: 3rem auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
}

.proposal-card {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto de borde superior brillante */
.proposal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

/* Cuando tenga class="no-hover", desactivar el efecto hover */
.proposal-card.no-hover:hover {
    transform: none;
}

/* Si no tiene class="no-hover", aplicar efecto hover moderno */
.proposal-card:not(.no-hover):hover {
    transform: translateY(-12px) rotateY(2deg);
    background: var(--surface-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.proposal-card h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: none;
}

.proposal-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    color: var(--secondary-color);
    position: relative;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.proposal-image::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulse-soft-modern 4s infinite;
}

.proposal-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(236, 72, 153, 0.05), transparent);
    animation: rotate 6s linear infinite;
}

.proposal-image i {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.proposal-image:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.5));
}

/* Contenedor para los botones modernizado */
.proposal-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin: 2.5rem 0;
    position: relative;
    min-height: 70px;
}

/* Estilos comunes para los botones modernizados */
.proposal-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Botón SÍ modernizado */
.yes-btn {
    background: var(--gradient-primary);
    color: white;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.yes-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.yes-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(99, 102, 241, 0.4);
}

.yes-btn:hover::before {
    left: 100%;
}

/* Botón NO modernizado */
.no-btn {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9;
    position: relative;
    overflow: hidden;
}

.no-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.no-btn:hover {
    background: var(--surface-hover);
    transform: scale(1.02) translateY(-1px);
}

.no-btn:hover::before {
    left: 100%;
}

/* Mensaje de respuesta modernizado */
.proposal-message {
    min-height: 70px;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animación suave modernizada */
@keyframes pulse-soft-modern {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Efectos de confeti modernizados */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.9;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    filter: drop-shadow(0 0 5px currentColor);
}

/* Pantalla de celebración modernizada */
.yes-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.yes-screen.show {
    opacity: 1;
}

.yes-screen h2 {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.yes-screen p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    color: var(--text-color);
    font-weight: 400;
}

.yes-screen .close-hint {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.big-heart {
    font-size: clamp(6rem, 12vw, 10rem);
    color: var(--secondary-color);
    margin: 2rem;
    animation: heartbeat-celebration 2s infinite;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.5));
    position: relative;
}

.big-heart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-ring-celebration 2s infinite;
    z-index: -1;
}

@keyframes heartbeat-celebration {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(236, 72, 153, 0.8));
    }
}

@keyframes pulse-ring-celebration {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Respuestas específicas para dispositivos móviles */
@media (max-width: 768px) {
    .proposal-card {
        padding: 2.5rem;
    }
    
    .proposal-buttons {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .proposal-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        min-width: 200px;
    }
    
    .proposal-image {
        height: 150px;
        margin: 1.5rem 0;
    }
    
    .proposal-image i {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .proposal-card {
        padding: 2rem;
        margin: 2rem auto;
    }
    
    .proposal-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .proposal-image {
        height: 120px;
    }
    
    .proposal-image i {
        font-size: 3.5rem;
    }
    
    .proposal-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        min-width: 150px;
    }
    
    .proposal-message {
        font-size: 1.1rem;
        padding: 1.2rem;
        min-height: 60px;
    }
    
    .yes-screen h2 {
        font-size: 2.5rem;
    }
    
    .yes-screen p {
        font-size: 1.2rem;
    }
    
    .big-heart {
        font-size: 5rem;
    }
}

/* Efectos especiales para la propuesta */
.proposal-card:hover .proposal-image::before {
    animation-duration: 2s;
}

.proposal-card:hover .proposal-image::after {
    animation-duration: 3s;
}

/* Tema claro (opcional) */
@media (prefers-color-scheme: light) {
    .yes-screen {
        background: rgba(248, 250, 252, 0.95);
    }
}