.diccionario-section {
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 2rem 0;
    position: relative;
}

.diccionario-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.diccionario-busqueda {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.formulario-busqueda {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.input-busqueda {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    padding-right: 3rem;
}

.input-busqueda:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.btn-buscar {
    padding: 0.8rem 1.5rem;
    background-color: #FFD700;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-buscar:hover {
    background-color: #000;
    color: #FFD700;
}

.resultado-palabra {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #FFD700;
    margin-top: 1rem;
}

.resultado-palabra h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
}

.resultado-palabra p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.resultado-palabra strong {
    color: #4CAF50;
}

.diccionario-pdf {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.diccionario-pdf h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-pdf {
    padding: 0.8rem 1.5rem;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-pdf:hover {
    background-color: #1976D2;
}

.pdf-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.pdf-preview iframe {
    width: 100%;
    height: 500px;
}

.btn-subir {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    padding: 1rem 1.5rem;
    background-color: #FFD700;
    color: #000;
    border: 2px solid #000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.btn-subir:hover {
    background-color: #000;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-subir i {
    font-size: 1.2rem;
}

.diccionario-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contador-palabras, .ultima-busqueda {
    font-size: 1.1rem;
    color: #333;
}

.contador-palabras strong {
    color: #FFD700;
    font-size: 1.2rem;
}

#ultima-palabra {
    color: #FFD700;
    font-weight: bold;
}

@media (max-width: 768px) {
    .pdf-preview iframe {
        height: 300px;
    }
    
    .pdf-controls {
        flex-direction: column;
    }
    
    .btn-pdf {
        width: 100%;
    }
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-feedback {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-status {
    font-size: 0.9rem;
    color: #666;
}

.search-loading {
    display: none;
}

.search-loading.active {
    display: block;
    color: #FFD700;
}

.recent-searches {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-searches h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#recent-searches-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#recent-searches-list li {
    background-color: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#recent-searches-list li:hover {
    background-color: #FFD700;
    color: #000;
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-favorito {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorito:hover {
    transform: scale(1.1);
}

.btn-favorito.active {
    color: #FFD700;
}

.resultado-contenido {
    display: grid;
    gap: 1.5rem;
}

.significado, .ejemplos {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.significado h4, .ejemplos h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
}

.ejemplos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ejemplos-lista li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.ejemplos-lista li:last-child {
    border-bottom: none;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.resultado-palabra {
    animation: fadeIn 0.3s ease-out;
}

/* Mejoras en los botones */
.btn-buscar, .btn-pdf {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-buscar i, .btn-pdf i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .resultado-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .recent-searches {
        margin-top: 1rem;
    }

    #recent-searches-list {
        flex-direction: column;
    }
} 