* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

header {
    text-align: center;
    padding: 40px 20px 25px;
    border-bottom: 3px solid #667eea;
    margin-bottom: 35px;
}
.header-tag {
    color: #667eea;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}


header h1 {
    color: #2c3e50;
    font-size: 2.3em;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.05em;
    font-style: italic;
}

.mensaje-especial {
    margin-top: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 2px solid #ffc107;
    border-radius: 25px;
    color: #856404;
    font-size: 0.95em;
    font-weight: 600;
    animation: brilloSutil 3s ease-in-out infinite;
}

@keyframes brilloSutil {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    }
}

.seccion-palabras {
    margin-bottom: 45px;
}

.seccion-palabras h2 {
    color: #667eea;
    font-size: 1.7em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ff;
    font-weight: 600;
}

.palabra-card {
    background: #ffffff;
    border: 2px solid #e8eaf6;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.palabra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.palabra-card h3 {
    margin-bottom: 12px;
    color: #667eea;
    font-size: 1.4em;
    font-weight: 700;
}

.palabra-card h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.palabra-card h3 a:hover {
    color: #5568d3;
}

.definicion {
    color: #555;
    font-size: 0.98em;
    line-height: 1.9;
}

.bandera {
    font-style: normal;
    margin-right: 6px;
    font-size: 1.1em;
}

/* Animación especial para la palabra trampa */
.palabra-especial {
    cursor: pointer;
    position: relative;
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 107, 157, 0.15);
    }
}

.palabra-especial:hover {
    background: linear-gradient(135deg, #f0f3ff 0%, #ffffff 100%);
    border-color: #667eea;
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

footer {
    text-align: center;
    padding: 35px 20px;
    color: #7f8c8d;
    border-top: 3px solid #e0e7ff;
    margin-top: 50px;
    font-size: 0.95em;
}

.ver-mas-container {
    text-align: center;
    margin: 40px 0;
}

.boton-ver-mas {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.boton-ver-mas:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.seccion-oculta {
    display: none;
    animation: fadeInDown 0.5s ease-out;
}

.seccion-oculta.mostrar {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.palabra-spoiler {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #ff6b9d;
}

.spoiler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.spoiler-texto {
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.palabra-spoiler:hover .spoiler-overlay {
    background: rgba(102, 126, 234, 0.7);
}

.spoiler-contenido {
    position: relative;
    z-index: 1;
}

.boton-especial-container {
    margin-top: 25px;
}

.boton-especial {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.15em;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    }
}

.boton-especial:hover {
    background: linear-gradient(135deg, #ff5589 0%, #ff7099 100%);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.boton-especial:active {
    transform: translateY(0) scale(0.98);
}

/* Estilos de la propuesta */
.propuesta-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa8c5 50%, #ff6b9d 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.8s ease-in;
    overflow: hidden;
}

.propuesta-container.mostrar {
    display: flex;
}

.lluvia-elementos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fuegos-artificiales {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
    pointer-events: none;
}

.fuego-artificial {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: estallar 1.5s ease-out forwards;
}

@keyframes estallar {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.elemento-cayendo {
    position: absolute;
    animation: caer linear infinite;
    opacity: 0.8;
    z-index: 1;
    object-fit: contain;
}

.corazon-emoji {
    font-size: 2em;
    line-height: 1;
}

.corazon-emoji img {
    width: 1em !important;
    height: 1em !important;
    display: inline-block !important;
}

/* Estilo para todos los emojis convertidos a SVG */
img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

@keyframes caer {
    0% {
        top: -10%;
        transform: rotate(0deg);
    }
    100% {
        top: 110%;
        transform: rotate(360deg);
    }
}

.propuesta-container.mostrar {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.propuesta-content {
    text-align: center;
    padding: 55px 50px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    animation: bounceIn 0.6s ease-out 0.3s both;
    position: relative;
    z-index: 10;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.propuesta-titulo {
    margin-bottom: 25px;
}

.corazon-titulo {
    width: 120px;
    height: 120px;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.15);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.propuesta-pregunta {
    font-size: 2.2em;
    color: #ff6b9d;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 1.3em;
}

.propuesta-contador {
    font-size: 1.15em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
    font-style: italic;
}

.propuesta-subtexto {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 35px;
    font-style: italic;
    line-height: 1.5;
}

.boton-si {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 1.6em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.boton-si:hover {
    background: linear-gradient(135deg, #ff5589 0%, #ff7099 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5);
}

.boton-si:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .palabra-card {
        padding: 18px;
    }
    
    .propuesta-pregunta {
        font-size: 1.7em;
    }
    
    .propuesta-content {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .boton-si {
        padding: 15px 45px;
        font-size: 1.3em;
    }
}

/* Estilos de desbloqueo */
.desbloqueo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.5s ease-in;
}

.desbloqueo-container.mostrar {
    display: flex;
}

.desbloqueo-content {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 500px;
    position: relative;
    z-index: 10;
    animation: bounceIn 0.8s ease-out;
}

.candado-container {
    margin-bottom: 25px;
}

.candado {
    font-size: 5em;
    animation: candadoShake 0.8s ease-in-out;
}

.candado.abierto {
    animation: candadoAbrir 0.6s ease-out forwards;
}

@keyframes candadoShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes candadoAbrir {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(20deg);
    }
    100% { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

.desbloqueo-titulo {
    color: #ff6f00;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.desbloqueo-texto {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.pregunta-container {
    text-align: left;
}

.pregunta-numero {
    color: #ff6f00;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.pregunta-texto {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.opciones-pregunta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcion-btn {
    background: white;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
    padding: 18px 30px;
    font-size: 1.05em;
    font-weight: 500;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.opcion-btn:hover {
    border-color: #ff6f00;
    background: #fff8f0;
    transform: translateX(5px);
}

.opcion-btn:active {
    transform: translateX(0);
}

.opcion-btn.correcta {
    background: #ff6f00;
    color: white;
    border-color: #ff6f00;
    animation: pulsoRespuesta 0.5s ease-out;
}

.opcion-btn.incorrecta {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

@keyframes pulsoRespuesta {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes desaparecer {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Confeti */
.confeti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}

.confeti {
    position: absolute;
    width: 15px;
    height: 15px;
    top: -20px;
    animation: confetiFall 3s linear forwards;
    opacity: 0.9;
}

@keyframes confetiFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .desbloqueo-content {
        padding: 40px 30px;
        margin: 20px;
        max-width: 90%;
    }
    
    .candado {
        font-size: 4em;
    }
    
    .desbloqueo-titulo {
        font-size: 1.6em;
    }
    
    .opcion-btn {
        font-size: 1em;
        padding: 15px 25px;
    }
}
